From 0a8097fe6ff403019aa5745bb086b3fefe57a4f2 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:11:54 +0000 Subject: [PATCH 1/3] feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 --- .../v1beta1/CatalogServiceGrpc.java | 990 ------- .../v1beta1/PredictionApiKeyRegistryGrpc.java | 699 ----- .../v1beta1/UserEventServiceGrpc.java | 883 ------ .../v1beta1/CatalogServiceClient.java | 53 +- .../v1beta1/CatalogServiceSettings.java | 30 +- .../PredictionApiKeyRegistryClient.java | 51 +- .../PredictionApiKeyRegistrySettings.java | 36 +- .../v1beta1/PredictionServiceClient.java | 47 +- .../v1beta1/PredictionServiceSettings.java | 30 +- .../v1beta1/UserEventServiceClient.java | 74 +- .../v1beta1/UserEventServiceSettings.java | 30 +- .../v1beta1/gapic_metadata.json | 0 .../v1beta1/package-info.java | 0 .../v1beta1/stub/CatalogServiceStub.java | 6 +- .../stub/CatalogServiceStubSettings.java | 59 +- .../GrpcCatalogServiceCallableFactory.java | 0 .../v1beta1/stub/GrpcCatalogServiceStub.java | 1 + ...edictionApiKeyRegistryCallableFactory.java | 0 .../GrpcPredictionApiKeyRegistryStub.java | 1 + .../GrpcPredictionServiceCallableFactory.java | 0 .../stub/GrpcPredictionServiceStub.java | 1 + .../GrpcUserEventServiceCallableFactory.java | 0 .../stub/GrpcUserEventServiceStub.java | 1 + ...HttpJsonCatalogServiceCallableFactory.java | 105 + .../stub/HttpJsonCatalogServiceStub.java | 517 ++++ ...edictionApiKeyRegistryCallableFactory.java | 105 + .../HttpJsonPredictionApiKeyRegistryStub.java | 352 +++ ...pJsonPredictionServiceCallableFactory.java | 105 + .../stub/HttpJsonPredictionServiceStub.java | 206 ++ ...tpJsonUserEventServiceCallableFactory.java | 105 + .../stub/HttpJsonUserEventServiceStub.java | 480 ++++ .../stub/PredictionApiKeyRegistryStub.java | 0 .../PredictionApiKeyRegistryStubSettings.java | 86 +- .../v1beta1/stub/PredictionServiceStub.java | 0 .../stub/PredictionServiceStubSettings.java | 59 +- .../v1beta1/stub/UserEventServiceStub.java | 6 +- .../stub/UserEventServiceStubSettings.java | 59 +- .../CatalogServiceClientHttpJsonTest.java | 712 +++++ .../v1beta1/CatalogServiceClientTest.java | 0 .../v1beta1/MockCatalogService.java | 0 .../v1beta1/MockCatalogServiceImpl.java | 0 .../v1beta1/MockPredictionApiKeyRegistry.java | 0 .../MockPredictionApiKeyRegistryImpl.java | 0 .../v1beta1/MockPredictionService.java | 0 .../v1beta1/MockPredictionServiceImpl.java | 0 .../v1beta1/MockUserEventService.java | 0 .../v1beta1/MockUserEventServiceImpl.java | 0 ...ctionApiKeyRegistryClientHttpJsonTest.java | 382 +++ .../PredictionApiKeyRegistryClientTest.java | 0 .../PredictionServiceClientHttpJsonTest.java | 189 ++ .../v1beta1/PredictionServiceClientTest.java | 0 .../UserEventServiceClientHttpJsonTest.java | 639 +++++ .../v1beta1/UserEventServiceClientTest.java | 0 .../v1beta1/CatalogServiceGrpc.java | 753 +++++ .../v1beta1/PredictionApiKeyRegistryGrpc.java | 495 ++++ .../v1beta1/PredictionServiceGrpc.java | 223 +- .../v1beta1/UserEventServiceGrpc.java | 691 +++++ .../recommendationengine/v1beta1/Catalog.java | 175 ++ .../v1beta1/CatalogInlineSource.java | 527 ++-- .../v1beta1/CatalogInlineSourceOrBuilder.java | 58 + .../v1beta1/CatalogItem.java | 1895 +++++-------- .../v1beta1/CatalogItemOrBuilder.java | 170 +- .../v1beta1/CatalogItemPathName.java | 0 .../v1beta1/CatalogName.java | 0 .../v1beta1/CatalogServiceOuterClass.java | 217 ++ .../v1beta1/CollectUserEventRequest.java | 572 ++-- .../CollectUserEventRequestOrBuilder.java | 56 +- .../recommendationengine/v1beta1/Common.java | 116 + .../v1beta1/CreateCatalogItemRequest.java | 537 ++-- .../CreateCatalogItemRequestOrBuilder.java | 58 + ...tePredictionApiKeyRegistrationRequest.java | 838 ++++++ ...ionApiKeyRegistrationRequestOrBuilder.java | 58 + .../v1beta1/DeleteCatalogItemRequest.java | 378 ++- .../DeleteCatalogItemRequestOrBuilder.java | 31 + ...tePredictionApiKeyRegistrationRequest.java | 480 ++-- ...ionApiKeyRegistrationRequestOrBuilder.java | 35 +- .../v1beta1/EventDetail.java | 826 +++--- .../v1beta1/EventDetailOrBuilder.java | 92 +- .../v1beta1/EventStoreName.java | 0 .../v1beta1/FeatureMap.java | 1656 +++++------ .../v1beta1/FeatureMapOrBuilder.java | 127 +- .../v1beta1/GcsSource.java | 346 +-- .../v1beta1/GcsSourceOrBuilder.java | 36 +- .../v1beta1/GetCatalogItemRequest.java | 375 ++- .../GetCatalogItemRequestOrBuilder.java | 31 + .../recommendationengine/v1beta1/Image.java | 379 ++- .../v1beta1/ImageOrBuilder.java | 33 +- .../recommendationengine/v1beta1/Import.java | 244 ++ .../v1beta1/ImportCatalogItemsRequest.java | 787 ++---- .../ImportCatalogItemsRequestOrBuilder.java | 87 +- .../v1beta1/ImportCatalogItemsResponse.java | 551 ++-- .../ImportCatalogItemsResponseOrBuilder.java | 48 +- .../v1beta1/ImportErrorsConfig.java | 392 ++- .../v1beta1/ImportErrorsConfigOrBuilder.java | 33 +- .../v1beta1/ImportMetadata.java | 662 ++--- .../v1beta1/ImportMetadataOrBuilder.java | 58 +- .../v1beta1/ImportUserEventsRequest.java | 777 ++---- .../ImportUserEventsRequestOrBuilder.java | 87 +- .../v1beta1/ImportUserEventsResponse.java | 698 ++--- .../ImportUserEventsResponseOrBuilder.java | 68 +- .../v1beta1/InputConfig.java | 793 ++---- .../v1beta1/InputConfigOrBuilder.java | 69 +- .../v1beta1/ListCatalogItemsRequest.java | 567 ++-- .../ListCatalogItemsRequestOrBuilder.java | 56 +- .../v1beta1/ListCatalogItemsResponse.java | 575 ++-- .../ListCatalogItemsResponseOrBuilder.java | 42 +- ...tPredictionApiKeyRegistrationsRequest.java | 592 ++-- ...onApiKeyRegistrationsRequestOrBuilder.java | 47 +- ...PredictionApiKeyRegistrationsResponse.java | 756 ++--- ...nApiKeyRegistrationsResponseOrBuilder.java | 75 + .../v1beta1/ListUserEventsRequest.java | 569 ++-- .../ListUserEventsRequestOrBuilder.java | 56 +- .../v1beta1/ListUserEventsResponse.java | 499 ++-- .../ListUserEventsResponseOrBuilder.java | 42 +- .../v1beta1/PlacementName.java | 0 .../v1beta1/PredictRequest.java | 1275 ++++----- .../v1beta1/PredictRequestOrBuilder.java | 161 +- .../v1beta1/PredictResponse.java | 1817 +++++------- .../v1beta1/PredictResponseOrBuilder.java | 132 +- .../v1beta1/PredictionApiKeyRegistration.java | 410 ++- .../PredictionApiKeyRegistrationName.java | 0 ...PredictionApiKeyRegistrationOrBuilder.java | 29 + .../PredictionApikeyRegistryService.java | 173 ++ .../v1beta1/PredictionServiceOuterClass.java | 187 ++ .../v1beta1/ProductCatalogItem.java | 2429 +++++++---------- .../v1beta1/ProductCatalogItemOrBuilder.java | 169 +- .../v1beta1/ProductDetail.java | 808 ++---- .../v1beta1/ProductDetailOrBuilder.java | 82 +- .../v1beta1/ProductEventDetail.java | 1215 +++------ .../v1beta1/ProductEventDetailOrBuilder.java | 140 +- .../v1beta1/PurchaseTransaction.java | 963 +++---- .../v1beta1/PurchaseTransactionOrBuilder.java | 103 +- .../v1beta1/PurgeUserEventsMetadata.java | 441 ++- .../PurgeUserEventsMetadataOrBuilder.java | 35 +- .../v1beta1/PurgeUserEventsRequest.java | 491 ++-- .../PurgeUserEventsRequestOrBuilder.java | 47 +- .../v1beta1/PurgeUserEventsResponse.java | 545 ++-- .../PurgeUserEventsResponseOrBuilder.java | 51 +- .../RecommendationengineResources.java | 72 + .../v1beta1/UpdateCatalogItemRequest.java | 631 ++--- .../UpdateCatalogItemRequestOrBuilder.java | 63 +- .../v1beta1/UserEvent.java | 1095 +++----- .../v1beta1/UserEventImportSummary.java | 345 +-- .../UserEventImportSummaryOrBuilder.java | 24 +- .../v1beta1/UserEventInlineSource.java | 512 ++-- .../UserEventInlineSourceOrBuilder.java | 53 + .../v1beta1/UserEventOrBuilder.java | 121 +- .../v1beta1/UserEventOuterClass.java | 203 ++ .../v1beta1/UserEventServiceOuterClass.java | 227 ++ .../v1beta1/UserInfo.java | 590 ++-- .../v1beta1/UserInfoOrBuilder.java | 57 +- .../v1beta1/WriteUserEventRequest.java | 525 ++-- .../WriteUserEventRequestOrBuilder.java | 58 + .../v1beta1/catalog.proto | 0 .../v1beta1/catalog_service.proto | 0 .../recommendationengine/v1beta1/common.proto | 0 .../recommendationengine/v1beta1/import.proto | 0 .../prediction_apikey_registry_service.proto | 0 .../v1beta1/prediction_service.proto | 0 .../recommendationengine_resources.proto | 0 .../v1beta1/user_event.proto | 0 .../v1beta1/user_event_service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 41 + .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 38 + .../AsyncCreateCatalogItem.java | 48 + .../SyncCreateCatalogItem.java | 44 + ...eateCatalogItemCatalognameCatalogitem.java | 40 + ...yncCreateCatalogItemStringCatalogitem.java | 40 + .../AsyncDeleteCatalogItem.java | 50 + .../SyncDeleteCatalogItem.java | 46 + ...cDeleteCatalogItemCatalogitempathname.java | 40 + .../SyncDeleteCatalogItemString.java | 41 + .../getcatalogitem/AsyncGetCatalogItem.java | 50 + .../getcatalogitem/SyncGetCatalogItem.java | 46 + ...SyncGetCatalogItemCatalogitempathname.java | 40 + .../SyncGetCatalogItemString.java | 41 + .../AsyncImportCatalogItems.java | 52 + .../AsyncImportCatalogItemsLRO.java | 53 + .../SyncImportCatalogItems.java | 49 + ...meStringInputconfigImporterrorsconfig.java | 48 + ...ngStringInputconfigImporterrorsconfig.java | 48 + .../AsyncListCatalogItems.java | 52 + .../AsyncListCatalogItemsPaged.java | 60 + .../SyncListCatalogItems.java | 48 + ...SyncListCatalogItemsCatalognameString.java | 43 + .../SyncListCatalogItemsStringString.java | 43 + .../AsyncUpdateCatalogItem.java | 53 + .../SyncUpdateCatalogItem.java | 49 + ...talogitempathnameCatalogitemFieldmask.java | 44 + ...CatalogItemStringCatalogitemFieldmask.java | 44 + .../SyncCreateCatalogItem.java | 46 + .../SyncCreateSetCredentialsProvider.java | 42 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 39 + ...yncCreatePredictionApiKeyRegistration.java | 53 + ...yncCreatePredictionApiKeyRegistration.java | 48 + ...storenamePredictionapikeyregistration.java | 47 + ...ionStringPredictionapikeyregistration.java | 46 + ...yncDeletePredictionApiKeyRegistration.java | 57 + ...yncDeletePredictionApiKeyRegistration.java | 51 + ...ationPredictionapikeyregistrationname.java | 47 + ...etePredictionApiKeyRegistrationString.java | 47 + ...syncListPredictionApiKeyRegistrations.java | 56 + ...istPredictionApiKeyRegistrationsPaged.java | 65 + ...SyncListPredictionApiKeyRegistrations.java | 51 + ...tionApiKeyRegistrationsEventstorename.java | 44 + ...stPredictionApiKeyRegistrationsString.java | 44 + ...yncCreatePredictionApiKeyRegistration.java | 47 + .../SyncCreateSetCredentialsProvider.java | 42 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 39 + .../predict/AsyncPredict.java | 62 + .../predict/AsyncPredictPaged.java | 69 + .../predict/SyncPredict.java | 59 + .../SyncPredictPlacementnameUserevent.java | 46 + .../predict/SyncPredictStringUserevent.java | 47 + .../predict/SyncPredict.java | 46 + .../SyncCreateCatalogItem.java | 46 + ...yncCreatePredictionApiKeyRegistration.java | 47 + .../predict/SyncPredict.java | 47 + .../writeuserevent/SyncWriteUserEvent.java | 46 + .../AsyncCollectUserEvent.java | 52 + .../SyncCollectUserEvent.java | 48 + ...erEventEventstorenameStringStringLong.java | 43 + ...ollectUserEventStringStringStringLong.java | 43 + .../SyncCreateSetCredentialsProvider.java | 42 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 39 + .../AsyncImportUserEvents.java | 54 + .../AsyncImportUserEventsLRO.java | 55 + .../SyncImportUserEvents.java | 51 + ...meStringInputconfigImporterrorsconfig.java | 49 + ...ngStringInputconfigImporterrorsconfig.java | 49 + .../listuserevents/AsyncListUserEvents.java | 54 + .../AsyncListUserEventsPaged.java | 62 + .../listuserevents/SyncListUserEvents.java | 50 + ...yncListUserEventsEventstorenameString.java | 43 + .../SyncListUserEventsStringString.java | 43 + .../purgeuserevents/AsyncPurgeUserEvents.java | 51 + .../AsyncPurgeUserEventsLRO.java | 52 + .../purgeuserevents/SyncPurgeUserEvents.java | 47 + ...UserEventsEventstorenameStringBoolean.java | 43 + ...yncPurgeUserEventsStringStringBoolean.java | 43 + .../writeuserevent/AsyncWriteUserEvent.java | 50 + .../writeuserevent/SyncWriteUserEvent.java | 46 + ...WriteUserEventEventstorenameUserevent.java | 41 + .../SyncWriteUserEventStringUserevent.java | 41 + .../writeuserevent/SyncWriteUserEvent.java | 46 + .../recommendationengine/v1beta1/Catalog.java | 221 -- .../v1beta1/CatalogInlineSourceOrBuilder.java | 93 - .../v1beta1/CatalogServiceOuterClass.java | 238 -- .../recommendationengine/v1beta1/Common.java | 143 - .../CreateCatalogItemRequestOrBuilder.java | 97 - ...tePredictionApiKeyRegistrationRequest.java | 1041 ------- ...ionApiKeyRegistrationRequestOrBuilder.java | 99 - .../DeleteCatalogItemRequestOrBuilder.java | 56 - .../GetCatalogItemRequestOrBuilder.java | 56 - .../recommendationengine/v1beta1/Import.java | 275 -- ...nApiKeyRegistrationsResponseOrBuilder.java | 119 - ...PredictionApiKeyRegistrationOrBuilder.java | 50 - .../PredictionApikeyRegistryService.java | 193 -- .../v1beta1/PredictionServiceOuterClass.java | 223 -- .../RecommendationengineResources.java | 85 - .../UserEventInlineSourceOrBuilder.java | 88 - .../v1beta1/UserEventOuterClass.java | 251 -- .../v1beta1/UserEventServiceOuterClass.java | 248 -- .../WriteUserEventRequestOrBuilder.java | 97 - 268 files changed, 25439 insertions(+), 27223 deletions(-) delete mode 100644 grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceGrpc.java delete mode 100644 grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryGrpc.java delete mode 100644 grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceGrpc.java rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java (95%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java (90%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java (93%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java (87%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java (91%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java (86%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java (94%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java (90%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/gapic_metadata.json (100%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/package-info.java (100%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStub.java (96%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java (90%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceCallableFactory.java (100%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceStub.java (99%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryCallableFactory.java (100%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryStub.java (99%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceCallableFactory.java (100%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceStub.java (99%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceCallableFactory.java (100%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceStub.java (99%) create mode 100644 owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceCallableFactory.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceStub.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryCallableFactory.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryStub.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceCallableFactory.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceStub.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceCallableFactory.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceStub.java rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStub.java (100%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java (84%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStub.java (100%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java (84%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStub.java (96%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java (90%) create mode 100644 owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientHttpJsonTest.java rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientTest.java (100%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockCatalogService.java (100%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockCatalogServiceImpl.java (100%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionApiKeyRegistry.java (100%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionApiKeyRegistryImpl.java (100%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionService.java (100%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionServiceImpl.java (100%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockUserEventService.java (100%) rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockUserEventServiceImpl.java (100%) create mode 100644 owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientHttpJsonTest.java rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientTest.java (100%) create mode 100644 owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClientHttpJsonTest.java rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClientTest.java (100%) create mode 100644 owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClientHttpJsonTest.java rename {google-cloud-recommendations-ai => owl-bot-staging/v1beta1/google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClientTest.java (100%) create mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceGrpc.java create mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryGrpc.java rename {grpc-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceGrpc.java (53%) create mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceGrpc.java create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Catalog.java rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSource.java (62%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSourceOrBuilder.java rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItem.java (71%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemOrBuilder.java (76%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemPathName.java (100%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogName.java (100%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceOuterClass.java rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequest.java (69%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequestOrBuilder.java (67%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Common.java rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequest.java (60%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequestOrBuilder.java create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequest.java create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequestOrBuilder.java rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequest.java (62%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequestOrBuilder.java rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequest.java (50%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequestOrBuilder.java (52%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetail.java (77%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetailOrBuilder.java (83%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventStoreName.java (100%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMap.java (62%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMapOrBuilder.java (56%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSource.java (76%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSourceOrBuilder.java (79%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequest.java (63%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequestOrBuilder.java rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/Image.java (71%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImageOrBuilder.java (61%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Import.java rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequest.java (61%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequestOrBuilder.java (56%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponse.java (70%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponseOrBuilder.java (68%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfig.java (69%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfigOrBuilder.java (65%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadata.java (72%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadataOrBuilder.java (76%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequest.java (62%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequestOrBuilder.java (59%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponse.java (69%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponseOrBuilder.java (70%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfig.java (62%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfigOrBuilder.java (65%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequest.java (67%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequestOrBuilder.java (62%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponse.java (68%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponseOrBuilder.java (71%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequest.java (56%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequestOrBuilder.java (62%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponse.java (53%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponseOrBuilder.java rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequest.java (75%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequestOrBuilder.java (81%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponse.java (71%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponseOrBuilder.java (70%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PlacementName.java (100%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequest.java (73%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequestOrBuilder.java (82%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponse.java (65%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponseOrBuilder.java (66%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistration.java (57%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationName.java (100%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationOrBuilder.java create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApikeyRegistryService.java create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceOuterClass.java rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItem.java (62%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItemOrBuilder.java (64%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetail.java (70%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetailOrBuilder.java (72%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetail.java (73%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetailOrBuilder.java (78%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransaction.java (66%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransactionOrBuilder.java (79%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadata.java (67%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadataOrBuilder.java (62%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequest.java (73%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequestOrBuilder.java (76%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponse.java (69%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponseOrBuilder.java (68%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/RecommendationengineResources.java rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequest.java (64%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequestOrBuilder.java (62%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEvent.java (69%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummary.java (65%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummaryOrBuilder.java (55%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSource.java (62%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSourceOrBuilder.java rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOrBuilder.java (73%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOuterClass.java create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceOuterClass.java rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfo.java (77%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfoOrBuilder.java (81%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequest.java (61%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequestOrBuilder.java rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/proto/google/cloud/recommendationengine/v1beta1/catalog.proto (100%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/proto/google/cloud/recommendationengine/v1beta1/catalog_service.proto (100%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/proto/google/cloud/recommendationengine/v1beta1/common.proto (100%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/proto/google/cloud/recommendationengine/v1beta1/import.proto (100%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/proto/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto (100%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/proto/google/cloud/recommendationengine/v1beta1/prediction_service.proto (100%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/proto/google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto (100%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/proto/google/cloud/recommendationengine/v1beta1/user_event.proto (100%) rename {proto-google-cloud-recommendations-ai-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1}/src/main/proto/google/cloud/recommendationengine/v1beta1/user_event_service.proto (100%) create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/AsyncCreateCatalogItem.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItem.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemCatalognameCatalogitem.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemStringCatalogitem.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/AsyncDeleteCatalogItem.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItem.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemCatalogitempathname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/AsyncGetCatalogItem.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItem.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemCatalogitempathname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItems.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItemsLRO.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItems.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsCatalognameStringInputconfigImporterrorsconfig.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsStringStringInputconfigImporterrorsconfig.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItems.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItemsPaged.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItems.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsCatalognameString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsStringString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/AsyncUpdateCatalogItem.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItem.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemCatalogitempathnameCatalogitemFieldmask.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemStringCatalogitemFieldmask.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogservicesettings/createcatalogitem/SyncCreateCatalogItem.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/AsyncCreatePredictionApiKeyRegistration.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationEventstorenamePredictionapikeyregistration.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationStringPredictionapikeyregistration.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/AsyncDeletePredictionApiKeyRegistration.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistration.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationPredictionapikeyregistrationname.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrations.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrationsPaged.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrations.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsEventstorename.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistrysettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredict.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredictPaged.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredict.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictPlacementnameUserevent.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictStringUserevent.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionservicesettings/predict/SyncPredict.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/catalogservicestubsettings/createcatalogitem/SyncCreateCatalogItem.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionapikeyregistrystubsettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionservicestubsettings/predict/SyncPredict.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/AsyncCollectUserEvent.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEvent.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventEventstorenameStringStringLong.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventStringStringStringLong.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEvents.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEventsLRO.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEvents.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsEventstorenameStringInputconfigImporterrorsconfig.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsStringStringInputconfigImporterrorsconfig.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEvents.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEventsPaged.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEvents.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsEventstorenameString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsStringString.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEvents.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEventsLRO.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEvents.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsEventstorenameStringBoolean.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsStringStringBoolean.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/AsyncWriteUserEvent.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEvent.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventEventstorenameUserevent.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventStringUserevent.java create mode 100644 owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java delete mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Catalog.java delete mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSourceOrBuilder.java delete mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceOuterClass.java delete mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Common.java delete mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequestOrBuilder.java delete mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequest.java delete mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequestOrBuilder.java delete mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequestOrBuilder.java delete mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequestOrBuilder.java delete mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Import.java delete mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponseOrBuilder.java delete mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationOrBuilder.java delete mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApikeyRegistryService.java delete mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceOuterClass.java delete mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/RecommendationengineResources.java delete mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSourceOrBuilder.java delete mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOuterClass.java delete mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceOuterClass.java delete mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequestOrBuilder.java diff --git a/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceGrpc.java b/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceGrpc.java deleted file mode 100644 index 2080d5b1..00000000 --- a/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceGrpc.java +++ /dev/null @@ -1,990 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.recommendationengine.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service for ingesting catalog information of the customer's website.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/recommendationengine/v1beta1/catalog_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CatalogServiceGrpc { - - private CatalogServiceGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.recommendationengine.v1beta1.CatalogService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest, - com.google.cloud.recommendationengine.v1beta1.CatalogItem> - getCreateCatalogItemMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCatalogItem", - requestType = com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.class, - responseType = com.google.cloud.recommendationengine.v1beta1.CatalogItem.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest, - com.google.cloud.recommendationengine.v1beta1.CatalogItem> - getCreateCatalogItemMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest, - com.google.cloud.recommendationengine.v1beta1.CatalogItem> - getCreateCatalogItemMethod; - if ((getCreateCatalogItemMethod = CatalogServiceGrpc.getCreateCatalogItemMethod) == null) { - synchronized (CatalogServiceGrpc.class) { - if ((getCreateCatalogItemMethod = CatalogServiceGrpc.getCreateCatalogItemMethod) == null) { - CatalogServiceGrpc.getCreateCatalogItemMethod = - getCreateCatalogItemMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCatalogItem")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.CatalogItem - .getDefaultInstance())) - .setSchemaDescriptor( - new CatalogServiceMethodDescriptorSupplier("CreateCatalogItem")) - .build(); - } - } - } - return getCreateCatalogItemMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest, - com.google.cloud.recommendationengine.v1beta1.CatalogItem> - getGetCatalogItemMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCatalogItem", - requestType = com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.class, - responseType = com.google.cloud.recommendationengine.v1beta1.CatalogItem.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest, - com.google.cloud.recommendationengine.v1beta1.CatalogItem> - getGetCatalogItemMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest, - com.google.cloud.recommendationengine.v1beta1.CatalogItem> - getGetCatalogItemMethod; - if ((getGetCatalogItemMethod = CatalogServiceGrpc.getGetCatalogItemMethod) == null) { - synchronized (CatalogServiceGrpc.class) { - if ((getGetCatalogItemMethod = CatalogServiceGrpc.getGetCatalogItemMethod) == null) { - CatalogServiceGrpc.getGetCatalogItemMethod = - getGetCatalogItemMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCatalogItem")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.CatalogItem - .getDefaultInstance())) - .setSchemaDescriptor( - new CatalogServiceMethodDescriptorSupplier("GetCatalogItem")) - .build(); - } - } - } - return getGetCatalogItemMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest, - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse> - getListCatalogItemsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCatalogItems", - requestType = com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.class, - responseType = com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest, - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse> - getListCatalogItemsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest, - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse> - getListCatalogItemsMethod; - if ((getListCatalogItemsMethod = CatalogServiceGrpc.getListCatalogItemsMethod) == null) { - synchronized (CatalogServiceGrpc.class) { - if ((getListCatalogItemsMethod = CatalogServiceGrpc.getListCatalogItemsMethod) == null) { - CatalogServiceGrpc.getListCatalogItemsMethod = - getListCatalogItemsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCatalogItems")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CatalogServiceMethodDescriptorSupplier("ListCatalogItems")) - .build(); - } - } - } - return getListCatalogItemsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest, - com.google.cloud.recommendationengine.v1beta1.CatalogItem> - getUpdateCatalogItemMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCatalogItem", - requestType = com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.class, - responseType = com.google.cloud.recommendationengine.v1beta1.CatalogItem.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest, - com.google.cloud.recommendationengine.v1beta1.CatalogItem> - getUpdateCatalogItemMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest, - com.google.cloud.recommendationengine.v1beta1.CatalogItem> - getUpdateCatalogItemMethod; - if ((getUpdateCatalogItemMethod = CatalogServiceGrpc.getUpdateCatalogItemMethod) == null) { - synchronized (CatalogServiceGrpc.class) { - if ((getUpdateCatalogItemMethod = CatalogServiceGrpc.getUpdateCatalogItemMethod) == null) { - CatalogServiceGrpc.getUpdateCatalogItemMethod = - getUpdateCatalogItemMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCatalogItem")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.CatalogItem - .getDefaultInstance())) - .setSchemaDescriptor( - new CatalogServiceMethodDescriptorSupplier("UpdateCatalogItem")) - .build(); - } - } - } - return getUpdateCatalogItemMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest, - com.google.protobuf.Empty> - getDeleteCatalogItemMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCatalogItem", - requestType = com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest, - com.google.protobuf.Empty> - getDeleteCatalogItemMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest, - com.google.protobuf.Empty> - getDeleteCatalogItemMethod; - if ((getDeleteCatalogItemMethod = CatalogServiceGrpc.getDeleteCatalogItemMethod) == null) { - synchronized (CatalogServiceGrpc.class) { - if ((getDeleteCatalogItemMethod = CatalogServiceGrpc.getDeleteCatalogItemMethod) == null) { - CatalogServiceGrpc.getDeleteCatalogItemMethod = - getDeleteCatalogItemMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCatalogItem")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new CatalogServiceMethodDescriptorSupplier("DeleteCatalogItem")) - .build(); - } - } - } - return getDeleteCatalogItemMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest, - com.google.longrunning.Operation> - getImportCatalogItemsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ImportCatalogItems", - requestType = com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest, - com.google.longrunning.Operation> - getImportCatalogItemsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest, - com.google.longrunning.Operation> - getImportCatalogItemsMethod; - if ((getImportCatalogItemsMethod = CatalogServiceGrpc.getImportCatalogItemsMethod) == null) { - synchronized (CatalogServiceGrpc.class) { - if ((getImportCatalogItemsMethod = CatalogServiceGrpc.getImportCatalogItemsMethod) - == null) { - CatalogServiceGrpc.getImportCatalogItemsMethod = - getImportCatalogItemsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportCatalogItems")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1 - .ImportCatalogItemsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CatalogServiceMethodDescriptorSupplier("ImportCatalogItems")) - .build(); - } - } - } - return getImportCatalogItemsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static CatalogServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CatalogServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CatalogServiceStub(channel, callOptions); - } - }; - return CatalogServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CatalogServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CatalogServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CatalogServiceBlockingStub(channel, callOptions); - } - }; - return CatalogServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static CatalogServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CatalogServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CatalogServiceFutureStub(channel, callOptions); - } - }; - return CatalogServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for ingesting catalog information of the customer's website.
-   * 
- */ - public abstract static class CatalogServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a catalog item.
-     * 
- */ - public void createCatalogItem( - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateCatalogItemMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a specific catalog item.
-     * 
- */ - public void getCatalogItem( - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCatalogItemMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a list of catalog items.
-     * 
- */ - public void listCatalogItems( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCatalogItemsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a catalog item. Partial updating is supported. Non-existing
-     * items will be created.
-     * 
- */ - public void updateCatalogItem( - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCatalogItemMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a catalog item.
-     * 
- */ - public void deleteCatalogItem( - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteCatalogItemMethod(), responseObserver); - } - - /** - * - * - *
-     * Bulk import of multiple catalog items. Request processing may be
-     * synchronous. No partial updating supported. Non-existing items will be
-     * created.
-     * Operation.response is of type ImportResponse. Note that it is
-     * possible for a subset of the items to be successfully updated.
-     * 
- */ - public void importCatalogItems( - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getImportCatalogItemsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateCatalogItemMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest, - com.google.cloud.recommendationengine.v1beta1.CatalogItem>( - this, METHODID_CREATE_CATALOG_ITEM))) - .addMethod( - getGetCatalogItemMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest, - com.google.cloud.recommendationengine.v1beta1.CatalogItem>( - this, METHODID_GET_CATALOG_ITEM))) - .addMethod( - getListCatalogItemsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest, - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse>( - this, METHODID_LIST_CATALOG_ITEMS))) - .addMethod( - getUpdateCatalogItemMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest, - com.google.cloud.recommendationengine.v1beta1.CatalogItem>( - this, METHODID_UPDATE_CATALOG_ITEM))) - .addMethod( - getDeleteCatalogItemMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_CATALOG_ITEM))) - .addMethod( - getImportCatalogItemsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest, - com.google.longrunning.Operation>(this, METHODID_IMPORT_CATALOG_ITEMS))) - .build(); - } - } - - /** - * - * - *
-   * Service for ingesting catalog information of the customer's website.
-   * 
- */ - public static final class CatalogServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private CatalogServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CatalogServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CatalogServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a catalog item.
-     * 
- */ - public void createCatalogItem( - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCatalogItemMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a specific catalog item.
-     * 
- */ - public void getCatalogItem( - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCatalogItemMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a list of catalog items.
-     * 
- */ - public void listCatalogItems( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCatalogItemsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a catalog item. Partial updating is supported. Non-existing
-     * items will be created.
-     * 
- */ - public void updateCatalogItem( - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCatalogItemMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a catalog item.
-     * 
- */ - public void deleteCatalogItem( - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCatalogItemMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Bulk import of multiple catalog items. Request processing may be
-     * synchronous. No partial updating supported. Non-existing items will be
-     * created.
-     * Operation.response is of type ImportResponse. Note that it is
-     * possible for a subset of the items to be successfully updated.
-     * 
- */ - public void importCatalogItems( - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportCatalogItemsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for ingesting catalog information of the customer's website.
-   * 
- */ - public static final class CatalogServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private CatalogServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CatalogServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CatalogServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a catalog item.
-     * 
- */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem createCatalogItem( - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCatalogItemMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a specific catalog item.
-     * 
- */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItem( - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCatalogItemMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a list of catalog items.
-     * 
- */ - public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse listCatalogItems( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCatalogItemsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a catalog item. Partial updating is supported. Non-existing
-     * items will be created.
-     * 
- */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem updateCatalogItem( - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCatalogItemMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a catalog item.
-     * 
- */ - public com.google.protobuf.Empty deleteCatalogItem( - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCatalogItemMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Bulk import of multiple catalog items. Request processing may be
-     * synchronous. No partial updating supported. Non-existing items will be
-     * created.
-     * Operation.response is of type ImportResponse. Note that it is
-     * possible for a subset of the items to be successfully updated.
-     * 
- */ - public com.google.longrunning.Operation importCatalogItems( - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getImportCatalogItemsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for ingesting catalog information of the customer's website.
-   * 
- */ - public static final class CatalogServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private CatalogServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CatalogServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CatalogServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a catalog item.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.recommendationengine.v1beta1.CatalogItem> - createCatalogItem( - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCatalogItemMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a specific catalog item.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.recommendationengine.v1beta1.CatalogItem> - getCatalogItem( - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCatalogItemMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a list of catalog items.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse> - listCatalogItems( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCatalogItemsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a catalog item. Partial updating is supported. Non-existing
-     * items will be created.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.recommendationengine.v1beta1.CatalogItem> - updateCatalogItem( - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCatalogItemMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a catalog item.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteCatalogItem( - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCatalogItemMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Bulk import of multiple catalog items. Request processing may be
-     * synchronous. No partial updating supported. Non-existing items will be
-     * created.
-     * Operation.response is of type ImportResponse. Note that it is
-     * possible for a subset of the items to be successfully updated.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - importCatalogItems( - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getImportCatalogItemsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CATALOG_ITEM = 0; - private static final int METHODID_GET_CATALOG_ITEM = 1; - private static final int METHODID_LIST_CATALOG_ITEMS = 2; - private static final int METHODID_UPDATE_CATALOG_ITEM = 3; - private static final int METHODID_DELETE_CATALOG_ITEM = 4; - private static final int METHODID_IMPORT_CATALOG_ITEMS = 5; - - 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 CatalogServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CatalogServiceImplBase 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_CATALOG_ITEM: - serviceImpl.createCatalogItem( - (com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.recommendationengine.v1beta1.CatalogItem>) - responseObserver); - break; - case METHODID_GET_CATALOG_ITEM: - serviceImpl.getCatalogItem( - (com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.recommendationengine.v1beta1.CatalogItem>) - responseObserver); - break; - case METHODID_LIST_CATALOG_ITEMS: - serviceImpl.listCatalogItems( - (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse>) - responseObserver); - break; - case METHODID_UPDATE_CATALOG_ITEM: - serviceImpl.updateCatalogItem( - (com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.recommendationengine.v1beta1.CatalogItem>) - responseObserver); - break; - case METHODID_DELETE_CATALOG_ITEM: - serviceImpl.deleteCatalogItem( - (com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_IMPORT_CATALOG_ITEMS: - serviceImpl.importCatalogItems( - (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class CatalogServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CatalogServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CatalogService"); - } - } - - private static final class CatalogServiceFileDescriptorSupplier - extends CatalogServiceBaseDescriptorSupplier { - CatalogServiceFileDescriptorSupplier() {} - } - - private static final class CatalogServiceMethodDescriptorSupplier - extends CatalogServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CatalogServiceMethodDescriptorSupplier(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 (CatalogServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CatalogServiceFileDescriptorSupplier()) - .addMethod(getCreateCatalogItemMethod()) - .addMethod(getGetCatalogItemMethod()) - .addMethod(getListCatalogItemsMethod()) - .addMethod(getUpdateCatalogItemMethod()) - .addMethod(getDeleteCatalogItemMethod()) - .addMethod(getImportCatalogItemsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryGrpc.java b/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryGrpc.java deleted file mode 100644 index 6e0954af..00000000 --- a/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryGrpc.java +++ /dev/null @@ -1,699 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.recommendationengine.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service for registering API keys for use with the `predict` method. If you
- * use an API key to request predictions, you must first register the API key.
- * Otherwise, your prediction request is rejected. If you use OAuth to
- * authenticate your `predict` method call, you do not need to register an API
- * key. You can register up to 20 API keys per project.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = - "Source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class PredictionApiKeyRegistryGrpc { - - private PredictionApiKeyRegistryGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration> - getCreatePredictionApiKeyRegistrationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePredictionApiKeyRegistration", - requestType = - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest - .class, - responseType = - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration> - getCreatePredictionApiKeyRegistrationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration> - getCreatePredictionApiKeyRegistrationMethod; - if ((getCreatePredictionApiKeyRegistrationMethod = - PredictionApiKeyRegistryGrpc.getCreatePredictionApiKeyRegistrationMethod) - == null) { - synchronized (PredictionApiKeyRegistryGrpc.class) { - if ((getCreatePredictionApiKeyRegistrationMethod = - PredictionApiKeyRegistryGrpc.getCreatePredictionApiKeyRegistrationMethod) - == null) { - PredictionApiKeyRegistryGrpc.getCreatePredictionApiKeyRegistrationMethod = - getCreatePredictionApiKeyRegistrationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "CreatePredictionApiKeyRegistration")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1 - .PredictionApiKeyRegistration.getDefaultInstance())) - .setSchemaDescriptor( - new PredictionApiKeyRegistryMethodDescriptorSupplier( - "CreatePredictionApiKeyRegistration")) - .build(); - } - } - } - return getCreatePredictionApiKeyRegistrationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest, - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse> - getListPredictionApiKeyRegistrationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPredictionApiKeyRegistrations", - requestType = - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest - .class, - responseType = - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse - .class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest, - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse> - getListPredictionApiKeyRegistrationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest, - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse> - getListPredictionApiKeyRegistrationsMethod; - if ((getListPredictionApiKeyRegistrationsMethod = - PredictionApiKeyRegistryGrpc.getListPredictionApiKeyRegistrationsMethod) - == null) { - synchronized (PredictionApiKeyRegistryGrpc.class) { - if ((getListPredictionApiKeyRegistrationsMethod = - PredictionApiKeyRegistryGrpc.getListPredictionApiKeyRegistrationsMethod) - == null) { - PredictionApiKeyRegistryGrpc.getListPredictionApiKeyRegistrationsMethod = - getListPredictionApiKeyRegistrationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListPredictionApiKeyRegistrations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new PredictionApiKeyRegistryMethodDescriptorSupplier( - "ListPredictionApiKeyRegistrations")) - .build(); - } - } - } - return getListPredictionApiKeyRegistrationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest, - com.google.protobuf.Empty> - getDeletePredictionApiKeyRegistrationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePredictionApiKeyRegistration", - requestType = - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest - .class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest, - com.google.protobuf.Empty> - getDeletePredictionApiKeyRegistrationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest, - com.google.protobuf.Empty> - getDeletePredictionApiKeyRegistrationMethod; - if ((getDeletePredictionApiKeyRegistrationMethod = - PredictionApiKeyRegistryGrpc.getDeletePredictionApiKeyRegistrationMethod) - == null) { - synchronized (PredictionApiKeyRegistryGrpc.class) { - if ((getDeletePredictionApiKeyRegistrationMethod = - PredictionApiKeyRegistryGrpc.getDeletePredictionApiKeyRegistrationMethod) - == null) { - PredictionApiKeyRegistryGrpc.getDeletePredictionApiKeyRegistrationMethod = - getDeletePredictionApiKeyRegistrationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "DeletePredictionApiKeyRegistration")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new PredictionApiKeyRegistryMethodDescriptorSupplier( - "DeletePredictionApiKeyRegistration")) - .build(); - } - } - } - return getDeletePredictionApiKeyRegistrationMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static PredictionApiKeyRegistryStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PredictionApiKeyRegistryStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PredictionApiKeyRegistryStub(channel, callOptions); - } - }; - return PredictionApiKeyRegistryStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static PredictionApiKeyRegistryBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PredictionApiKeyRegistryBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PredictionApiKeyRegistryBlockingStub(channel, callOptions); - } - }; - return PredictionApiKeyRegistryBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static PredictionApiKeyRegistryFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PredictionApiKeyRegistryFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PredictionApiKeyRegistryFutureStub(channel, callOptions); - } - }; - return PredictionApiKeyRegistryFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for registering API keys for use with the `predict` method. If you
-   * use an API key to request predictions, you must first register the API key.
-   * Otherwise, your prediction request is rejected. If you use OAuth to
-   * authenticate your `predict` method call, you do not need to register an API
-   * key. You can register up to 20 API keys per project.
-   * 
- */ - public abstract static class PredictionApiKeyRegistryImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Register an API key for use with predict method.
-     * 
- */ - public void createPredictionApiKeyRegistration( - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreatePredictionApiKeyRegistrationMethod(), responseObserver); - } - - /** - * - * - *
-     * List the registered apiKeys for use with predict method.
-     * 
- */ - public void listPredictionApiKeyRegistrations( - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPredictionApiKeyRegistrationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Unregister an apiKey from using for predict method.
-     * 
- */ - public void deletePredictionApiKeyRegistration( - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest - request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePredictionApiKeyRegistrationMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreatePredictionApiKeyRegistrationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration>( - this, METHODID_CREATE_PREDICTION_API_KEY_REGISTRATION))) - .addMethod( - getListPredictionApiKeyRegistrationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsRequest, - com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse>( - this, METHODID_LIST_PREDICTION_API_KEY_REGISTRATIONS))) - .addMethod( - getDeletePredictionApiKeyRegistrationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_PREDICTION_API_KEY_REGISTRATION))) - .build(); - } - } - - /** - * - * - *
-   * Service for registering API keys for use with the `predict` method. If you
-   * use an API key to request predictions, you must first register the API key.
-   * Otherwise, your prediction request is rejected. If you use OAuth to
-   * authenticate your `predict` method call, you do not need to register an API
-   * key. You can register up to 20 API keys per project.
-   * 
- */ - public static final class PredictionApiKeyRegistryStub - extends io.grpc.stub.AbstractAsyncStub { - private PredictionApiKeyRegistryStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PredictionApiKeyRegistryStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PredictionApiKeyRegistryStub(channel, callOptions); - } - - /** - * - * - *
-     * Register an API key for use with predict method.
-     * 
- */ - public void createPredictionApiKeyRegistration( - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePredictionApiKeyRegistrationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List the registered apiKeys for use with predict method.
-     * 
- */ - public void listPredictionApiKeyRegistrations( - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPredictionApiKeyRegistrationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Unregister an apiKey from using for predict method.
-     * 
- */ - public void deletePredictionApiKeyRegistration( - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest - request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePredictionApiKeyRegistrationMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for registering API keys for use with the `predict` method. If you
-   * use an API key to request predictions, you must first register the API key.
-   * Otherwise, your prediction request is rejected. If you use OAuth to
-   * authenticate your `predict` method call, you do not need to register an API
-   * key. You can register up to 20 API keys per project.
-   * 
- */ - public static final class PredictionApiKeyRegistryBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private PredictionApiKeyRegistryBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PredictionApiKeyRegistryBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PredictionApiKeyRegistryBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Register an API key for use with predict method.
-     * 
- */ - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - createPredictionApiKeyRegistration( - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePredictionApiKeyRegistrationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List the registered apiKeys for use with predict method.
-     * 
- */ - public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse - listPredictionApiKeyRegistrations( - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPredictionApiKeyRegistrationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Unregister an apiKey from using for predict method.
-     * 
- */ - public com.google.protobuf.Empty deletePredictionApiKeyRegistration( - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePredictionApiKeyRegistrationMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for registering API keys for use with the `predict` method. If you
-   * use an API key to request predictions, you must first register the API key.
-   * Otherwise, your prediction request is rejected. If you use OAuth to
-   * authenticate your `predict` method call, you do not need to register an API
-   * key. You can register up to 20 API keys per project.
-   * 
- */ - public static final class PredictionApiKeyRegistryFutureStub - extends io.grpc.stub.AbstractFutureStub { - private PredictionApiKeyRegistryFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PredictionApiKeyRegistryFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PredictionApiKeyRegistryFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Register an API key for use with predict method.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration> - createPredictionApiKeyRegistration( - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePredictionApiKeyRegistrationMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * List the registered apiKeys for use with predict method.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse> - listPredictionApiKeyRegistrations( - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPredictionApiKeyRegistrationsMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Unregister an apiKey from using for predict method.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deletePredictionApiKeyRegistration( - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePredictionApiKeyRegistrationMethod(), getCallOptions()), - request); - } - } - - private static final int METHODID_CREATE_PREDICTION_API_KEY_REGISTRATION = 0; - private static final int METHODID_LIST_PREDICTION_API_KEY_REGISTRATIONS = 1; - private static final int METHODID_DELETE_PREDICTION_API_KEY_REGISTRATION = 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 PredictionApiKeyRegistryImplBase serviceImpl; - private final int methodId; - - MethodHandlers(PredictionApiKeyRegistryImplBase 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_PREDICTION_API_KEY_REGISTRATION: - serviceImpl.createPredictionApiKeyRegistration( - (com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration>) - responseObserver); - break; - case METHODID_LIST_PREDICTION_API_KEY_REGISTRATIONS: - serviceImpl.listPredictionApiKeyRegistrations( - (com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse>) - responseObserver); - break; - case METHODID_DELETE_PREDICTION_API_KEY_REGISTRATION: - serviceImpl.deletePredictionApiKeyRegistration( - (com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest) - request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class PredictionApiKeyRegistryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - PredictionApiKeyRegistryBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("PredictionApiKeyRegistry"); - } - } - - private static final class PredictionApiKeyRegistryFileDescriptorSupplier - extends PredictionApiKeyRegistryBaseDescriptorSupplier { - PredictionApiKeyRegistryFileDescriptorSupplier() {} - } - - private static final class PredictionApiKeyRegistryMethodDescriptorSupplier - extends PredictionApiKeyRegistryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - PredictionApiKeyRegistryMethodDescriptorSupplier(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 (PredictionApiKeyRegistryGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PredictionApiKeyRegistryFileDescriptorSupplier()) - .addMethod(getCreatePredictionApiKeyRegistrationMethod()) - .addMethod(getListPredictionApiKeyRegistrationsMethod()) - .addMethod(getDeletePredictionApiKeyRegistrationMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceGrpc.java b/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceGrpc.java deleted file mode 100644 index 2594be65..00000000 --- a/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceGrpc.java +++ /dev/null @@ -1,883 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.recommendationengine.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service for ingesting end user actions on the customer website.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/recommendationengine/v1beta1/user_event_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class UserEventServiceGrpc { - - private UserEventServiceGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.recommendationengine.v1beta1.UserEventService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest, - com.google.cloud.recommendationengine.v1beta1.UserEvent> - getWriteUserEventMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "WriteUserEvent", - requestType = com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.class, - responseType = com.google.cloud.recommendationengine.v1beta1.UserEvent.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest, - com.google.cloud.recommendationengine.v1beta1.UserEvent> - getWriteUserEventMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest, - com.google.cloud.recommendationengine.v1beta1.UserEvent> - getWriteUserEventMethod; - if ((getWriteUserEventMethod = UserEventServiceGrpc.getWriteUserEventMethod) == null) { - synchronized (UserEventServiceGrpc.class) { - if ((getWriteUserEventMethod = UserEventServiceGrpc.getWriteUserEventMethod) == null) { - UserEventServiceGrpc.getWriteUserEventMethod = - getWriteUserEventMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WriteUserEvent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.UserEvent - .getDefaultInstance())) - .setSchemaDescriptor( - new UserEventServiceMethodDescriptorSupplier("WriteUserEvent")) - .build(); - } - } - } - return getWriteUserEventMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest, - com.google.api.HttpBody> - getCollectUserEventMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CollectUserEvent", - requestType = com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.class, - responseType = com.google.api.HttpBody.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest, - com.google.api.HttpBody> - getCollectUserEventMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest, - com.google.api.HttpBody> - getCollectUserEventMethod; - if ((getCollectUserEventMethod = UserEventServiceGrpc.getCollectUserEventMethod) == null) { - synchronized (UserEventServiceGrpc.class) { - if ((getCollectUserEventMethod = UserEventServiceGrpc.getCollectUserEventMethod) == null) { - UserEventServiceGrpc.getCollectUserEventMethod = - getCollectUserEventMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CollectUserEvent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.api.HttpBody.getDefaultInstance())) - .setSchemaDescriptor( - new UserEventServiceMethodDescriptorSupplier("CollectUserEvent")) - .build(); - } - } - } - return getCollectUserEventMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest, - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse> - getListUserEventsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUserEvents", - requestType = com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.class, - responseType = com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest, - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse> - getListUserEventsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest, - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse> - getListUserEventsMethod; - if ((getListUserEventsMethod = UserEventServiceGrpc.getListUserEventsMethod) == null) { - synchronized (UserEventServiceGrpc.class) { - if ((getListUserEventsMethod = UserEventServiceGrpc.getListUserEventsMethod) == null) { - UserEventServiceGrpc.getListUserEventsMethod = - getListUserEventsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUserEvents")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new UserEventServiceMethodDescriptorSupplier("ListUserEvents")) - .build(); - } - } - } - return getListUserEventsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest, - com.google.longrunning.Operation> - getPurgeUserEventsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PurgeUserEvents", - requestType = com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest, - com.google.longrunning.Operation> - getPurgeUserEventsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest, - com.google.longrunning.Operation> - getPurgeUserEventsMethod; - if ((getPurgeUserEventsMethod = UserEventServiceGrpc.getPurgeUserEventsMethod) == null) { - synchronized (UserEventServiceGrpc.class) { - if ((getPurgeUserEventsMethod = UserEventServiceGrpc.getPurgeUserEventsMethod) == null) { - UserEventServiceGrpc.getPurgeUserEventsMethod = - getPurgeUserEventsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeUserEvents")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new UserEventServiceMethodDescriptorSupplier("PurgeUserEvents")) - .build(); - } - } - } - return getPurgeUserEventsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest, - com.google.longrunning.Operation> - getImportUserEventsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ImportUserEvents", - requestType = com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest, - com.google.longrunning.Operation> - getImportUserEventsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest, - com.google.longrunning.Operation> - getImportUserEventsMethod; - if ((getImportUserEventsMethod = UserEventServiceGrpc.getImportUserEventsMethod) == null) { - synchronized (UserEventServiceGrpc.class) { - if ((getImportUserEventsMethod = UserEventServiceGrpc.getImportUserEventsMethod) == null) { - UserEventServiceGrpc.getImportUserEventsMethod = - getImportUserEventsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportUserEvents")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new UserEventServiceMethodDescriptorSupplier("ImportUserEvents")) - .build(); - } - } - } - return getImportUserEventsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static UserEventServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public UserEventServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UserEventServiceStub(channel, callOptions); - } - }; - return UserEventServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static UserEventServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public UserEventServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UserEventServiceBlockingStub(channel, callOptions); - } - }; - return UserEventServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static UserEventServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public UserEventServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UserEventServiceFutureStub(channel, callOptions); - } - }; - return UserEventServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for ingesting end user actions on the customer website.
-   * 
- */ - public abstract static class UserEventServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Writes a single user event.
-     * 
- */ - public void writeUserEvent( - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getWriteUserEventMethod(), responseObserver); - } - - /** - * - * - *
-     * Writes a single user event from the browser. This uses a GET request to
-     * due to browser restriction of POST-ing to a 3rd party domain.
-     * This method is used only by the Recommendations AI JavaScript pixel.
-     * Users should not call this method directly.
-     * 
- */ - public void collectUserEvent( - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCollectUserEventMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a list of user events within a time range, with potential filtering.
-     * 
- */ - public void listUserEvents( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListUserEventsMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes permanently all user events specified by the filter provided.
-     * Depending on the number of events specified by the filter, this operation
-     * could take hours or days to complete. To test a filter, use the list
-     * command first.
-     * 
- */ - public void purgeUserEvents( - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getPurgeUserEventsMethod(), responseObserver); - } - - /** - * - * - *
-     * Bulk import of User events. Request processing might be
-     * synchronous. Events that already exist are skipped.
-     * Use this method for backfilling historical user events.
-     * Operation.response is of type ImportResponse. Note that it is
-     * possible for a subset of the items to be successfully inserted.
-     * Operation.metadata is of type ImportMetadata.
-     * 
- */ - public void importUserEvents( - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getImportUserEventsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getWriteUserEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest, - com.google.cloud.recommendationengine.v1beta1.UserEvent>( - this, METHODID_WRITE_USER_EVENT))) - .addMethod( - getCollectUserEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest, - com.google.api.HttpBody>(this, METHODID_COLLECT_USER_EVENT))) - .addMethod( - getListUserEventsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest, - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse>( - this, METHODID_LIST_USER_EVENTS))) - .addMethod( - getPurgeUserEventsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest, - com.google.longrunning.Operation>(this, METHODID_PURGE_USER_EVENTS))) - .addMethod( - getImportUserEventsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest, - com.google.longrunning.Operation>(this, METHODID_IMPORT_USER_EVENTS))) - .build(); - } - } - - /** - * - * - *
-   * Service for ingesting end user actions on the customer website.
-   * 
- */ - public static final class UserEventServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private UserEventServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected UserEventServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UserEventServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Writes a single user event.
-     * 
- */ - public void writeUserEvent( - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getWriteUserEventMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Writes a single user event from the browser. This uses a GET request to
-     * due to browser restriction of POST-ing to a 3rd party domain.
-     * This method is used only by the Recommendations AI JavaScript pixel.
-     * Users should not call this method directly.
-     * 
- */ - public void collectUserEvent( - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCollectUserEventMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a list of user events within a time range, with potential filtering.
-     * 
- */ - public void listUserEvents( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUserEventsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes permanently all user events specified by the filter provided.
-     * Depending on the number of events specified by the filter, this operation
-     * could take hours or days to complete. To test a filter, use the list
-     * command first.
-     * 
- */ - public void purgeUserEvents( - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPurgeUserEventsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Bulk import of User events. Request processing might be
-     * synchronous. Events that already exist are skipped.
-     * Use this method for backfilling historical user events.
-     * Operation.response is of type ImportResponse. Note that it is
-     * possible for a subset of the items to be successfully inserted.
-     * Operation.metadata is of type ImportMetadata.
-     * 
- */ - public void importUserEvents( - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportUserEventsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for ingesting end user actions on the customer website.
-   * 
- */ - public static final class UserEventServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private UserEventServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected UserEventServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UserEventServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Writes a single user event.
-     * 
- */ - public com.google.cloud.recommendationengine.v1beta1.UserEvent writeUserEvent( - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getWriteUserEventMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Writes a single user event from the browser. This uses a GET request to
-     * due to browser restriction of POST-ing to a 3rd party domain.
-     * This method is used only by the Recommendations AI JavaScript pixel.
-     * Users should not call this method directly.
-     * 
- */ - public com.google.api.HttpBody collectUserEvent( - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCollectUserEventMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a list of user events within a time range, with potential filtering.
-     * 
- */ - public com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse listUserEvents( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUserEventsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes permanently all user events specified by the filter provided.
-     * Depending on the number of events specified by the filter, this operation
-     * could take hours or days to complete. To test a filter, use the list
-     * command first.
-     * 
- */ - public com.google.longrunning.Operation purgeUserEvents( - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPurgeUserEventsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Bulk import of User events. Request processing might be
-     * synchronous. Events that already exist are skipped.
-     * Use this method for backfilling historical user events.
-     * Operation.response is of type ImportResponse. Note that it is
-     * possible for a subset of the items to be successfully inserted.
-     * Operation.metadata is of type ImportMetadata.
-     * 
- */ - public com.google.longrunning.Operation importUserEvents( - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getImportUserEventsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for ingesting end user actions on the customer website.
-   * 
- */ - public static final class UserEventServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private UserEventServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected UserEventServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UserEventServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Writes a single user event.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.recommendationengine.v1beta1.UserEvent> - writeUserEvent( - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getWriteUserEventMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Writes a single user event from the browser. This uses a GET request to
-     * due to browser restriction of POST-ing to a 3rd party domain.
-     * This method is used only by the Recommendations AI JavaScript pixel.
-     * Users should not call this method directly.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - collectUserEvent( - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCollectUserEventMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a list of user events within a time range, with potential filtering.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse> - listUserEvents( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUserEventsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes permanently all user events specified by the filter provided.
-     * Depending on the number of events specified by the filter, this operation
-     * could take hours or days to complete. To test a filter, use the list
-     * command first.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - purgeUserEvents( - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPurgeUserEventsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Bulk import of User events. Request processing might be
-     * synchronous. Events that already exist are skipped.
-     * Use this method for backfilling historical user events.
-     * Operation.response is of type ImportResponse. Note that it is
-     * possible for a subset of the items to be successfully inserted.
-     * Operation.metadata is of type ImportMetadata.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - importUserEvents( - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getImportUserEventsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_WRITE_USER_EVENT = 0; - private static final int METHODID_COLLECT_USER_EVENT = 1; - private static final int METHODID_LIST_USER_EVENTS = 2; - private static final int METHODID_PURGE_USER_EVENTS = 3; - private static final int METHODID_IMPORT_USER_EVENTS = 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 UserEventServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(UserEventServiceImplBase 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_WRITE_USER_EVENT: - serviceImpl.writeUserEvent( - (com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_COLLECT_USER_EVENT: - serviceImpl.collectUserEvent( - (com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_USER_EVENTS: - serviceImpl.listUserEvents( - (com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse>) - responseObserver); - break; - case METHODID_PURGE_USER_EVENTS: - serviceImpl.purgeUserEvents( - (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_IMPORT_USER_EVENTS: - serviceImpl.importUserEvents( - (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class UserEventServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - UserEventServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("UserEventService"); - } - } - - private static final class UserEventServiceFileDescriptorSupplier - extends UserEventServiceBaseDescriptorSupplier { - UserEventServiceFileDescriptorSupplier() {} - } - - private static final class UserEventServiceMethodDescriptorSupplier - extends UserEventServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - UserEventServiceMethodDescriptorSupplier(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 (UserEventServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new UserEventServiceFileDescriptorSupplier()) - .addMethod(getWriteUserEventMethod()) - .addMethod(getCollectUserEventMethod()) - .addMethod(getListUserEventsMethod()) - .addMethod(getPurgeUserEventsMethod()) - .addMethod(getImportUserEventsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java similarity index 95% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java index 4eaf88a7..dd298236 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; @@ -31,7 +32,6 @@ import com.google.cloud.recommendationengine.v1beta1.stub.CatalogServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; @@ -63,13 +63,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -104,6 +104,20 @@ * CatalogServiceClient catalogServiceClient = CatalogServiceClient.create(catalogServiceSettings); * } * + *

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

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * CatalogServiceSettings catalogServiceSettings =
+ *     CatalogServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             CatalogServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * CatalogServiceClient catalogServiceClient = CatalogServiceClient.create(catalogServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi @@ -111,7 +125,8 @@ public class CatalogServiceClient implements BackgroundResource { private final CatalogServiceSettings settings; private final CatalogServiceStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of CatalogServiceClient with default settings. */ public static final CatalogServiceClient create() throws IOException { @@ -143,13 +158,17 @@ public static final CatalogServiceClient create(CatalogServiceStub stub) { protected CatalogServiceClient(CatalogServiceSettings settings) throws IOException { this.settings = settings; this.stub = ((CatalogServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected CatalogServiceClient(CatalogServiceStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final CatalogServiceSettings getSettings() { @@ -164,10 +183,18 @@ public CatalogServiceStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a catalog item. @@ -1019,10 +1046,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListCatalogItemsPagedResponse extends AbstractPagedListResponse< - ListCatalogItemsRequest, - ListCatalogItemsResponse, - CatalogItem, - ListCatalogItemsPage, + ListCatalogItemsRequest, ListCatalogItemsResponse, CatalogItem, ListCatalogItemsPage, ListCatalogItemsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1072,10 +1096,7 @@ public ApiFuture createPageAsync( public static class ListCatalogItemsFixedSizeCollection extends AbstractFixedSizeCollection< - ListCatalogItemsRequest, - ListCatalogItemsResponse, - CatalogItem, - ListCatalogItemsPage, + ListCatalogItemsRequest, ListCatalogItemsResponse, CatalogItem, ListCatalogItemsPage, ListCatalogItemsFixedSizeCollection> { private ListCatalogItemsFixedSizeCollection( diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java similarity index 90% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java index 899c591f..233a2f7f 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java @@ -23,11 +23,13 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.recommendationengine.v1beta1.stub.CatalogServiceStubSettings; @@ -44,10 +46,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -140,11 +142,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return CatalogServiceStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return CatalogServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return CatalogServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return CatalogServiceStubSettings.defaultTransportChannelProvider(); } @@ -154,11 +163,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return CatalogServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -196,6 +211,11 @@ private static Builder createDefault() { return new Builder(CatalogServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(CatalogServiceStubSettings.newHttpJsonBuilder()); + } + public CatalogServiceStubSettings.Builder getStubSettingsBuilder() { return ((CatalogServiceStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java similarity index 93% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java index faad7422..c8f13fce 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java @@ -67,13 +67,13 @@ * methods: * *

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

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

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * PredictionApiKeyRegistrySettings predictionApiKeyRegistrySettings =
+ *     PredictionApiKeyRegistrySettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             PredictionApiKeyRegistrySettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
+ *     PredictionApiKeyRegistryClient.create(predictionApiKeyRegistrySettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi @@ -648,16 +663,13 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListPredictionApiKeyRegistrationsPagedResponse extends AbstractPagedListResponse< - ListPredictionApiKeyRegistrationsRequest, - ListPredictionApiKeyRegistrationsResponse, - PredictionApiKeyRegistration, - ListPredictionApiKeyRegistrationsPage, + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, + PredictionApiKeyRegistration, ListPredictionApiKeyRegistrationsPage, ListPredictionApiKeyRegistrationsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< - ListPredictionApiKeyRegistrationsRequest, - ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, PredictionApiKeyRegistration> context, ApiFuture futureResponse) { @@ -678,15 +690,12 @@ private ListPredictionApiKeyRegistrationsPagedResponse( public static class ListPredictionApiKeyRegistrationsPage extends AbstractPage< - ListPredictionApiKeyRegistrationsRequest, - ListPredictionApiKeyRegistrationsResponse, - PredictionApiKeyRegistration, - ListPredictionApiKeyRegistrationsPage> { + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, + PredictionApiKeyRegistration, ListPredictionApiKeyRegistrationsPage> { private ListPredictionApiKeyRegistrationsPage( PageContext< - ListPredictionApiKeyRegistrationsRequest, - ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, PredictionApiKeyRegistration> context, ListPredictionApiKeyRegistrationsResponse response) { @@ -700,8 +709,7 @@ private static ListPredictionApiKeyRegistrationsPage createEmptyPage() { @Override protected ListPredictionApiKeyRegistrationsPage createPage( PageContext< - ListPredictionApiKeyRegistrationsRequest, - ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, PredictionApiKeyRegistration> context, ListPredictionApiKeyRegistrationsResponse response) { @@ -711,8 +719,7 @@ protected ListPredictionApiKeyRegistrationsPage createPage( @Override public ApiFuture createPageAsync( PageContext< - ListPredictionApiKeyRegistrationsRequest, - ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, PredictionApiKeyRegistration> context, ApiFuture futureResponse) { @@ -722,10 +729,8 @@ public ApiFuture createPageAsync( public static class ListPredictionApiKeyRegistrationsFixedSizeCollection extends AbstractFixedSizeCollection< - ListPredictionApiKeyRegistrationsRequest, - ListPredictionApiKeyRegistrationsResponse, - PredictionApiKeyRegistration, - ListPredictionApiKeyRegistrationsPage, + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, + PredictionApiKeyRegistration, ListPredictionApiKeyRegistrationsPage, ListPredictionApiKeyRegistrationsFixedSizeCollection> { private ListPredictionApiKeyRegistrationsFixedSizeCollection( diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java similarity index 87% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java index a0fd2fd5..7b96b961 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java @@ -23,10 +23,12 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.recommendationengine.v1beta1.stub.PredictionApiKeyRegistryStubSettings; @@ -42,10 +44,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -85,8 +87,7 @@ public class PredictionApiKeyRegistrySettings /** Returns the object with the settings used for calls to listPredictionApiKeyRegistrations. */ public PagedCallSettings< - ListPredictionApiKeyRegistrationsRequest, - ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, ListPredictionApiKeyRegistrationsPagedResponse> listPredictionApiKeyRegistrationsSettings() { return ((PredictionApiKeyRegistryStubSettings) getStubSettings()) @@ -125,11 +126,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return PredictionApiKeyRegistryStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return PredictionApiKeyRegistryStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return PredictionApiKeyRegistryStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return PredictionApiKeyRegistryStubSettings.defaultTransportChannelProvider(); } @@ -139,11 +147,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return PredictionApiKeyRegistryStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -182,6 +196,11 @@ private static Builder createDefault() { return new Builder(PredictionApiKeyRegistryStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(PredictionApiKeyRegistryStubSettings.newHttpJsonBuilder()); + } + public PredictionApiKeyRegistryStubSettings.Builder getStubSettingsBuilder() { return ((PredictionApiKeyRegistryStubSettings.Builder) getStubSettings()); } @@ -209,8 +228,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listPredictionApiKeyRegistrations. */ public PagedCallSettings.Builder< - ListPredictionApiKeyRegistrationsRequest, - ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, ListPredictionApiKeyRegistrationsPagedResponse> listPredictionApiKeyRegistrationsSettings() { return getStubSettingsBuilder().listPredictionApiKeyRegistrationsSettings(); diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java similarity index 91% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java index 1c965227..324372dc 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java @@ -64,13 +64,13 @@ * methods: * *

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

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

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * PredictionServiceSettings predictionServiceSettings =
+ *     PredictionServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             PredictionServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * PredictionServiceClient predictionServiceClient =
+ *     PredictionServiceClient.create(predictionServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi @@ -189,23 +204,23 @@ public PredictionServiceStub getStub() { * models that will be used to make the prediction. *

We currently support three placements with the following IDs by default: *

    - *
  • `shopping_cart`: Predicts items frequently bought together with one or more catalog + *
  • `shopping_cart`: Predicts items frequently bought together with one or more catalog * items in the same shopping session. Commonly displayed after `add-to-cart` events, on * product detail pages, or on the shopping cart page. *
*
    - *
  • `home_page`: Predicts the next product that a user will most likely engage with or + *
  • `home_page`: Predicts the next product that a user will most likely engage with or * purchase based on the shopping or viewing history of the specified `userId` or * `visitorId`. For example - Recommendations for you. *
*
    - *
  • `product_detail`: Predicts the next product that a user will most likely engage with + *
  • `product_detail`: Predicts the next product that a user will most likely engage with * or purchase. The prediction is based on the shopping or viewing history of the * specified `userId` or `visitorId` and its relevance to a specified `CatalogItem`. * Typically used on product detail pages. For example - More items like this. *
*
    - *
  • `recently_viewed_default`: Returns up to 75 items recently viewed by the specified + *
  • `recently_viewed_default`: Returns up to 75 items recently viewed by the specified * `userId` or `visitorId`, most recent ones first. Returns nothing if neither of them * has viewed any items yet. For example - Recently viewed. *
@@ -256,23 +271,23 @@ public final PredictPagedResponse predict(PlacementName name, UserEvent userEven * models that will be used to make the prediction. *

We currently support three placements with the following IDs by default: *

    - *
  • `shopping_cart`: Predicts items frequently bought together with one or more catalog + *
  • `shopping_cart`: Predicts items frequently bought together with one or more catalog * items in the same shopping session. Commonly displayed after `add-to-cart` events, on * product detail pages, or on the shopping cart page. *
*
    - *
  • `home_page`: Predicts the next product that a user will most likely engage with or + *
  • `home_page`: Predicts the next product that a user will most likely engage with or * purchase based on the shopping or viewing history of the specified `userId` or * `visitorId`. For example - Recommendations for you. *
*
    - *
  • `product_detail`: Predicts the next product that a user will most likely engage with + *
  • `product_detail`: Predicts the next product that a user will most likely engage with * or purchase. The prediction is based on the shopping or viewing history of the * specified `userId` or `visitorId` and its relevance to a specified `CatalogItem`. * Typically used on product detail pages. For example - More items like this. *
*
    - *
  • `recently_viewed_default`: Returns up to 75 items recently viewed by the specified + *
  • `recently_viewed_default`: Returns up to 75 items recently viewed by the specified * `userId` or `visitorId`, most recent ones first. Returns nothing if neither of them * has viewed any items yet. For example - Recently viewed. *
@@ -449,10 +464,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class PredictPagedResponse extends AbstractPagedListResponse< - PredictRequest, - PredictResponse, - Map.Entry, - PredictPage, + PredictRequest, PredictResponse, Map.Entry, PredictPage, PredictFixedSizeCollection> { public static ApiFuture createAsync( @@ -499,10 +511,7 @@ public ApiFuture createPageAsync( public static class PredictFixedSizeCollection extends AbstractFixedSizeCollection< - PredictRequest, - PredictResponse, - Map.Entry, - PredictPage, + PredictRequest, PredictResponse, Map.Entry, PredictPage, PredictFixedSizeCollection> { private PredictFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java similarity index 86% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java index b4463873..4b12cd78 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java @@ -23,10 +23,12 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.recommendationengine.v1beta1.stub.PredictionServiceStubSettings; @@ -41,10 +43,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When @@ -104,11 +106,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return PredictionServiceStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return PredictionServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return PredictionServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return PredictionServiceStubSettings.defaultTransportChannelProvider(); } @@ -118,11 +127,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return PredictionServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -160,6 +175,11 @@ private static Builder createDefault() { return new Builder(PredictionServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(PredictionServiceStubSettings.newHttpJsonBuilder()); + } + public PredictionServiceStubSettings.Builder getStubSettingsBuilder() { return ((PredictionServiceStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java similarity index 94% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java index f642ed32..8656b5d8 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java @@ -21,6 +21,7 @@ import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; @@ -32,7 +33,6 @@ import com.google.cloud.recommendationengine.v1beta1.stub.UserEventServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -64,13 +64,13 @@ * methods: * *

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

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

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * UserEventServiceSettings userEventServiceSettings =
+ *     UserEventServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             UserEventServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * UserEventServiceClient userEventServiceClient =
+ *     UserEventServiceClient.create(userEventServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi @@ -114,7 +129,8 @@ public class UserEventServiceClient implements BackgroundResource { private final UserEventServiceSettings settings; private final UserEventServiceStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of UserEventServiceClient with default settings. */ public static final UserEventServiceClient create() throws IOException { @@ -146,13 +162,17 @@ public static final UserEventServiceClient create(UserEventServiceStub stub) { protected UserEventServiceClient(UserEventServiceSettings settings) throws IOException { this.settings = settings; this.stub = ((UserEventServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected UserEventServiceClient(UserEventServiceStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final UserEventServiceSettings getSettings() { @@ -167,10 +187,18 @@ public UserEventServiceStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Writes a single user event. @@ -679,12 +707,12 @@ public final ListUserEventsPagedResponse listUserEvents(ListUserEventsRequest re * filter is not allowed. This filter can also be used with ListUserEvents API to list events * that will be deleted. The eligible fields for filtering are: *

    - *
  • eventType - UserEvent.eventType field of type string. - *
  • eventTime - in ISO 8601 "zulu" format. - *
  • visitorId - field of type string. Specifying this will delete all events associated + *
  • eventType - UserEvent.eventType field of type string. + *
  • eventTime - in ISO 8601 "zulu" format. + *
  • visitorId - field of type string. Specifying this will delete all events associated * with a visitor. - *
  • userId - field of type string. Specifying this will delete all events associated with - * a user. Example 1: Deleting all events in a time range. `eventTime > + *
  • userId - field of type string. Specifying this will delete all events associated + * with a user. Example 1: Deleting all events in a time range. `eventTime > * "2012-04-23T18:25:43.511Z" eventTime < "2012-04-23T18:30:43.511Z"` Example 2: * Deleting specific eventType in time range. `eventTime > "2012-04-23T18:25:43.511Z" * eventType = "detail-page-view"` Example 3: Deleting all events for a specific visitor @@ -735,12 +763,12 @@ public final ListUserEventsPagedResponse listUserEvents(ListUserEventsRequest re * filter is not allowed. This filter can also be used with ListUserEvents API to list events * that will be deleted. The eligible fields for filtering are: *
      - *
    • eventType - UserEvent.eventType field of type string. - *
    • eventTime - in ISO 8601 "zulu" format. - *
    • visitorId - field of type string. Specifying this will delete all events associated + *
    • eventType - UserEvent.eventType field of type string. + *
    • eventTime - in ISO 8601 "zulu" format. + *
    • visitorId - field of type string. Specifying this will delete all events associated * with a visitor. - *
    • userId - field of type string. Specifying this will delete all events associated with - * a user. Example 1: Deleting all events in a time range. `eventTime > + *
    • userId - field of type string. Specifying this will delete all events associated + * with a user. Example 1: Deleting all events in a time range. `eventTime > * "2012-04-23T18:25:43.511Z" eventTime < "2012-04-23T18:30:43.511Z"` Example 2: * Deleting specific eventType in time range. `eventTime > "2012-04-23T18:25:43.511Z" * eventType = "detail-page-view"` Example 3: Deleting all events for a specific visitor @@ -1097,10 +1125,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListUserEventsPagedResponse extends AbstractPagedListResponse< - ListUserEventsRequest, - ListUserEventsResponse, - UserEvent, - ListUserEventsPage, + ListUserEventsRequest, ListUserEventsResponse, UserEvent, ListUserEventsPage, ListUserEventsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1150,10 +1175,7 @@ public ApiFuture createPageAsync( public static class ListUserEventsFixedSizeCollection extends AbstractFixedSizeCollection< - ListUserEventsRequest, - ListUserEventsResponse, - UserEvent, - ListUserEventsPage, + ListUserEventsRequest, ListUserEventsResponse, UserEvent, ListUserEventsPage, ListUserEventsFixedSizeCollection> { private ListUserEventsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java similarity index 90% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java index 3c727fe0..0ddcfd68 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java @@ -24,11 +24,13 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.recommendationengine.v1beta1.stub.UserEventServiceStubSettings; @@ -44,10 +46,10 @@ *

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

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

      The builder of this class is recursive, so contained classes are themselves builders. When @@ -141,11 +143,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return UserEventServiceStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return UserEventServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return UserEventServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return UserEventServiceStubSettings.defaultTransportChannelProvider(); } @@ -155,11 +164,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return UserEventServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -197,6 +212,11 @@ private static Builder createDefault() { return new Builder(UserEventServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(UserEventServiceStubSettings.newHttpJsonBuilder()); + } + public UserEventServiceStubSettings.Builder getStubSettingsBuilder() { return ((UserEventServiceStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/gapic_metadata.json b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/gapic_metadata.json similarity index 100% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/gapic_metadata.json rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/gapic_metadata.json diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/package-info.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/package-info.java similarity index 100% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/package-info.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/package-info.java diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStub.java similarity index 96% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStub.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStub.java index 97ab5aff..8fdd08d7 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStub.java @@ -48,7 +48,11 @@ public abstract class CatalogServiceStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public UnaryCallable createCatalogItemCallable() { diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java similarity index 90% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java index 2e81eb72..7825ec78 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java @@ -28,6 +28,9 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; @@ -72,10 +75,10 @@ *

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

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

      The builder of this class is recursive, so contained classes are themselves builders. When @@ -223,6 +226,11 @@ public CatalogServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcCatalogServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonCatalogServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -255,18 +263,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(CatalogServiceStubSettings.class)) @@ -274,11 +289,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CatalogServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CatalogServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -415,6 +449,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createCatalogItemSettings() diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceCallableFactory.java similarity index 100% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceCallableFactory.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceCallableFactory.java diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceStub.java similarity index 99% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceStub.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceStub.java index f403a4b7..03bf09fd 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceStub.java @@ -43,6 +43,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryCallableFactory.java similarity index 100% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryCallableFactory.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryCallableFactory.java diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryStub.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryStub.java similarity index 99% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryStub.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryStub.java index 8d2b192e..18e91feb 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryStub.java @@ -36,6 +36,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceCallableFactory.java similarity index 100% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceCallableFactory.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceCallableFactory.java diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceStub.java similarity index 99% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceStub.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceStub.java index 3ab7305c..5d4a7354 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceStub.java @@ -32,6 +32,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceCallableFactory.java similarity index 100% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceCallableFactory.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceCallableFactory.java diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceStub.java similarity index 99% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceStub.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceStub.java index 345feaf6..fac9e949 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceStub.java @@ -44,6 +44,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceCallableFactory.java new file mode 100644 index 00000000..2e9ef461 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the CatalogService service API. + * + *

      This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonCatalogServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceStub.java new file mode 100644 index 00000000..be62fc23 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceStub.java @@ -0,0 +1,517 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.stub; + +import static com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient.ListCatalogItemsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.recommendationengine.v1beta1.CatalogItem; +import com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest; +import com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest; +import com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest; +import com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest; +import com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse; +import com.google.cloud.recommendationengine.v1beta1.ImportMetadata; +import com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest; +import com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse; +import com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the CatalogService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonCatalogServiceStub extends CatalogServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(ImportCatalogItemsResponse.getDescriptor()) + .add(ImportMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + createCatalogItemMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.recommendationengine.v1beta1.CatalogService/CreateCatalogItem") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/catalogs/*}/catalogItems", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("catalogItem", request.getCatalogItem())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CatalogItem.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getCatalogItemMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.recommendationengine.v1beta1.CatalogService/GetCatalogItem") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/catalogs/*/catalogItems/**}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CatalogItem.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listCatalogItemsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.recommendationengine.v1beta1.CatalogService/ListCatalogItems") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/catalogs/*}/catalogItems", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListCatalogItemsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateCatalogItemMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.recommendationengine.v1beta1.CatalogService/UpdateCatalogItem") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/catalogs/*/catalogItems/**}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("catalogItem", request.getCatalogItem())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CatalogItem.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteCatalogItemMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.recommendationengine.v1beta1.CatalogService/DeleteCatalogItem") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/catalogs/*/catalogItems/**}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + importCatalogItemsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.recommendationengine.v1beta1.CatalogService/ImportCatalogItems") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/catalogs/*}/catalogItems:import", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ImportCatalogItemsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable createCatalogItemCallable; + private final UnaryCallable getCatalogItemCallable; + private final UnaryCallable + listCatalogItemsCallable; + private final UnaryCallable + listCatalogItemsPagedCallable; + private final UnaryCallable updateCatalogItemCallable; + private final UnaryCallable deleteCatalogItemCallable; + private final UnaryCallable importCatalogItemsCallable; + private final OperationCallable< + ImportCatalogItemsRequest, ImportCatalogItemsResponse, ImportMetadata> + importCatalogItemsOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonCatalogServiceStub create(CatalogServiceStubSettings settings) + throws IOException { + return new HttpJsonCatalogServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonCatalogServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonCatalogServiceStub( + CatalogServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonCatalogServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonCatalogServiceStub( + CatalogServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonCatalogServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonCatalogServiceStub( + CatalogServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonCatalogServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonCatalogServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonCatalogServiceStub( + CatalogServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings createCatalogItemTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCatalogItemMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getCatalogItemTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCatalogItemMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listCatalogItemsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listCatalogItemsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateCatalogItemTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCatalogItemMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteCatalogItemTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCatalogItemMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings importCatalogItemsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(importCatalogItemsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createCatalogItemCallable = + callableFactory.createUnaryCallable( + createCatalogItemTransportSettings, + settings.createCatalogItemSettings(), + clientContext); + this.getCatalogItemCallable = + callableFactory.createUnaryCallable( + getCatalogItemTransportSettings, settings.getCatalogItemSettings(), clientContext); + this.listCatalogItemsCallable = + callableFactory.createUnaryCallable( + listCatalogItemsTransportSettings, settings.listCatalogItemsSettings(), clientContext); + this.listCatalogItemsPagedCallable = + callableFactory.createPagedCallable( + listCatalogItemsTransportSettings, settings.listCatalogItemsSettings(), clientContext); + this.updateCatalogItemCallable = + callableFactory.createUnaryCallable( + updateCatalogItemTransportSettings, + settings.updateCatalogItemSettings(), + clientContext); + this.deleteCatalogItemCallable = + callableFactory.createUnaryCallable( + deleteCatalogItemTransportSettings, + settings.deleteCatalogItemSettings(), + clientContext); + this.importCatalogItemsCallable = + callableFactory.createUnaryCallable( + importCatalogItemsTransportSettings, + settings.importCatalogItemsSettings(), + clientContext); + this.importCatalogItemsOperationCallable = + callableFactory.createOperationCallable( + importCatalogItemsTransportSettings, + settings.importCatalogItemsOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createCatalogItemMethodDescriptor); + methodDescriptors.add(getCatalogItemMethodDescriptor); + methodDescriptors.add(listCatalogItemsMethodDescriptor); + methodDescriptors.add(updateCatalogItemMethodDescriptor); + methodDescriptors.add(deleteCatalogItemMethodDescriptor); + methodDescriptors.add(importCatalogItemsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable createCatalogItemCallable() { + return createCatalogItemCallable; + } + + @Override + public UnaryCallable getCatalogItemCallable() { + return getCatalogItemCallable; + } + + @Override + public UnaryCallable + listCatalogItemsCallable() { + return listCatalogItemsCallable; + } + + @Override + public UnaryCallable + listCatalogItemsPagedCallable() { + return listCatalogItemsPagedCallable; + } + + @Override + public UnaryCallable updateCatalogItemCallable() { + return updateCatalogItemCallable; + } + + @Override + public UnaryCallable deleteCatalogItemCallable() { + return deleteCatalogItemCallable; + } + + @Override + public UnaryCallable importCatalogItemsCallable() { + return importCatalogItemsCallable; + } + + @Override + public OperationCallable + importCatalogItemsOperationCallable() { + return importCatalogItemsOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryCallableFactory.java new file mode 100644 index 00000000..0517effb --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the PredictionApiKeyRegistry service API. + * + *

      This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonPredictionApiKeyRegistryCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryStub.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryStub.java new file mode 100644 index 00000000..f412c6c4 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryStub.java @@ -0,0 +1,352 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.stub; + +import static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient.ListPredictionApiKeyRegistrationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest; +import com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest; +import com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest; +import com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the PredictionApiKeyRegistry service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonPredictionApiKeyRegistryStub extends PredictionApiKeyRegistryStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor< + CreatePredictionApiKeyRegistrationRequest, PredictionApiKeyRegistration> + createPredictionApiKeyRegistrationMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry/CreatePredictionApiKeyRegistration") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/catalogs/*/eventStores/*}/predictionApiKeyRegistrations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PredictionApiKeyRegistration.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse> + listPredictionApiKeyRegistrationsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry/ListPredictionApiKeyRegistrations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/catalogs/*/eventStores/*}/predictionApiKeyRegistrations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + ListPredictionApiKeyRegistrationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deletePredictionApiKeyRegistrationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry/DeletePredictionApiKeyRegistration") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/catalogs/*/eventStores/*/predictionApiKeyRegistrations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable< + CreatePredictionApiKeyRegistrationRequest, PredictionApiKeyRegistration> + createPredictionApiKeyRegistrationCallable; + private final UnaryCallable< + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse> + listPredictionApiKeyRegistrationsCallable; + private final UnaryCallable< + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsPagedResponse> + listPredictionApiKeyRegistrationsPagedCallable; + private final UnaryCallable + deletePredictionApiKeyRegistrationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonPredictionApiKeyRegistryStub create( + PredictionApiKeyRegistryStubSettings settings) throws IOException { + return new HttpJsonPredictionApiKeyRegistryStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonPredictionApiKeyRegistryStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonPredictionApiKeyRegistryStub( + PredictionApiKeyRegistryStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonPredictionApiKeyRegistryStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonPredictionApiKeyRegistryStub( + PredictionApiKeyRegistryStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonPredictionApiKeyRegistryStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonPredictionApiKeyRegistryStub( + PredictionApiKeyRegistryStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonPredictionApiKeyRegistryCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonPredictionApiKeyRegistryStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonPredictionApiKeyRegistryStub( + PredictionApiKeyRegistryStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + createPredictionApiKeyRegistrationTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(createPredictionApiKeyRegistrationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings< + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse> + listPredictionApiKeyRegistrationsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listPredictionApiKeyRegistrationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deletePredictionApiKeyRegistrationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deletePredictionApiKeyRegistrationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createPredictionApiKeyRegistrationCallable = + callableFactory.createUnaryCallable( + createPredictionApiKeyRegistrationTransportSettings, + settings.createPredictionApiKeyRegistrationSettings(), + clientContext); + this.listPredictionApiKeyRegistrationsCallable = + callableFactory.createUnaryCallable( + listPredictionApiKeyRegistrationsTransportSettings, + settings.listPredictionApiKeyRegistrationsSettings(), + clientContext); + this.listPredictionApiKeyRegistrationsPagedCallable = + callableFactory.createPagedCallable( + listPredictionApiKeyRegistrationsTransportSettings, + settings.listPredictionApiKeyRegistrationsSettings(), + clientContext); + this.deletePredictionApiKeyRegistrationCallable = + callableFactory.createUnaryCallable( + deletePredictionApiKeyRegistrationTransportSettings, + settings.deletePredictionApiKeyRegistrationSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createPredictionApiKeyRegistrationMethodDescriptor); + methodDescriptors.add(listPredictionApiKeyRegistrationsMethodDescriptor); + methodDescriptors.add(deletePredictionApiKeyRegistrationMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + createPredictionApiKeyRegistrationCallable() { + return createPredictionApiKeyRegistrationCallable; + } + + @Override + public UnaryCallable< + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse> + listPredictionApiKeyRegistrationsCallable() { + return listPredictionApiKeyRegistrationsCallable; + } + + @Override + public UnaryCallable< + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsPagedResponse> + listPredictionApiKeyRegistrationsPagedCallable() { + return listPredictionApiKeyRegistrationsPagedCallable; + } + + @Override + public UnaryCallable + deletePredictionApiKeyRegistrationCallable() { + return deletePredictionApiKeyRegistrationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceCallableFactory.java new file mode 100644 index 00000000..fd7da10d --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the PredictionService service API. + * + *

      This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonPredictionServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceStub.java new file mode 100644 index 00000000..503f4b51 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceStub.java @@ -0,0 +1,206 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.stub; + +import static com.google.cloud.recommendationengine.v1beta1.PredictionServiceClient.PredictPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.recommendationengine.v1beta1.PredictRequest; +import com.google.cloud.recommendationengine.v1beta1.PredictResponse; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the PredictionService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonPredictionServiceStub extends PredictionServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + predictMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.recommendationengine.v1beta1.PredictionService/Predict") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/catalogs/*/eventStores/*/placements/*}:predict", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PredictResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable predictCallable; + private final UnaryCallable predictPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonPredictionServiceStub create(PredictionServiceStubSettings settings) + throws IOException { + return new HttpJsonPredictionServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonPredictionServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonPredictionServiceStub( + PredictionServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonPredictionServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonPredictionServiceStub( + PredictionServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonPredictionServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonPredictionServiceStub( + PredictionServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonPredictionServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonPredictionServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonPredictionServiceStub( + PredictionServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings predictTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(predictMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.predictCallable = + callableFactory.createUnaryCallable( + predictTransportSettings, settings.predictSettings(), clientContext); + this.predictPagedCallable = + callableFactory.createPagedCallable( + predictTransportSettings, settings.predictSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(predictMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable predictCallable() { + return predictCallable; + } + + @Override + public UnaryCallable predictPagedCallable() { + return predictPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceCallableFactory.java new file mode 100644 index 00000000..310e107b --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the UserEventService service API. + * + *

      This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonUserEventServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceStub.java new file mode 100644 index 00000000..e4e9c879 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceStub.java @@ -0,0 +1,480 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.stub; + +import static com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient.ListUserEventsPagedResponse; + +import com.google.api.HttpBody; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest; +import com.google.cloud.recommendationengine.v1beta1.ImportMetadata; +import com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest; +import com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse; +import com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest; +import com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse; +import com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata; +import com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest; +import com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse; +import com.google.cloud.recommendationengine.v1beta1.UserEvent; +import com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the UserEventService service API. + * + *

      This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonUserEventServiceStub extends UserEventServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(PurgeUserEventsMetadata.getDescriptor()) + .add(PurgeUserEventsResponse.getDescriptor()) + .add(ImportUserEventsResponse.getDescriptor()) + .add(ImportMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + writeUserEventMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.recommendationengine.v1beta1.UserEventService/WriteUserEvent") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/catalogs/*/eventStores/*}/userEvents:write", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("userEvent", request.getUserEvent())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(UserEvent.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + collectUserEventMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.recommendationengine.v1beta1.UserEventService/CollectUserEvent") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/catalogs/*/eventStores/*}/userEvents:collect", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "ets", request.getEts()); + serializer.putQueryParam(fields, "uri", request.getUri()); + serializer.putQueryParam(fields, "userEvent", request.getUserEvent()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(HttpBody.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listUserEventsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.recommendationengine.v1beta1.UserEventService/ListUserEvents") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/catalogs/*/eventStores/*}/userEvents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListUserEventsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + purgeUserEventsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.recommendationengine.v1beta1.UserEventService/PurgeUserEvents") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/catalogs/*/eventStores/*}/userEvents:purge", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (PurgeUserEventsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + importUserEventsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.recommendationengine.v1beta1.UserEventService/ImportUserEvents") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/catalogs/*/eventStores/*}/userEvents:import", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ImportUserEventsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable writeUserEventCallable; + private final UnaryCallable collectUserEventCallable; + private final UnaryCallable listUserEventsCallable; + private final UnaryCallable + listUserEventsPagedCallable; + private final UnaryCallable purgeUserEventsCallable; + private final OperationCallable< + PurgeUserEventsRequest, PurgeUserEventsResponse, PurgeUserEventsMetadata> + purgeUserEventsOperationCallable; + private final UnaryCallable importUserEventsCallable; + private final OperationCallable + importUserEventsOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonUserEventServiceStub create(UserEventServiceStubSettings settings) + throws IOException { + return new HttpJsonUserEventServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonUserEventServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonUserEventServiceStub( + UserEventServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonUserEventServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonUserEventServiceStub( + UserEventServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonUserEventServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonUserEventServiceStub( + UserEventServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonUserEventServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonUserEventServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonUserEventServiceStub( + UserEventServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings writeUserEventTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(writeUserEventMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings collectUserEventTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(collectUserEventMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listUserEventsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listUserEventsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings purgeUserEventsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(purgeUserEventsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings importUserEventsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(importUserEventsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.writeUserEventCallable = + callableFactory.createUnaryCallable( + writeUserEventTransportSettings, settings.writeUserEventSettings(), clientContext); + this.collectUserEventCallable = + callableFactory.createUnaryCallable( + collectUserEventTransportSettings, settings.collectUserEventSettings(), clientContext); + this.listUserEventsCallable = + callableFactory.createUnaryCallable( + listUserEventsTransportSettings, settings.listUserEventsSettings(), clientContext); + this.listUserEventsPagedCallable = + callableFactory.createPagedCallable( + listUserEventsTransportSettings, settings.listUserEventsSettings(), clientContext); + this.purgeUserEventsCallable = + callableFactory.createUnaryCallable( + purgeUserEventsTransportSettings, settings.purgeUserEventsSettings(), clientContext); + this.purgeUserEventsOperationCallable = + callableFactory.createOperationCallable( + purgeUserEventsTransportSettings, + settings.purgeUserEventsOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.importUserEventsCallable = + callableFactory.createUnaryCallable( + importUserEventsTransportSettings, settings.importUserEventsSettings(), clientContext); + this.importUserEventsOperationCallable = + callableFactory.createOperationCallable( + importUserEventsTransportSettings, + settings.importUserEventsOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(writeUserEventMethodDescriptor); + methodDescriptors.add(collectUserEventMethodDescriptor); + methodDescriptors.add(listUserEventsMethodDescriptor); + methodDescriptors.add(purgeUserEventsMethodDescriptor); + methodDescriptors.add(importUserEventsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable writeUserEventCallable() { + return writeUserEventCallable; + } + + @Override + public UnaryCallable collectUserEventCallable() { + return collectUserEventCallable; + } + + @Override + public UnaryCallable listUserEventsCallable() { + return listUserEventsCallable; + } + + @Override + public UnaryCallable + listUserEventsPagedCallable() { + return listUserEventsPagedCallable; + } + + @Override + public UnaryCallable purgeUserEventsCallable() { + return purgeUserEventsCallable; + } + + @Override + public OperationCallable + purgeUserEventsOperationCallable() { + return purgeUserEventsOperationCallable; + } + + @Override + public UnaryCallable importUserEventsCallable() { + return importUserEventsCallable; + } + + @Override + public OperationCallable + importUserEventsOperationCallable() { + return importUserEventsOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStub.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStub.java similarity index 100% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStub.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStub.java diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java similarity index 84% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java index e4738247..13f6db8a 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java @@ -27,6 +27,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -62,10 +65,10 @@ *

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

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

      The builder of this class is recursive, so contained classes are themselves builders. When @@ -103,21 +106,18 @@ public class PredictionApiKeyRegistryStubSettings CreatePredictionApiKeyRegistrationRequest, PredictionApiKeyRegistration> createPredictionApiKeyRegistrationSettings; private final PagedCallSettings< - ListPredictionApiKeyRegistrationsRequest, - ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, ListPredictionApiKeyRegistrationsPagedResponse> listPredictionApiKeyRegistrationsSettings; private final UnaryCallSettings deletePredictionApiKeyRegistrationSettings; private static final PagedListDescriptor< - ListPredictionApiKeyRegistrationsRequest, - ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, PredictionApiKeyRegistration> LIST_PREDICTION_API_KEY_REGISTRATIONS_PAGE_STR_DESC = new PagedListDescriptor< - ListPredictionApiKeyRegistrationsRequest, - ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, PredictionApiKeyRegistration>() { @Override public String emptyToken() { @@ -160,13 +160,11 @@ public Iterable extractResources( }; private static final PagedListResponseFactory< - ListPredictionApiKeyRegistrationsRequest, - ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, ListPredictionApiKeyRegistrationsPagedResponse> LIST_PREDICTION_API_KEY_REGISTRATIONS_PAGE_STR_FACT = new PagedListResponseFactory< - ListPredictionApiKeyRegistrationsRequest, - ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, ListPredictionApiKeyRegistrationsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -179,8 +177,7 @@ public ApiFuture getFuturePagedR ApiFuture futureResponse) { PageContext< ListPredictionApiKeyRegistrationsRequest, - ListPredictionApiKeyRegistrationsResponse, - PredictionApiKeyRegistration> + ListPredictionApiKeyRegistrationsResponse, PredictionApiKeyRegistration> pageContext = PageContext.create( callable, @@ -200,8 +197,7 @@ public ApiFuture getFuturePagedR /** Returns the object with the settings used for calls to listPredictionApiKeyRegistrations. */ public PagedCallSettings< - ListPredictionApiKeyRegistrationsRequest, - ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, ListPredictionApiKeyRegistrationsPagedResponse> listPredictionApiKeyRegistrationsSettings() { return listPredictionApiKeyRegistrationsSettings; @@ -219,6 +215,11 @@ public PredictionApiKeyRegistryStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcPredictionApiKeyRegistryStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonPredictionApiKeyRegistryStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -251,18 +252,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(PredictionApiKeyRegistryStubSettings.class)) @@ -270,11 +278,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(PredictionApiKeyRegistryStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return PredictionApiKeyRegistryStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -304,8 +331,7 @@ public static class Builder CreatePredictionApiKeyRegistrationRequest, PredictionApiKeyRegistration> createPredictionApiKeyRegistrationSettings; private final PagedCallSettings.Builder< - ListPredictionApiKeyRegistrationsRequest, - ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, ListPredictionApiKeyRegistrationsPagedResponse> listPredictionApiKeyRegistrationsSettings; private final UnaryCallSettings.Builder @@ -393,6 +419,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createPredictionApiKeyRegistrationSettings() @@ -438,8 +477,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listPredictionApiKeyRegistrations. */ public PagedCallSettings.Builder< - ListPredictionApiKeyRegistrationsRequest, - ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, ListPredictionApiKeyRegistrationsPagedResponse> listPredictionApiKeyRegistrationsSettings() { return listPredictionApiKeyRegistrationsSettings; diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStub.java similarity index 100% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStub.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStub.java diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java similarity index 84% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java index 6db38c15..64f185ab 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java @@ -27,6 +27,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -61,10 +64,10 @@ *

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

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

      The builder of this class is recursive, so contained classes are themselves builders. When @@ -165,6 +168,11 @@ public PredictionServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcPredictionServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonPredictionServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -197,18 +205,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(PredictionServiceStubSettings.class)) @@ -216,11 +231,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(PredictionServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return PredictionServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -311,6 +345,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .predictSettings() diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStub.java similarity index 96% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStub.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStub.java index 85bb44f0..e95cc371 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStub.java @@ -49,7 +49,11 @@ public abstract class UserEventServiceStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public UnaryCallable writeUserEventCallable() { diff --git a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java similarity index 90% rename from google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java index b9d6b11d..13122023 100644 --- a/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java @@ -29,6 +29,9 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; @@ -73,10 +76,10 @@ *

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

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

      The builder of this class is recursive, so contained classes are themselves builders. When @@ -222,6 +225,11 @@ public UserEventServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcUserEventServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonUserEventServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -254,18 +262,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(UserEventServiceStubSettings.class)) @@ -273,11 +288,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(UserEventServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return UserEventServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -411,6 +445,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .writeUserEventSettings() diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientHttpJsonTest.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientHttpJsonTest.java new file mode 100644 index 00000000..cb931eab --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientHttpJsonTest.java @@ -0,0 +1,712 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1; + +import static com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient.ListCatalogItemsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.recommendationengine.v1beta1.stub.HttpJsonCatalogServiceStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.rpc.Status; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CatalogServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static CatalogServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonCatalogServiceStub.getMethodDescriptors(), + CatalogServiceSettings.getDefaultEndpoint()); + CatalogServiceSettings settings = + CatalogServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + CatalogServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CatalogServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createCatalogItemTest() throws Exception { + CatalogItem expectedResponse = + CatalogItem.newBuilder() + .setId("id3355") + .addAllCategoryHierarchies(new ArrayList()) + .setTitle("title110371416") + .setDescription("description-1724546052") + .setItemAttributes(FeatureMap.newBuilder().build()) + .setLanguageCode("languageCode-2092349083") + .addAllTags(new ArrayList()) + .setItemGroupId("itemGroupId-240489113") + .build(); + mockService.addResponse(expectedResponse); + + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]"); + CatalogItem catalogItem = CatalogItem.newBuilder().build(); + + CatalogItem actualResponse = client.createCatalogItem(parent, catalogItem); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCatalogItemExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]"); + CatalogItem catalogItem = CatalogItem.newBuilder().build(); + client.createCatalogItem(parent, catalogItem); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCatalogItemTest2() throws Exception { + CatalogItem expectedResponse = + CatalogItem.newBuilder() + .setId("id3355") + .addAllCategoryHierarchies(new ArrayList()) + .setTitle("title110371416") + .setDescription("description-1724546052") + .setItemAttributes(FeatureMap.newBuilder().build()) + .setLanguageCode("languageCode-2092349083") + .addAllTags(new ArrayList()) + .setItemGroupId("itemGroupId-240489113") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-6267/locations/location-6267/catalogs/catalog-6267"; + CatalogItem catalogItem = CatalogItem.newBuilder().build(); + + CatalogItem actualResponse = client.createCatalogItem(parent, catalogItem); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCatalogItemExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-6267/locations/location-6267/catalogs/catalog-6267"; + CatalogItem catalogItem = CatalogItem.newBuilder().build(); + client.createCatalogItem(parent, catalogItem); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCatalogItemTest() throws Exception { + CatalogItem expectedResponse = + CatalogItem.newBuilder() + .setId("id3355") + .addAllCategoryHierarchies(new ArrayList()) + .setTitle("title110371416") + .setDescription("description-1724546052") + .setItemAttributes(FeatureMap.newBuilder().build()) + .setLanguageCode("languageCode-2092349083") + .addAllTags(new ArrayList()) + .setItemGroupId("itemGroupId-240489113") + .build(); + mockService.addResponse(expectedResponse); + + CatalogItemPathName name = + CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]"); + + CatalogItem actualResponse = client.getCatalogItem(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCatalogItemExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CatalogItemPathName name = + CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]"); + client.getCatalogItem(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCatalogItemTest2() throws Exception { + CatalogItem expectedResponse = + CatalogItem.newBuilder() + .setId("id3355") + .addAllCategoryHierarchies(new ArrayList()) + .setTitle("title110371416") + .setDescription("description-1724546052") + .setItemAttributes(FeatureMap.newBuilder().build()) + .setLanguageCode("languageCode-2092349083") + .addAllTags(new ArrayList()) + .setItemGroupId("itemGroupId-240489113") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-1923/locations/location-1923/catalogs/catalog-1923/catalogItems/catalogItem-1923"; + + CatalogItem actualResponse = client.getCatalogItem(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCatalogItemExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-1923/locations/location-1923/catalogs/catalog-1923/catalogItems/catalogItem-1923"; + client.getCatalogItem(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCatalogItemsTest() throws Exception { + CatalogItem responsesElement = CatalogItem.newBuilder().build(); + ListCatalogItemsResponse expectedResponse = + ListCatalogItemsResponse.newBuilder() + .setNextPageToken("") + .addAllCatalogItems(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]"); + String filter = "filter-1274492040"; + + ListCatalogItemsPagedResponse pagedListResponse = client.listCatalogItems(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCatalogItemsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCatalogItemsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]"); + String filter = "filter-1274492040"; + client.listCatalogItems(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCatalogItemsTest2() throws Exception { + CatalogItem responsesElement = CatalogItem.newBuilder().build(); + ListCatalogItemsResponse expectedResponse = + ListCatalogItemsResponse.newBuilder() + .setNextPageToken("") + .addAllCatalogItems(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-6267/locations/location-6267/catalogs/catalog-6267"; + String filter = "filter-1274492040"; + + ListCatalogItemsPagedResponse pagedListResponse = client.listCatalogItems(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCatalogItemsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCatalogItemsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-6267/locations/location-6267/catalogs/catalog-6267"; + String filter = "filter-1274492040"; + client.listCatalogItems(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCatalogItemTest() throws Exception { + CatalogItem expectedResponse = + CatalogItem.newBuilder() + .setId("id3355") + .addAllCategoryHierarchies(new ArrayList()) + .setTitle("title110371416") + .setDescription("description-1724546052") + .setItemAttributes(FeatureMap.newBuilder().build()) + .setLanguageCode("languageCode-2092349083") + .addAllTags(new ArrayList()) + .setItemGroupId("itemGroupId-240489113") + .build(); + mockService.addResponse(expectedResponse); + + CatalogItemPathName name = + CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]"); + CatalogItem catalogItem = CatalogItem.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CatalogItem actualResponse = client.updateCatalogItem(name, catalogItem, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateCatalogItemExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CatalogItemPathName name = + CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]"); + CatalogItem catalogItem = CatalogItem.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCatalogItem(name, catalogItem, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCatalogItemTest2() throws Exception { + CatalogItem expectedResponse = + CatalogItem.newBuilder() + .setId("id3355") + .addAllCategoryHierarchies(new ArrayList()) + .setTitle("title110371416") + .setDescription("description-1724546052") + .setItemAttributes(FeatureMap.newBuilder().build()) + .setLanguageCode("languageCode-2092349083") + .addAllTags(new ArrayList()) + .setItemGroupId("itemGroupId-240489113") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-1923/locations/location-1923/catalogs/catalog-1923/catalogItems/catalogItem-1923"; + CatalogItem catalogItem = CatalogItem.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CatalogItem actualResponse = client.updateCatalogItem(name, catalogItem, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateCatalogItemExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-1923/locations/location-1923/catalogs/catalog-1923/catalogItems/catalogItem-1923"; + CatalogItem catalogItem = CatalogItem.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCatalogItem(name, catalogItem, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCatalogItemTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + CatalogItemPathName name = + CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]"); + + client.deleteCatalogItem(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCatalogItemExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CatalogItemPathName name = + CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]"); + client.deleteCatalogItem(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCatalogItemTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-1923/locations/location-1923/catalogs/catalog-1923/catalogItems/catalogItem-1923"; + + client.deleteCatalogItem(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCatalogItemExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-1923/locations/location-1923/catalogs/catalog-1923/catalogItems/catalogItem-1923"; + client.deleteCatalogItem(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void importCatalogItemsTest() throws Exception { + ImportCatalogItemsResponse expectedResponse = + ImportCatalogItemsResponse.newBuilder() + .addAllErrorSamples(new ArrayList()) + .setErrorsConfig(ImportErrorsConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importCatalogItemsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]"); + String requestId = "requestId693933066"; + InputConfig inputConfig = InputConfig.newBuilder().build(); + ImportErrorsConfig errorsConfig = ImportErrorsConfig.newBuilder().build(); + + ImportCatalogItemsResponse actualResponse = + client.importCatalogItemsAsync(parent, requestId, inputConfig, errorsConfig).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void importCatalogItemsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]"); + String requestId = "requestId693933066"; + InputConfig inputConfig = InputConfig.newBuilder().build(); + ImportErrorsConfig errorsConfig = ImportErrorsConfig.newBuilder().build(); + client.importCatalogItemsAsync(parent, requestId, inputConfig, errorsConfig).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void importCatalogItemsTest2() throws Exception { + ImportCatalogItemsResponse expectedResponse = + ImportCatalogItemsResponse.newBuilder() + .addAllErrorSamples(new ArrayList()) + .setErrorsConfig(ImportErrorsConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importCatalogItemsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-6267/locations/location-6267/catalogs/catalog-6267"; + String requestId = "requestId693933066"; + InputConfig inputConfig = InputConfig.newBuilder().build(); + ImportErrorsConfig errorsConfig = ImportErrorsConfig.newBuilder().build(); + + ImportCatalogItemsResponse actualResponse = + client.importCatalogItemsAsync(parent, requestId, inputConfig, errorsConfig).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void importCatalogItemsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-6267/locations/location-6267/catalogs/catalog-6267"; + String requestId = "requestId693933066"; + InputConfig inputConfig = InputConfig.newBuilder().build(); + ImportErrorsConfig errorsConfig = ImportErrorsConfig.newBuilder().build(); + client.importCatalogItemsAsync(parent, requestId, inputConfig, errorsConfig).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientTest.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientTest.java similarity index 100% rename from google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientTest.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientTest.java diff --git a/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockCatalogService.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockCatalogService.java similarity index 100% rename from google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockCatalogService.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockCatalogService.java diff --git a/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockCatalogServiceImpl.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockCatalogServiceImpl.java similarity index 100% rename from google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockCatalogServiceImpl.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockCatalogServiceImpl.java diff --git a/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionApiKeyRegistry.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionApiKeyRegistry.java similarity index 100% rename from google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionApiKeyRegistry.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionApiKeyRegistry.java diff --git a/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionApiKeyRegistryImpl.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionApiKeyRegistryImpl.java similarity index 100% rename from google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionApiKeyRegistryImpl.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionApiKeyRegistryImpl.java diff --git a/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionService.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionService.java similarity index 100% rename from google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionService.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionService.java diff --git a/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionServiceImpl.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionServiceImpl.java similarity index 100% rename from google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionServiceImpl.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionServiceImpl.java diff --git a/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockUserEventService.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockUserEventService.java similarity index 100% rename from google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockUserEventService.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockUserEventService.java diff --git a/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockUserEventServiceImpl.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockUserEventServiceImpl.java similarity index 100% rename from google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockUserEventServiceImpl.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockUserEventServiceImpl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientHttpJsonTest.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientHttpJsonTest.java new file mode 100644 index 00000000..96ba9189 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientHttpJsonTest.java @@ -0,0 +1,382 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1; + +import static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient.ListPredictionApiKeyRegistrationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.recommendationengine.v1beta1.stub.HttpJsonPredictionApiKeyRegistryStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class PredictionApiKeyRegistryClientHttpJsonTest { + private static MockHttpService mockService; + private static PredictionApiKeyRegistryClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonPredictionApiKeyRegistryStub.getMethodDescriptors(), + PredictionApiKeyRegistrySettings.getDefaultEndpoint()); + PredictionApiKeyRegistrySettings settings = + PredictionApiKeyRegistrySettings.newHttpJsonBuilder() + .setTransportChannelProvider( + PredictionApiKeyRegistrySettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = PredictionApiKeyRegistryClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createPredictionApiKeyRegistrationTest() throws Exception { + PredictionApiKeyRegistration expectedResponse = + PredictionApiKeyRegistration.newBuilder().setApiKey("apiKey-1411301915").build(); + mockService.addResponse(expectedResponse); + + EventStoreName parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"); + PredictionApiKeyRegistration predictionApiKeyRegistration = + PredictionApiKeyRegistration.newBuilder().build(); + + PredictionApiKeyRegistration actualResponse = + client.createPredictionApiKeyRegistration(parent, predictionApiKeyRegistration); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createPredictionApiKeyRegistrationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EventStoreName parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"); + PredictionApiKeyRegistration predictionApiKeyRegistration = + PredictionApiKeyRegistration.newBuilder().build(); + client.createPredictionApiKeyRegistration(parent, predictionApiKeyRegistration); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createPredictionApiKeyRegistrationTest2() throws Exception { + PredictionApiKeyRegistration expectedResponse = + PredictionApiKeyRegistration.newBuilder().setApiKey("apiKey-1411301915").build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-765/locations/location-765/catalogs/catalog-765/eventStores/eventStore-765"; + PredictionApiKeyRegistration predictionApiKeyRegistration = + PredictionApiKeyRegistration.newBuilder().build(); + + PredictionApiKeyRegistration actualResponse = + client.createPredictionApiKeyRegistration(parent, predictionApiKeyRegistration); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createPredictionApiKeyRegistrationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-765/locations/location-765/catalogs/catalog-765/eventStores/eventStore-765"; + PredictionApiKeyRegistration predictionApiKeyRegistration = + PredictionApiKeyRegistration.newBuilder().build(); + client.createPredictionApiKeyRegistration(parent, predictionApiKeyRegistration); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPredictionApiKeyRegistrationsTest() throws Exception { + PredictionApiKeyRegistration responsesElement = + PredictionApiKeyRegistration.newBuilder().build(); + ListPredictionApiKeyRegistrationsResponse expectedResponse = + ListPredictionApiKeyRegistrationsResponse.newBuilder() + .setNextPageToken("") + .addAllPredictionApiKeyRegistrations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + EventStoreName parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"); + + ListPredictionApiKeyRegistrationsPagedResponse pagedListResponse = + client.listPredictionApiKeyRegistrations(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getPredictionApiKeyRegistrationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listPredictionApiKeyRegistrationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EventStoreName parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"); + client.listPredictionApiKeyRegistrations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPredictionApiKeyRegistrationsTest2() throws Exception { + PredictionApiKeyRegistration responsesElement = + PredictionApiKeyRegistration.newBuilder().build(); + ListPredictionApiKeyRegistrationsResponse expectedResponse = + ListPredictionApiKeyRegistrationsResponse.newBuilder() + .setNextPageToken("") + .addAllPredictionApiKeyRegistrations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-765/locations/location-765/catalogs/catalog-765/eventStores/eventStore-765"; + + ListPredictionApiKeyRegistrationsPagedResponse pagedListResponse = + client.listPredictionApiKeyRegistrations(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getPredictionApiKeyRegistrationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listPredictionApiKeyRegistrationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-765/locations/location-765/catalogs/catalog-765/eventStores/eventStore-765"; + client.listPredictionApiKeyRegistrations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deletePredictionApiKeyRegistrationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + PredictionApiKeyRegistrationName name = + PredictionApiKeyRegistrationName.of( + "[PROJECT]", + "[LOCATION]", + "[CATALOG]", + "[EVENT_STORE]", + "[PREDICTION_API_KEY_REGISTRATION]"); + + client.deletePredictionApiKeyRegistration(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deletePredictionApiKeyRegistrationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PredictionApiKeyRegistrationName name = + PredictionApiKeyRegistrationName.of( + "[PROJECT]", + "[LOCATION]", + "[CATALOG]", + "[EVENT_STORE]", + "[PREDICTION_API_KEY_REGISTRATION]"); + client.deletePredictionApiKeyRegistration(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deletePredictionApiKeyRegistrationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-76/locations/location-76/catalogs/catalog-76/eventStores/eventStore-76/predictionApiKeyRegistrations/predictionApiKeyRegistration-76"; + + client.deletePredictionApiKeyRegistration(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deletePredictionApiKeyRegistrationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-76/locations/location-76/catalogs/catalog-76/eventStores/eventStore-76/predictionApiKeyRegistrations/predictionApiKeyRegistration-76"; + client.deletePredictionApiKeyRegistration(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientTest.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientTest.java similarity index 100% rename from google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientTest.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClientHttpJsonTest.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClientHttpJsonTest.java new file mode 100644 index 00000000..c7ad9be9 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClientHttpJsonTest.java @@ -0,0 +1,189 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1; + +import static com.google.cloud.recommendationengine.v1beta1.PredictionServiceClient.PredictPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.recommendationengine.v1beta1.stub.HttpJsonPredictionServiceStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Value; +import java.io.IOException; +import java.util.Collections; +import java.util.List; +import java.util.Map; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class PredictionServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static PredictionServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonPredictionServiceStub.getMethodDescriptors(), + PredictionServiceSettings.getDefaultEndpoint()); + PredictionServiceSettings settings = + PredictionServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + PredictionServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = PredictionServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void predictTest() throws Exception { + Value responsesElement = Value.newBuilder().setBoolValue(true).build(); + PredictResponse expectedResponse = + PredictResponse.newBuilder() + .setNextPageToken("") + .putAllMetadata(Collections.singletonMap("metadata", responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + PlacementName name = + PlacementName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PLACEMENT]"); + UserEvent userEvent = UserEvent.newBuilder().build(); + + PredictPagedResponse pagedListResponse = client.predict(name, userEvent); + + List> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getMetadataMap().entrySet().iterator().next(), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void predictExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PlacementName name = + PlacementName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PLACEMENT]"); + UserEvent userEvent = UserEvent.newBuilder().build(); + client.predict(name, userEvent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void predictTest2() throws Exception { + Value responsesElement = Value.newBuilder().setBoolValue(true).build(); + PredictResponse expectedResponse = + PredictResponse.newBuilder() + .setNextPageToken("") + .putAllMetadata(Collections.singletonMap("metadata", responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9174/locations/location-9174/catalogs/catalog-9174/eventStores/eventStore-9174/placements/placement-9174"; + UserEvent userEvent = UserEvent.newBuilder().build(); + + PredictPagedResponse pagedListResponse = client.predict(name, userEvent); + + List> resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getMetadataMap().entrySet().iterator().next(), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void predictExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9174/locations/location-9174/catalogs/catalog-9174/eventStores/eventStore-9174/placements/placement-9174"; + UserEvent userEvent = UserEvent.newBuilder().build(); + client.predict(name, userEvent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClientTest.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClientTest.java similarity index 100% rename from google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClientTest.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClientTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClientHttpJsonTest.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClientHttpJsonTest.java new file mode 100644 index 00000000..5fff6e46 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClientHttpJsonTest.java @@ -0,0 +1,639 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1; + +import static com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient.ListUserEventsPagedResponse; + +import com.google.api.HttpBody; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.recommendationengine.v1beta1.stub.HttpJsonUserEventServiceStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class UserEventServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static UserEventServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonUserEventServiceStub.getMethodDescriptors(), + UserEventServiceSettings.getDefaultEndpoint()); + UserEventServiceSettings settings = + UserEventServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + UserEventServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = UserEventServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void writeUserEventTest() throws Exception { + UserEvent expectedResponse = + UserEvent.newBuilder() + .setEventType("eventType31430900") + .setUserInfo(UserInfo.newBuilder().build()) + .setEventDetail(EventDetail.newBuilder().build()) + .setProductEventDetail(ProductEventDetail.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + EventStoreName parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"); + UserEvent userEvent = UserEvent.newBuilder().build(); + + UserEvent actualResponse = client.writeUserEvent(parent, userEvent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void writeUserEventExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EventStoreName parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"); + UserEvent userEvent = UserEvent.newBuilder().build(); + client.writeUserEvent(parent, userEvent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void writeUserEventTest2() throws Exception { + UserEvent expectedResponse = + UserEvent.newBuilder() + .setEventType("eventType31430900") + .setUserInfo(UserInfo.newBuilder().build()) + .setEventDetail(EventDetail.newBuilder().build()) + .setProductEventDetail(ProductEventDetail.newBuilder().build()) + .setEventTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-765/locations/location-765/catalogs/catalog-765/eventStores/eventStore-765"; + UserEvent userEvent = UserEvent.newBuilder().build(); + + UserEvent actualResponse = client.writeUserEvent(parent, userEvent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void writeUserEventExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-765/locations/location-765/catalogs/catalog-765/eventStores/eventStore-765"; + UserEvent userEvent = UserEvent.newBuilder().build(); + client.writeUserEvent(parent, userEvent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void collectUserEventTest() throws Exception { + HttpBody expectedResponse = + HttpBody.newBuilder() + .setContentType("contentType-389131437") + .setData(ByteString.EMPTY) + .addAllExtensions(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + EventStoreName parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"); + String userEvent = "userEvent315571599"; + String uri = "uri116076"; + long ets = 100772; + + HttpBody actualResponse = client.collectUserEvent(parent, userEvent, uri, ets); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void collectUserEventExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EventStoreName parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"); + String userEvent = "userEvent315571599"; + String uri = "uri116076"; + long ets = 100772; + client.collectUserEvent(parent, userEvent, uri, ets); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void collectUserEventTest2() throws Exception { + HttpBody expectedResponse = + HttpBody.newBuilder() + .setContentType("contentType-389131437") + .setData(ByteString.EMPTY) + .addAllExtensions(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-765/locations/location-765/catalogs/catalog-765/eventStores/eventStore-765"; + String userEvent = "userEvent315571599"; + String uri = "uri116076"; + long ets = 100772; + + HttpBody actualResponse = client.collectUserEvent(parent, userEvent, uri, ets); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void collectUserEventExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-765/locations/location-765/catalogs/catalog-765/eventStores/eventStore-765"; + String userEvent = "userEvent315571599"; + String uri = "uri116076"; + long ets = 100772; + client.collectUserEvent(parent, userEvent, uri, ets); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUserEventsTest() throws Exception { + UserEvent responsesElement = UserEvent.newBuilder().build(); + ListUserEventsResponse expectedResponse = + ListUserEventsResponse.newBuilder() + .setNextPageToken("") + .addAllUserEvents(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + EventStoreName parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"); + String filter = "filter-1274492040"; + + ListUserEventsPagedResponse pagedListResponse = client.listUserEvents(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUserEventsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listUserEventsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EventStoreName parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"); + String filter = "filter-1274492040"; + client.listUserEvents(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUserEventsTest2() throws Exception { + UserEvent responsesElement = UserEvent.newBuilder().build(); + ListUserEventsResponse expectedResponse = + ListUserEventsResponse.newBuilder() + .setNextPageToken("") + .addAllUserEvents(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-765/locations/location-765/catalogs/catalog-765/eventStores/eventStore-765"; + String filter = "filter-1274492040"; + + ListUserEventsPagedResponse pagedListResponse = client.listUserEvents(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUserEventsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listUserEventsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-765/locations/location-765/catalogs/catalog-765/eventStores/eventStore-765"; + String filter = "filter-1274492040"; + client.listUserEvents(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void purgeUserEventsTest() throws Exception { + PurgeUserEventsResponse expectedResponse = + PurgeUserEventsResponse.newBuilder() + .setPurgedEventsCount(-310774833) + .addAllUserEventsSample(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeUserEventsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + EventStoreName parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"); + String filter = "filter-1274492040"; + boolean force = true; + + PurgeUserEventsResponse actualResponse = + client.purgeUserEventsAsync(parent, filter, force).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void purgeUserEventsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EventStoreName parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"); + String filter = "filter-1274492040"; + boolean force = true; + client.purgeUserEventsAsync(parent, filter, force).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void purgeUserEventsTest2() throws Exception { + PurgeUserEventsResponse expectedResponse = + PurgeUserEventsResponse.newBuilder() + .setPurgedEventsCount(-310774833) + .addAllUserEventsSample(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeUserEventsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = + "projects/project-765/locations/location-765/catalogs/catalog-765/eventStores/eventStore-765"; + String filter = "filter-1274492040"; + boolean force = true; + + PurgeUserEventsResponse actualResponse = + client.purgeUserEventsAsync(parent, filter, force).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void purgeUserEventsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-765/locations/location-765/catalogs/catalog-765/eventStores/eventStore-765"; + String filter = "filter-1274492040"; + boolean force = true; + client.purgeUserEventsAsync(parent, filter, force).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void importUserEventsTest() throws Exception { + ImportUserEventsResponse expectedResponse = + ImportUserEventsResponse.newBuilder() + .addAllErrorSamples(new ArrayList()) + .setErrorsConfig(ImportErrorsConfig.newBuilder().build()) + .setImportSummary(UserEventImportSummary.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importUserEventsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + EventStoreName parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"); + String requestId = "requestId693933066"; + InputConfig inputConfig = InputConfig.newBuilder().build(); + ImportErrorsConfig errorsConfig = ImportErrorsConfig.newBuilder().build(); + + ImportUserEventsResponse actualResponse = + client.importUserEventsAsync(parent, requestId, inputConfig, errorsConfig).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void importUserEventsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EventStoreName parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"); + String requestId = "requestId693933066"; + InputConfig inputConfig = InputConfig.newBuilder().build(); + ImportErrorsConfig errorsConfig = ImportErrorsConfig.newBuilder().build(); + client.importUserEventsAsync(parent, requestId, inputConfig, errorsConfig).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void importUserEventsTest2() throws Exception { + ImportUserEventsResponse expectedResponse = + ImportUserEventsResponse.newBuilder() + .addAllErrorSamples(new ArrayList()) + .setErrorsConfig(ImportErrorsConfig.newBuilder().build()) + .setImportSummary(UserEventImportSummary.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importUserEventsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = + "projects/project-765/locations/location-765/catalogs/catalog-765/eventStores/eventStore-765"; + String requestId = "requestId693933066"; + InputConfig inputConfig = InputConfig.newBuilder().build(); + ImportErrorsConfig errorsConfig = ImportErrorsConfig.newBuilder().build(); + + ImportUserEventsResponse actualResponse = + client.importUserEventsAsync(parent, requestId, inputConfig, errorsConfig).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void importUserEventsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-765/locations/location-765/catalogs/catalog-765/eventStores/eventStore-765"; + String requestId = "requestId693933066"; + InputConfig inputConfig = InputConfig.newBuilder().build(); + ImportErrorsConfig errorsConfig = ImportErrorsConfig.newBuilder().build(); + client.importUserEventsAsync(parent, requestId, inputConfig, errorsConfig).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClientTest.java b/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClientTest.java similarity index 100% rename from google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClientTest.java rename to owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClientTest.java diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceGrpc.java new file mode 100644 index 00000000..ae0fe8f6 --- /dev/null +++ b/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceGrpc.java @@ -0,0 +1,753 @@ +package com.google.cloud.recommendationengine.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

      + * Service for ingesting catalog information of the customer's website.
      + * 
      + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/recommendationengine/v1beta1/catalog_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CatalogServiceGrpc { + + private CatalogServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.recommendationengine.v1beta1.CatalogService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateCatalogItemMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCatalogItem", + requestType = com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.class, + responseType = com.google.cloud.recommendationengine.v1beta1.CatalogItem.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateCatalogItemMethod() { + io.grpc.MethodDescriptor getCreateCatalogItemMethod; + if ((getCreateCatalogItemMethod = CatalogServiceGrpc.getCreateCatalogItemMethod) == null) { + synchronized (CatalogServiceGrpc.class) { + if ((getCreateCatalogItemMethod = CatalogServiceGrpc.getCreateCatalogItemMethod) == null) { + CatalogServiceGrpc.getCreateCatalogItemMethod = getCreateCatalogItemMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCatalogItem")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance())) + .setSchemaDescriptor(new CatalogServiceMethodDescriptorSupplier("CreateCatalogItem")) + .build(); + } + } + } + return getCreateCatalogItemMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetCatalogItemMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCatalogItem", + requestType = com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.class, + responseType = com.google.cloud.recommendationengine.v1beta1.CatalogItem.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetCatalogItemMethod() { + io.grpc.MethodDescriptor getGetCatalogItemMethod; + if ((getGetCatalogItemMethod = CatalogServiceGrpc.getGetCatalogItemMethod) == null) { + synchronized (CatalogServiceGrpc.class) { + if ((getGetCatalogItemMethod = CatalogServiceGrpc.getGetCatalogItemMethod) == null) { + CatalogServiceGrpc.getGetCatalogItemMethod = getGetCatalogItemMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCatalogItem")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance())) + .setSchemaDescriptor(new CatalogServiceMethodDescriptorSupplier("GetCatalogItem")) + .build(); + } + } + } + return getGetCatalogItemMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCatalogItemsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCatalogItems", + requestType = com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.class, + responseType = com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCatalogItemsMethod() { + io.grpc.MethodDescriptor getListCatalogItemsMethod; + if ((getListCatalogItemsMethod = CatalogServiceGrpc.getListCatalogItemsMethod) == null) { + synchronized (CatalogServiceGrpc.class) { + if ((getListCatalogItemsMethod = CatalogServiceGrpc.getListCatalogItemsMethod) == null) { + CatalogServiceGrpc.getListCatalogItemsMethod = getListCatalogItemsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCatalogItems")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CatalogServiceMethodDescriptorSupplier("ListCatalogItems")) + .build(); + } + } + } + return getListCatalogItemsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateCatalogItemMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCatalogItem", + requestType = com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.class, + responseType = com.google.cloud.recommendationengine.v1beta1.CatalogItem.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateCatalogItemMethod() { + io.grpc.MethodDescriptor getUpdateCatalogItemMethod; + if ((getUpdateCatalogItemMethod = CatalogServiceGrpc.getUpdateCatalogItemMethod) == null) { + synchronized (CatalogServiceGrpc.class) { + if ((getUpdateCatalogItemMethod = CatalogServiceGrpc.getUpdateCatalogItemMethod) == null) { + CatalogServiceGrpc.getUpdateCatalogItemMethod = getUpdateCatalogItemMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCatalogItem")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance())) + .setSchemaDescriptor(new CatalogServiceMethodDescriptorSupplier("UpdateCatalogItem")) + .build(); + } + } + } + return getUpdateCatalogItemMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteCatalogItemMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCatalogItem", + requestType = com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteCatalogItemMethod() { + io.grpc.MethodDescriptor getDeleteCatalogItemMethod; + if ((getDeleteCatalogItemMethod = CatalogServiceGrpc.getDeleteCatalogItemMethod) == null) { + synchronized (CatalogServiceGrpc.class) { + if ((getDeleteCatalogItemMethod = CatalogServiceGrpc.getDeleteCatalogItemMethod) == null) { + CatalogServiceGrpc.getDeleteCatalogItemMethod = getDeleteCatalogItemMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCatalogItem")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new CatalogServiceMethodDescriptorSupplier("DeleteCatalogItem")) + .build(); + } + } + } + return getDeleteCatalogItemMethod; + } + + private static volatile io.grpc.MethodDescriptor getImportCatalogItemsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportCatalogItems", + requestType = com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getImportCatalogItemsMethod() { + io.grpc.MethodDescriptor getImportCatalogItemsMethod; + if ((getImportCatalogItemsMethod = CatalogServiceGrpc.getImportCatalogItemsMethod) == null) { + synchronized (CatalogServiceGrpc.class) { + if ((getImportCatalogItemsMethod = CatalogServiceGrpc.getImportCatalogItemsMethod) == null) { + CatalogServiceGrpc.getImportCatalogItemsMethod = getImportCatalogItemsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportCatalogItems")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CatalogServiceMethodDescriptorSupplier("ImportCatalogItems")) + .build(); + } + } + } + return getImportCatalogItemsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static CatalogServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CatalogServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CatalogServiceStub(channel, callOptions); + } + }; + return CatalogServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CatalogServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CatalogServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CatalogServiceBlockingStub(channel, callOptions); + } + }; + return CatalogServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static CatalogServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CatalogServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CatalogServiceFutureStub(channel, callOptions); + } + }; + return CatalogServiceFutureStub.newStub(factory, channel); + } + + /** + *
      +   * Service for ingesting catalog information of the customer's website.
      +   * 
      + */ + public static abstract class CatalogServiceImplBase implements io.grpc.BindableService { + + /** + *
      +     * Creates a catalog item.
      +     * 
      + */ + public void createCatalogItem(com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCatalogItemMethod(), responseObserver); + } + + /** + *
      +     * Gets a specific catalog item.
      +     * 
      + */ + public void getCatalogItem(com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCatalogItemMethod(), responseObserver); + } + + /** + *
      +     * Gets a list of catalog items.
      +     * 
      + */ + public void listCatalogItems(com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCatalogItemsMethod(), responseObserver); + } + + /** + *
      +     * Updates a catalog item. Partial updating is supported. Non-existing
      +     * items will be created.
      +     * 
      + */ + public void updateCatalogItem(com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCatalogItemMethod(), responseObserver); + } + + /** + *
      +     * Deletes a catalog item.
      +     * 
      + */ + public void deleteCatalogItem(com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCatalogItemMethod(), responseObserver); + } + + /** + *
      +     * Bulk import of multiple catalog items. Request processing may be
      +     * synchronous. No partial updating supported. Non-existing items will be
      +     * created.
      +     * Operation.response is of type ImportResponse. Note that it is
      +     * possible for a subset of the items to be successfully updated.
      +     * 
      + */ + public void importCatalogItems(com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportCatalogItemsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateCatalogItemMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest, + com.google.cloud.recommendationengine.v1beta1.CatalogItem>( + this, METHODID_CREATE_CATALOG_ITEM))) + .addMethod( + getGetCatalogItemMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest, + com.google.cloud.recommendationengine.v1beta1.CatalogItem>( + this, METHODID_GET_CATALOG_ITEM))) + .addMethod( + getListCatalogItemsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest, + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse>( + this, METHODID_LIST_CATALOG_ITEMS))) + .addMethod( + getUpdateCatalogItemMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest, + com.google.cloud.recommendationengine.v1beta1.CatalogItem>( + this, METHODID_UPDATE_CATALOG_ITEM))) + .addMethod( + getDeleteCatalogItemMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_CATALOG_ITEM))) + .addMethod( + getImportCatalogItemsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest, + com.google.longrunning.Operation>( + this, METHODID_IMPORT_CATALOG_ITEMS))) + .build(); + } + } + + /** + *
      +   * Service for ingesting catalog information of the customer's website.
      +   * 
      + */ + public static final class CatalogServiceStub extends io.grpc.stub.AbstractAsyncStub { + private CatalogServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CatalogServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CatalogServiceStub(channel, callOptions); + } + + /** + *
      +     * Creates a catalog item.
      +     * 
      + */ + public void createCatalogItem(com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCatalogItemMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
      +     * Gets a specific catalog item.
      +     * 
      + */ + public void getCatalogItem(com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCatalogItemMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
      +     * Gets a list of catalog items.
      +     * 
      + */ + public void listCatalogItems(com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCatalogItemsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
      +     * Updates a catalog item. Partial updating is supported. Non-existing
      +     * items will be created.
      +     * 
      + */ + public void updateCatalogItem(com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCatalogItemMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
      +     * Deletes a catalog item.
      +     * 
      + */ + public void deleteCatalogItem(com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCatalogItemMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
      +     * Bulk import of multiple catalog items. Request processing may be
      +     * synchronous. No partial updating supported. Non-existing items will be
      +     * created.
      +     * Operation.response is of type ImportResponse. Note that it is
      +     * possible for a subset of the items to be successfully updated.
      +     * 
      + */ + public void importCatalogItems(com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportCatalogItemsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
      +   * Service for ingesting catalog information of the customer's website.
      +   * 
      + */ + public static final class CatalogServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private CatalogServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CatalogServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CatalogServiceBlockingStub(channel, callOptions); + } + + /** + *
      +     * Creates a catalog item.
      +     * 
      + */ + public com.google.cloud.recommendationengine.v1beta1.CatalogItem createCatalogItem(com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCatalogItemMethod(), getCallOptions(), request); + } + + /** + *
      +     * Gets a specific catalog item.
      +     * 
      + */ + public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItem(com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCatalogItemMethod(), getCallOptions(), request); + } + + /** + *
      +     * Gets a list of catalog items.
      +     * 
      + */ + public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse listCatalogItems(com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCatalogItemsMethod(), getCallOptions(), request); + } + + /** + *
      +     * Updates a catalog item. Partial updating is supported. Non-existing
      +     * items will be created.
      +     * 
      + */ + public com.google.cloud.recommendationengine.v1beta1.CatalogItem updateCatalogItem(com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCatalogItemMethod(), getCallOptions(), request); + } + + /** + *
      +     * Deletes a catalog item.
      +     * 
      + */ + public com.google.protobuf.Empty deleteCatalogItem(com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCatalogItemMethod(), getCallOptions(), request); + } + + /** + *
      +     * Bulk import of multiple catalog items. Request processing may be
      +     * synchronous. No partial updating supported. Non-existing items will be
      +     * created.
      +     * Operation.response is of type ImportResponse. Note that it is
      +     * possible for a subset of the items to be successfully updated.
      +     * 
      + */ + public com.google.longrunning.Operation importCatalogItems(com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportCatalogItemsMethod(), getCallOptions(), request); + } + } + + /** + *
      +   * Service for ingesting catalog information of the customer's website.
      +   * 
      + */ + public static final class CatalogServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private CatalogServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CatalogServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CatalogServiceFutureStub(channel, callOptions); + } + + /** + *
      +     * Creates a catalog item.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture createCatalogItem( + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCatalogItemMethod(), getCallOptions()), request); + } + + /** + *
      +     * Gets a specific catalog item.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture getCatalogItem( + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCatalogItemMethod(), getCallOptions()), request); + } + + /** + *
      +     * Gets a list of catalog items.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture listCatalogItems( + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCatalogItemsMethod(), getCallOptions()), request); + } + + /** + *
      +     * Updates a catalog item. Partial updating is supported. Non-existing
      +     * items will be created.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture updateCatalogItem( + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCatalogItemMethod(), getCallOptions()), request); + } + + /** + *
      +     * Deletes a catalog item.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture deleteCatalogItem( + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCatalogItemMethod(), getCallOptions()), request); + } + + /** + *
      +     * Bulk import of multiple catalog items. Request processing may be
      +     * synchronous. No partial updating supported. Non-existing items will be
      +     * created.
      +     * Operation.response is of type ImportResponse. Note that it is
      +     * possible for a subset of the items to be successfully updated.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture importCatalogItems( + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportCatalogItemsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CATALOG_ITEM = 0; + private static final int METHODID_GET_CATALOG_ITEM = 1; + private static final int METHODID_LIST_CATALOG_ITEMS = 2; + private static final int METHODID_UPDATE_CATALOG_ITEM = 3; + private static final int METHODID_DELETE_CATALOG_ITEM = 4; + private static final int METHODID_IMPORT_CATALOG_ITEMS = 5; + + 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 CatalogServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CatalogServiceImplBase 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_CATALOG_ITEM: + serviceImpl.createCatalogItem((com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CATALOG_ITEM: + serviceImpl.getCatalogItem((com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CATALOG_ITEMS: + serviceImpl.listCatalogItems((com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CATALOG_ITEM: + serviceImpl.updateCatalogItem((com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CATALOG_ITEM: + serviceImpl.deleteCatalogItem((com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_CATALOG_ITEMS: + serviceImpl.importCatalogItems((com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) 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 CatalogServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CatalogServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CatalogService"); + } + } + + private static final class CatalogServiceFileDescriptorSupplier + extends CatalogServiceBaseDescriptorSupplier { + CatalogServiceFileDescriptorSupplier() {} + } + + private static final class CatalogServiceMethodDescriptorSupplier + extends CatalogServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CatalogServiceMethodDescriptorSupplier(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 (CatalogServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CatalogServiceFileDescriptorSupplier()) + .addMethod(getCreateCatalogItemMethod()) + .addMethod(getGetCatalogItemMethod()) + .addMethod(getListCatalogItemsMethod()) + .addMethod(getUpdateCatalogItemMethod()) + .addMethod(getDeleteCatalogItemMethod()) + .addMethod(getImportCatalogItemsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryGrpc.java new file mode 100644 index 00000000..f6b5a339 --- /dev/null +++ b/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryGrpc.java @@ -0,0 +1,495 @@ +package com.google.cloud.recommendationengine.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
      + * Service for registering API keys for use with the `predict` method. If you
      + * use an API key to request predictions, you must first register the API key.
      + * Otherwise, your prediction request is rejected. If you use OAuth to
      + * authenticate your `predict` method call, you do not need to register an API
      + * key. You can register up to 20 API keys per project.
      + * 
      + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class PredictionApiKeyRegistryGrpc { + + private PredictionApiKeyRegistryGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreatePredictionApiKeyRegistrationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePredictionApiKeyRegistration", + requestType = com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest.class, + responseType = com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreatePredictionApiKeyRegistrationMethod() { + io.grpc.MethodDescriptor getCreatePredictionApiKeyRegistrationMethod; + if ((getCreatePredictionApiKeyRegistrationMethod = PredictionApiKeyRegistryGrpc.getCreatePredictionApiKeyRegistrationMethod) == null) { + synchronized (PredictionApiKeyRegistryGrpc.class) { + if ((getCreatePredictionApiKeyRegistrationMethod = PredictionApiKeyRegistryGrpc.getCreatePredictionApiKeyRegistrationMethod) == null) { + PredictionApiKeyRegistryGrpc.getCreatePredictionApiKeyRegistrationMethod = getCreatePredictionApiKeyRegistrationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePredictionApiKeyRegistration")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.getDefaultInstance())) + .setSchemaDescriptor(new PredictionApiKeyRegistryMethodDescriptorSupplier("CreatePredictionApiKeyRegistration")) + .build(); + } + } + } + return getCreatePredictionApiKeyRegistrationMethod; + } + + private static volatile io.grpc.MethodDescriptor getListPredictionApiKeyRegistrationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPredictionApiKeyRegistrations", + requestType = com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest.class, + responseType = com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListPredictionApiKeyRegistrationsMethod() { + io.grpc.MethodDescriptor getListPredictionApiKeyRegistrationsMethod; + if ((getListPredictionApiKeyRegistrationsMethod = PredictionApiKeyRegistryGrpc.getListPredictionApiKeyRegistrationsMethod) == null) { + synchronized (PredictionApiKeyRegistryGrpc.class) { + if ((getListPredictionApiKeyRegistrationsMethod = PredictionApiKeyRegistryGrpc.getListPredictionApiKeyRegistrationsMethod) == null) { + PredictionApiKeyRegistryGrpc.getListPredictionApiKeyRegistrationsMethod = getListPredictionApiKeyRegistrationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPredictionApiKeyRegistrations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new PredictionApiKeyRegistryMethodDescriptorSupplier("ListPredictionApiKeyRegistrations")) + .build(); + } + } + } + return getListPredictionApiKeyRegistrationsMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeletePredictionApiKeyRegistrationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePredictionApiKeyRegistration", + requestType = com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeletePredictionApiKeyRegistrationMethod() { + io.grpc.MethodDescriptor getDeletePredictionApiKeyRegistrationMethod; + if ((getDeletePredictionApiKeyRegistrationMethod = PredictionApiKeyRegistryGrpc.getDeletePredictionApiKeyRegistrationMethod) == null) { + synchronized (PredictionApiKeyRegistryGrpc.class) { + if ((getDeletePredictionApiKeyRegistrationMethod = PredictionApiKeyRegistryGrpc.getDeletePredictionApiKeyRegistrationMethod) == null) { + PredictionApiKeyRegistryGrpc.getDeletePredictionApiKeyRegistrationMethod = getDeletePredictionApiKeyRegistrationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePredictionApiKeyRegistration")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new PredictionApiKeyRegistryMethodDescriptorSupplier("DeletePredictionApiKeyRegistration")) + .build(); + } + } + } + return getDeletePredictionApiKeyRegistrationMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static PredictionApiKeyRegistryStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PredictionApiKeyRegistryStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictionApiKeyRegistryStub(channel, callOptions); + } + }; + return PredictionApiKeyRegistryStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static PredictionApiKeyRegistryBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PredictionApiKeyRegistryBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictionApiKeyRegistryBlockingStub(channel, callOptions); + } + }; + return PredictionApiKeyRegistryBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static PredictionApiKeyRegistryFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PredictionApiKeyRegistryFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictionApiKeyRegistryFutureStub(channel, callOptions); + } + }; + return PredictionApiKeyRegistryFutureStub.newStub(factory, channel); + } + + /** + *
      +   * Service for registering API keys for use with the `predict` method. If you
      +   * use an API key to request predictions, you must first register the API key.
      +   * Otherwise, your prediction request is rejected. If you use OAuth to
      +   * authenticate your `predict` method call, you do not need to register an API
      +   * key. You can register up to 20 API keys per project.
      +   * 
      + */ + public static abstract class PredictionApiKeyRegistryImplBase implements io.grpc.BindableService { + + /** + *
      +     * Register an API key for use with predict method.
      +     * 
      + */ + public void createPredictionApiKeyRegistration(com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePredictionApiKeyRegistrationMethod(), responseObserver); + } + + /** + *
      +     * List the registered apiKeys for use with predict method.
      +     * 
      + */ + public void listPredictionApiKeyRegistrations(com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPredictionApiKeyRegistrationsMethod(), responseObserver); + } + + /** + *
      +     * Unregister an apiKey from using for predict method.
      +     * 
      + */ + public void deletePredictionApiKeyRegistration(com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePredictionApiKeyRegistrationMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreatePredictionApiKeyRegistrationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration>( + this, METHODID_CREATE_PREDICTION_API_KEY_REGISTRATION))) + .addMethod( + getListPredictionApiKeyRegistrationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest, + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse>( + this, METHODID_LIST_PREDICTION_API_KEY_REGISTRATIONS))) + .addMethod( + getDeletePredictionApiKeyRegistrationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_PREDICTION_API_KEY_REGISTRATION))) + .build(); + } + } + + /** + *
      +   * Service for registering API keys for use with the `predict` method. If you
      +   * use an API key to request predictions, you must first register the API key.
      +   * Otherwise, your prediction request is rejected. If you use OAuth to
      +   * authenticate your `predict` method call, you do not need to register an API
      +   * key. You can register up to 20 API keys per project.
      +   * 
      + */ + public static final class PredictionApiKeyRegistryStub extends io.grpc.stub.AbstractAsyncStub { + private PredictionApiKeyRegistryStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PredictionApiKeyRegistryStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictionApiKeyRegistryStub(channel, callOptions); + } + + /** + *
      +     * Register an API key for use with predict method.
      +     * 
      + */ + public void createPredictionApiKeyRegistration(com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePredictionApiKeyRegistrationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
      +     * List the registered apiKeys for use with predict method.
      +     * 
      + */ + public void listPredictionApiKeyRegistrations(com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPredictionApiKeyRegistrationsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
      +     * Unregister an apiKey from using for predict method.
      +     * 
      + */ + public void deletePredictionApiKeyRegistration(com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePredictionApiKeyRegistrationMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
      +   * Service for registering API keys for use with the `predict` method. If you
      +   * use an API key to request predictions, you must first register the API key.
      +   * Otherwise, your prediction request is rejected. If you use OAuth to
      +   * authenticate your `predict` method call, you do not need to register an API
      +   * key. You can register up to 20 API keys per project.
      +   * 
      + */ + public static final class PredictionApiKeyRegistryBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private PredictionApiKeyRegistryBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PredictionApiKeyRegistryBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictionApiKeyRegistryBlockingStub(channel, callOptions); + } + + /** + *
      +     * Register an API key for use with predict method.
      +     * 
      + */ + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration createPredictionApiKeyRegistration(com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePredictionApiKeyRegistrationMethod(), getCallOptions(), request); + } + + /** + *
      +     * List the registered apiKeys for use with predict method.
      +     * 
      + */ + public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse listPredictionApiKeyRegistrations(com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPredictionApiKeyRegistrationsMethod(), getCallOptions(), request); + } + + /** + *
      +     * Unregister an apiKey from using for predict method.
      +     * 
      + */ + public com.google.protobuf.Empty deletePredictionApiKeyRegistration(com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePredictionApiKeyRegistrationMethod(), getCallOptions(), request); + } + } + + /** + *
      +   * Service for registering API keys for use with the `predict` method. If you
      +   * use an API key to request predictions, you must first register the API key.
      +   * Otherwise, your prediction request is rejected. If you use OAuth to
      +   * authenticate your `predict` method call, you do not need to register an API
      +   * key. You can register up to 20 API keys per project.
      +   * 
      + */ + public static final class PredictionApiKeyRegistryFutureStub extends io.grpc.stub.AbstractFutureStub { + private PredictionApiKeyRegistryFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PredictionApiKeyRegistryFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictionApiKeyRegistryFutureStub(channel, callOptions); + } + + /** + *
      +     * Register an API key for use with predict method.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture createPredictionApiKeyRegistration( + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePredictionApiKeyRegistrationMethod(), getCallOptions()), request); + } + + /** + *
      +     * List the registered apiKeys for use with predict method.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture listPredictionApiKeyRegistrations( + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPredictionApiKeyRegistrationsMethod(), getCallOptions()), request); + } + + /** + *
      +     * Unregister an apiKey from using for predict method.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture deletePredictionApiKeyRegistration( + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePredictionApiKeyRegistrationMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_PREDICTION_API_KEY_REGISTRATION = 0; + private static final int METHODID_LIST_PREDICTION_API_KEY_REGISTRATIONS = 1; + private static final int METHODID_DELETE_PREDICTION_API_KEY_REGISTRATION = 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 PredictionApiKeyRegistryImplBase serviceImpl; + private final int methodId; + + MethodHandlers(PredictionApiKeyRegistryImplBase 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_PREDICTION_API_KEY_REGISTRATION: + serviceImpl.createPredictionApiKeyRegistration((com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_PREDICTION_API_KEY_REGISTRATIONS: + serviceImpl.listPredictionApiKeyRegistrations((com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_PREDICTION_API_KEY_REGISTRATION: + serviceImpl.deletePredictionApiKeyRegistration((com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) 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 PredictionApiKeyRegistryBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + PredictionApiKeyRegistryBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("PredictionApiKeyRegistry"); + } + } + + private static final class PredictionApiKeyRegistryFileDescriptorSupplier + extends PredictionApiKeyRegistryBaseDescriptorSupplier { + PredictionApiKeyRegistryFileDescriptorSupplier() {} + } + + private static final class PredictionApiKeyRegistryMethodDescriptorSupplier + extends PredictionApiKeyRegistryBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + PredictionApiKeyRegistryMethodDescriptorSupplier(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 (PredictionApiKeyRegistryGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PredictionApiKeyRegistryFileDescriptorSupplier()) + .addMethod(getCreatePredictionApiKeyRegistrationMethod()) + .addMethod(getListPredictionApiKeyRegistrationsMethod()) + .addMethod(getDeletePredictionApiKeyRegistrationMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceGrpc.java similarity index 53% rename from grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceGrpc.java rename to owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceGrpc.java index 2127279f..725afec3 100644 --- a/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceGrpc.java +++ b/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.recommendationengine.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
        * Service for making recommendation prediction.
        * 
      @@ -32,109 +15,92 @@ public final class PredictionServiceGrpc { private PredictionServiceGrpc() {} - public static final String SERVICE_NAME = - "google.cloud.recommendationengine.v1beta1.PredictionService"; + public static final String SERVICE_NAME = "google.cloud.recommendationengine.v1beta1.PredictionService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.PredictRequest, - com.google.cloud.recommendationengine.v1beta1.PredictResponse> - getPredictMethod; + private static volatile io.grpc.MethodDescriptor getPredictMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Predict", requestType = com.google.cloud.recommendationengine.v1beta1.PredictRequest.class, responseType = com.google.cloud.recommendationengine.v1beta1.PredictResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.PredictRequest, - com.google.cloud.recommendationengine.v1beta1.PredictResponse> - getPredictMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.recommendationengine.v1beta1.PredictRequest, - com.google.cloud.recommendationengine.v1beta1.PredictResponse> - getPredictMethod; + public static io.grpc.MethodDescriptor getPredictMethod() { + io.grpc.MethodDescriptor getPredictMethod; if ((getPredictMethod = PredictionServiceGrpc.getPredictMethod) == null) { synchronized (PredictionServiceGrpc.class) { if ((getPredictMethod = PredictionServiceGrpc.getPredictMethod) == null) { - PredictionServiceGrpc.getPredictMethod = - getPredictMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Predict")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.PredictRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.PredictResponse - .getDefaultInstance())) - .setSchemaDescriptor(new PredictionServiceMethodDescriptorSupplier("Predict")) - .build(); + PredictionServiceGrpc.getPredictMethod = getPredictMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Predict")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.PredictRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.PredictResponse.getDefaultInstance())) + .setSchemaDescriptor(new PredictionServiceMethodDescriptorSupplier("Predict")) + .build(); } } } return getPredictMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static PredictionServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PredictionServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PredictionServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PredictionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictionServiceStub(channel, callOptions); + } + }; return PredictionServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static PredictionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static PredictionServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PredictionServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PredictionServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PredictionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictionServiceBlockingStub(channel, callOptions); + } + }; return PredictionServiceBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static PredictionServiceFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static PredictionServiceFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PredictionServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PredictionServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PredictionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictionServiceFutureStub(channel, callOptions); + } + }; return PredictionServiceFutureStub.newStub(factory, channel); } /** - * - * *
          * Service for making recommendation prediction.
          * 
      */ - public abstract static class PredictionServiceImplBase implements io.grpc.BindableService { + public static abstract class PredictionServiceImplBase implements io.grpc.BindableService { /** - * - * *
            * Makes a recommendation prediction. If using API Key based authentication,
            * the API Key must be registered using the
      @@ -142,37 +108,32 @@ public abstract static class PredictionServiceImplBase implements io.grpc.Bindab
            * service. [Learn more](/recommendations-ai/docs/setting-up#register-key).
            * 
      */ - public void predict( - com.google.cloud.recommendationengine.v1beta1.PredictRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void predict(com.google.cloud.recommendationengine.v1beta1.PredictRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPredictMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getPredictMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.PredictRequest, - com.google.cloud.recommendationengine.v1beta1.PredictResponse>( - this, METHODID_PREDICT))) + getPredictMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.PredictRequest, + com.google.cloud.recommendationengine.v1beta1.PredictResponse>( + this, METHODID_PREDICT))) .build(); } } /** - * - * *
          * Service for making recommendation prediction.
          * 
      */ - public static final class PredictionServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private PredictionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PredictionServiceStub extends io.grpc.stub.AbstractAsyncStub { + private PredictionServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -183,8 +144,6 @@ protected PredictionServiceStub build( } /** - * - * *
            * Makes a recommendation prediction. If using API Key based authentication,
            * the API Key must be registered using the
      @@ -192,24 +151,19 @@ protected PredictionServiceStub build(
            * service. [Learn more](/recommendations-ai/docs/setting-up#register-key).
            * 
      */ - public void predict( - com.google.cloud.recommendationengine.v1beta1.PredictRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void predict(com.google.cloud.recommendationengine.v1beta1.PredictRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPredictMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
          * Service for making recommendation prediction.
          * 
      */ - public static final class PredictionServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { + public static final class PredictionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private PredictionServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -222,8 +176,6 @@ protected PredictionServiceBlockingStub build( } /** - * - * *
            * Makes a recommendation prediction. If using API Key based authentication,
            * the API Key must be registered using the
      @@ -231,23 +183,20 @@ protected PredictionServiceBlockingStub build(
            * service. [Learn more](/recommendations-ai/docs/setting-up#register-key).
            * 
      */ - public com.google.cloud.recommendationengine.v1beta1.PredictResponse predict( - com.google.cloud.recommendationengine.v1beta1.PredictRequest request) { + public com.google.cloud.recommendationengine.v1beta1.PredictResponse predict(com.google.cloud.recommendationengine.v1beta1.PredictRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPredictMethod(), getCallOptions(), request); } } /** - * - * *
          * Service for making recommendation prediction.
          * 
      */ - public static final class PredictionServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private PredictionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PredictionServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private PredictionServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -258,8 +207,6 @@ protected PredictionServiceFutureStub build( } /** - * - * *
            * Makes a recommendation prediction. If using API Key based authentication,
            * the API Key must be registered using the
      @@ -267,9 +214,8 @@ protected PredictionServiceFutureStub build(
            * service. [Learn more](/recommendations-ai/docs/setting-up#register-key).
            * 
      */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.recommendationengine.v1beta1.PredictResponse> - predict(com.google.cloud.recommendationengine.v1beta1.PredictRequest request) { + public com.google.common.util.concurrent.ListenableFuture predict( + com.google.cloud.recommendationengine.v1beta1.PredictRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPredictMethod(), getCallOptions()), request); } @@ -277,11 +223,11 @@ protected PredictionServiceFutureStub build( private static final int METHODID_PREDICT = 0; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final PredictionServiceImplBase serviceImpl; private final int methodId; @@ -295,11 +241,8 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_PREDICT: - serviceImpl.predict( - (com.google.cloud.recommendationengine.v1beta1.PredictRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.recommendationengine.v1beta1.PredictResponse>) - responseObserver); + serviceImpl.predict((com.google.cloud.recommendationengine.v1beta1.PredictRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -317,15 +260,13 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class PredictionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class PredictionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { PredictionServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass - .getDescriptor(); + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.getDescriptor(); } @java.lang.Override @@ -362,12 +303,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (PredictionServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PredictionServiceFileDescriptorSupplier()) - .addMethod(getPredictMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PredictionServiceFileDescriptorSupplier()) + .addMethod(getPredictMethod()) + .build(); } } } diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceGrpc.java new file mode 100644 index 00000000..86d45a97 --- /dev/null +++ b/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceGrpc.java @@ -0,0 +1,691 @@ +package com.google.cloud.recommendationengine.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
      + * Service for ingesting end user actions on the customer website.
      + * 
      + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/recommendationengine/v1beta1/user_event_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class UserEventServiceGrpc { + + private UserEventServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.recommendationengine.v1beta1.UserEventService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getWriteUserEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "WriteUserEvent", + requestType = com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.class, + responseType = com.google.cloud.recommendationengine.v1beta1.UserEvent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getWriteUserEventMethod() { + io.grpc.MethodDescriptor getWriteUserEventMethod; + if ((getWriteUserEventMethod = UserEventServiceGrpc.getWriteUserEventMethod) == null) { + synchronized (UserEventServiceGrpc.class) { + if ((getWriteUserEventMethod = UserEventServiceGrpc.getWriteUserEventMethod) == null) { + UserEventServiceGrpc.getWriteUserEventMethod = getWriteUserEventMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WriteUserEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance())) + .setSchemaDescriptor(new UserEventServiceMethodDescriptorSupplier("WriteUserEvent")) + .build(); + } + } + } + return getWriteUserEventMethod; + } + + private static volatile io.grpc.MethodDescriptor getCollectUserEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CollectUserEvent", + requestType = com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.class, + responseType = com.google.api.HttpBody.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCollectUserEventMethod() { + io.grpc.MethodDescriptor getCollectUserEventMethod; + if ((getCollectUserEventMethod = UserEventServiceGrpc.getCollectUserEventMethod) == null) { + synchronized (UserEventServiceGrpc.class) { + if ((getCollectUserEventMethod = UserEventServiceGrpc.getCollectUserEventMethod) == null) { + UserEventServiceGrpc.getCollectUserEventMethod = getCollectUserEventMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CollectUserEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.api.HttpBody.getDefaultInstance())) + .setSchemaDescriptor(new UserEventServiceMethodDescriptorSupplier("CollectUserEvent")) + .build(); + } + } + } + return getCollectUserEventMethod; + } + + private static volatile io.grpc.MethodDescriptor getListUserEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUserEvents", + requestType = com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.class, + responseType = com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListUserEventsMethod() { + io.grpc.MethodDescriptor getListUserEventsMethod; + if ((getListUserEventsMethod = UserEventServiceGrpc.getListUserEventsMethod) == null) { + synchronized (UserEventServiceGrpc.class) { + if ((getListUserEventsMethod = UserEventServiceGrpc.getListUserEventsMethod) == null) { + UserEventServiceGrpc.getListUserEventsMethod = getListUserEventsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUserEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.getDefaultInstance())) + .setSchemaDescriptor(new UserEventServiceMethodDescriptorSupplier("ListUserEvents")) + .build(); + } + } + } + return getListUserEventsMethod; + } + + private static volatile io.grpc.MethodDescriptor getPurgeUserEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PurgeUserEvents", + requestType = com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getPurgeUserEventsMethod() { + io.grpc.MethodDescriptor getPurgeUserEventsMethod; + if ((getPurgeUserEventsMethod = UserEventServiceGrpc.getPurgeUserEventsMethod) == null) { + synchronized (UserEventServiceGrpc.class) { + if ((getPurgeUserEventsMethod = UserEventServiceGrpc.getPurgeUserEventsMethod) == null) { + UserEventServiceGrpc.getPurgeUserEventsMethod = getPurgeUserEventsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeUserEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new UserEventServiceMethodDescriptorSupplier("PurgeUserEvents")) + .build(); + } + } + } + return getPurgeUserEventsMethod; + } + + private static volatile io.grpc.MethodDescriptor getImportUserEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportUserEvents", + requestType = com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getImportUserEventsMethod() { + io.grpc.MethodDescriptor getImportUserEventsMethod; + if ((getImportUserEventsMethod = UserEventServiceGrpc.getImportUserEventsMethod) == null) { + synchronized (UserEventServiceGrpc.class) { + if ((getImportUserEventsMethod = UserEventServiceGrpc.getImportUserEventsMethod) == null) { + UserEventServiceGrpc.getImportUserEventsMethod = getImportUserEventsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportUserEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new UserEventServiceMethodDescriptorSupplier("ImportUserEvents")) + .build(); + } + } + } + return getImportUserEventsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static UserEventServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UserEventServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserEventServiceStub(channel, callOptions); + } + }; + return UserEventServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static UserEventServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UserEventServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserEventServiceBlockingStub(channel, callOptions); + } + }; + return UserEventServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static UserEventServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UserEventServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserEventServiceFutureStub(channel, callOptions); + } + }; + return UserEventServiceFutureStub.newStub(factory, channel); + } + + /** + *
      +   * Service for ingesting end user actions on the customer website.
      +   * 
      + */ + public static abstract class UserEventServiceImplBase implements io.grpc.BindableService { + + /** + *
      +     * Writes a single user event.
      +     * 
      + */ + public void writeUserEvent(com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getWriteUserEventMethod(), responseObserver); + } + + /** + *
      +     * Writes a single user event from the browser. This uses a GET request to
      +     * due to browser restriction of POST-ing to a 3rd party domain.
      +     * This method is used only by the Recommendations AI JavaScript pixel.
      +     * Users should not call this method directly.
      +     * 
      + */ + public void collectUserEvent(com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCollectUserEventMethod(), responseObserver); + } + + /** + *
      +     * Gets a list of user events within a time range, with potential filtering.
      +     * 
      + */ + public void listUserEvents(com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUserEventsMethod(), responseObserver); + } + + /** + *
      +     * Deletes permanently all user events specified by the filter provided.
      +     * Depending on the number of events specified by the filter, this operation
      +     * could take hours or days to complete. To test a filter, use the list
      +     * command first.
      +     * 
      + */ + public void purgeUserEvents(com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPurgeUserEventsMethod(), responseObserver); + } + + /** + *
      +     * Bulk import of User events. Request processing might be
      +     * synchronous. Events that already exist are skipped.
      +     * Use this method for backfilling historical user events.
      +     * Operation.response is of type ImportResponse. Note that it is
      +     * possible for a subset of the items to be successfully inserted.
      +     * Operation.metadata is of type ImportMetadata.
      +     * 
      + */ + public void importUserEvents(com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportUserEventsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getWriteUserEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest, + com.google.cloud.recommendationengine.v1beta1.UserEvent>( + this, METHODID_WRITE_USER_EVENT))) + .addMethod( + getCollectUserEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest, + com.google.api.HttpBody>( + this, METHODID_COLLECT_USER_EVENT))) + .addMethod( + getListUserEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest, + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse>( + this, METHODID_LIST_USER_EVENTS))) + .addMethod( + getPurgeUserEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest, + com.google.longrunning.Operation>( + this, METHODID_PURGE_USER_EVENTS))) + .addMethod( + getImportUserEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest, + com.google.longrunning.Operation>( + this, METHODID_IMPORT_USER_EVENTS))) + .build(); + } + } + + /** + *
      +   * Service for ingesting end user actions on the customer website.
      +   * 
      + */ + public static final class UserEventServiceStub extends io.grpc.stub.AbstractAsyncStub { + private UserEventServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UserEventServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserEventServiceStub(channel, callOptions); + } + + /** + *
      +     * Writes a single user event.
      +     * 
      + */ + public void writeUserEvent(com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getWriteUserEventMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
      +     * Writes a single user event from the browser. This uses a GET request to
      +     * due to browser restriction of POST-ing to a 3rd party domain.
      +     * This method is used only by the Recommendations AI JavaScript pixel.
      +     * Users should not call this method directly.
      +     * 
      + */ + public void collectUserEvent(com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCollectUserEventMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
      +     * Gets a list of user events within a time range, with potential filtering.
      +     * 
      + */ + public void listUserEvents(com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUserEventsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
      +     * Deletes permanently all user events specified by the filter provided.
      +     * Depending on the number of events specified by the filter, this operation
      +     * could take hours or days to complete. To test a filter, use the list
      +     * command first.
      +     * 
      + */ + public void purgeUserEvents(com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPurgeUserEventsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
      +     * Bulk import of User events. Request processing might be
      +     * synchronous. Events that already exist are skipped.
      +     * Use this method for backfilling historical user events.
      +     * Operation.response is of type ImportResponse. Note that it is
      +     * possible for a subset of the items to be successfully inserted.
      +     * Operation.metadata is of type ImportMetadata.
      +     * 
      + */ + public void importUserEvents(com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportUserEventsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
      +   * Service for ingesting end user actions on the customer website.
      +   * 
      + */ + public static final class UserEventServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private UserEventServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UserEventServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserEventServiceBlockingStub(channel, callOptions); + } + + /** + *
      +     * Writes a single user event.
      +     * 
      + */ + public com.google.cloud.recommendationengine.v1beta1.UserEvent writeUserEvent(com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getWriteUserEventMethod(), getCallOptions(), request); + } + + /** + *
      +     * Writes a single user event from the browser. This uses a GET request to
      +     * due to browser restriction of POST-ing to a 3rd party domain.
      +     * This method is used only by the Recommendations AI JavaScript pixel.
      +     * Users should not call this method directly.
      +     * 
      + */ + public com.google.api.HttpBody collectUserEvent(com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCollectUserEventMethod(), getCallOptions(), request); + } + + /** + *
      +     * Gets a list of user events within a time range, with potential filtering.
      +     * 
      + */ + public com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse listUserEvents(com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUserEventsMethod(), getCallOptions(), request); + } + + /** + *
      +     * Deletes permanently all user events specified by the filter provided.
      +     * Depending on the number of events specified by the filter, this operation
      +     * could take hours or days to complete. To test a filter, use the list
      +     * command first.
      +     * 
      + */ + public com.google.longrunning.Operation purgeUserEvents(com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPurgeUserEventsMethod(), getCallOptions(), request); + } + + /** + *
      +     * Bulk import of User events. Request processing might be
      +     * synchronous. Events that already exist are skipped.
      +     * Use this method for backfilling historical user events.
      +     * Operation.response is of type ImportResponse. Note that it is
      +     * possible for a subset of the items to be successfully inserted.
      +     * Operation.metadata is of type ImportMetadata.
      +     * 
      + */ + public com.google.longrunning.Operation importUserEvents(com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportUserEventsMethod(), getCallOptions(), request); + } + } + + /** + *
      +   * Service for ingesting end user actions on the customer website.
      +   * 
      + */ + public static final class UserEventServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private UserEventServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UserEventServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserEventServiceFutureStub(channel, callOptions); + } + + /** + *
      +     * Writes a single user event.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture writeUserEvent( + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getWriteUserEventMethod(), getCallOptions()), request); + } + + /** + *
      +     * Writes a single user event from the browser. This uses a GET request to
      +     * due to browser restriction of POST-ing to a 3rd party domain.
      +     * This method is used only by the Recommendations AI JavaScript pixel.
      +     * Users should not call this method directly.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture collectUserEvent( + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCollectUserEventMethod(), getCallOptions()), request); + } + + /** + *
      +     * Gets a list of user events within a time range, with potential filtering.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture listUserEvents( + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUserEventsMethod(), getCallOptions()), request); + } + + /** + *
      +     * Deletes permanently all user events specified by the filter provided.
      +     * Depending on the number of events specified by the filter, this operation
      +     * could take hours or days to complete. To test a filter, use the list
      +     * command first.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture purgeUserEvents( + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPurgeUserEventsMethod(), getCallOptions()), request); + } + + /** + *
      +     * Bulk import of User events. Request processing might be
      +     * synchronous. Events that already exist are skipped.
      +     * Use this method for backfilling historical user events.
      +     * Operation.response is of type ImportResponse. Note that it is
      +     * possible for a subset of the items to be successfully inserted.
      +     * Operation.metadata is of type ImportMetadata.
      +     * 
      + */ + public com.google.common.util.concurrent.ListenableFuture importUserEvents( + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportUserEventsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_WRITE_USER_EVENT = 0; + private static final int METHODID_COLLECT_USER_EVENT = 1; + private static final int METHODID_LIST_USER_EVENTS = 2; + private static final int METHODID_PURGE_USER_EVENTS = 3; + private static final int METHODID_IMPORT_USER_EVENTS = 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 UserEventServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(UserEventServiceImplBase 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_WRITE_USER_EVENT: + serviceImpl.writeUserEvent((com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_COLLECT_USER_EVENT: + serviceImpl.collectUserEvent((com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_USER_EVENTS: + serviceImpl.listUserEvents((com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PURGE_USER_EVENTS: + serviceImpl.purgeUserEvents((com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_USER_EVENTS: + serviceImpl.importUserEvents((com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) 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 UserEventServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + UserEventServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("UserEventService"); + } + } + + private static final class UserEventServiceFileDescriptorSupplier + extends UserEventServiceBaseDescriptorSupplier { + UserEventServiceFileDescriptorSupplier() {} + } + + private static final class UserEventServiceMethodDescriptorSupplier + extends UserEventServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + UserEventServiceMethodDescriptorSupplier(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 (UserEventServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new UserEventServiceFileDescriptorSupplier()) + .addMethod(getWriteUserEventMethod()) + .addMethod(getCollectUserEventMethod()) + .addMethod(getListUserEventsMethod()) + .addMethod(getPurgeUserEventsMethod()) + .addMethod(getImportUserEventsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Catalog.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Catalog.java new file mode 100644 index 00000000..1948ed96 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Catalog.java @@ -0,0 +1,175 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/catalog.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public final class Catalog { + private Catalog() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_Image_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n7google/cloud/recommendationengine/v1be" + + "ta1/catalog.proto\022)google.cloud.recommen" + + "dationengine.v1beta1\032\037google/api/field_b" + + "ehavior.proto\0326google/cloud/recommendati" + + "onengine/v1beta1/common.proto\032\034google/pr" + + "otobuf/struct.proto\032\034google/api/annotati" + + "ons.proto\"\376\003\n\013CatalogItem\022\017\n\002id\030\001 \001(\tB\003\340" + + "A\002\022k\n\024category_hierarchies\030\002 \003(\0132H.googl" + + "e.cloud.recommendationengine.v1beta1.Cat" + + "alogItem.CategoryHierarchyB\003\340A\002\022\022\n\005title" + + "\030\003 \001(\tB\003\340A\002\022\030\n\013description\030\004 \001(\tB\003\340A\001\022S\n" + + "\017item_attributes\030\005 \001(\01325.google.cloud.re" + + "commendationengine.v1beta1.FeatureMapB\003\340" + + "A\001\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A\001\022\021\n\004tags\030\010" + + " \003(\tB\003\340A\001\022\032\n\ritem_group_id\030\t \001(\tB\003\340A\001\022^\n" + + "\020product_metadata\030\n \001(\0132=.google.cloud.r" + + "ecommendationengine.v1beta1.ProductCatal" + + "ogItemB\003\340A\001H\000\032,\n\021CategoryHierarchy\022\027\n\nca" + + "tegories\030\001 \003(\tB\003\340A\002B\025\n\023recommendation_ty" + + "pe\"\346\006\n\022ProductCatalogItem\022d\n\013exact_price" + + "\030\001 \001(\0132H.google.cloud.recommendationengi" + + "ne.v1beta1.ProductCatalogItem.ExactPrice" + + "B\003\340A\001H\000\022d\n\013price_range\030\002 \001(\0132H.google.cl" + + "oud.recommendationengine.v1beta1.Product" + + "CatalogItem.PriceRangeB\003\340A\001H\000\022\\\n\005costs\030\003" + + " \003(\0132H.google.cloud.recommendationengine" + + ".v1beta1.ProductCatalogItem.CostsEntryB\003" + + "\340A\001\022\032\n\rcurrency_code\030\004 \001(\tB\003\340A\001\022b\n\013stock" + + "_state\030\005 \001(\0162H.google.cloud.recommendati" + + "onengine.v1beta1.ProductCatalogItem.Stoc" + + "kStateB\003\340A\001\022\037\n\022available_quantity\030\006 \001(\003B" + + "\003\340A\001\022\"\n\025canonical_product_uri\030\007 \001(\tB\003\340A\001" + + "\022E\n\006images\030\010 \003(\01320.google.cloud.recommen" + + "dationengine.v1beta1.ImageB\003\340A\001\032E\n\nExact" + + "Price\022\032\n\rdisplay_price\030\001 \001(\002B\003\340A\001\022\033\n\016ori" + + "ginal_price\030\002 \001(\002B\003\340A\001\0320\n\nPriceRange\022\020\n\003" + + "min\030\001 \001(\002B\003\340A\002\022\020\n\003max\030\002 \001(\002B\003\340A\002\032,\n\nCost" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\002:\0028\001\"j" + + "\n\nStockState\022\033\n\027STOCK_STATE_UNSPECIFIED\020" + + "\000\022\014\n\010IN_STOCK\020\000\022\020\n\014OUT_OF_STOCK\020\001\022\014\n\010PRE" + + "ORDER\020\002\022\r\n\tBACKORDER\020\003\032\002\020\001B\007\n\005price\"B\n\005I" + + "mage\022\020\n\003uri\030\001 \001(\tB\003\340A\002\022\023\n\006height\030\002 \001(\005B\003" + + "\340A\001\022\022\n\005width\030\003 \001(\005B\003\340A\001B\237\002\n-com.google.c" + + "loud.recommendationengine.v1beta1P\001Z]goo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/recommendationengine/v1beta1;recommenda" + + "tionengine\242\002\005RECAI\252\002)Google.Cloud.Recomm" + + "endationEngine.V1Beta1\312\002)Google\\Cloud\\Re" + + "commendationEngine\\V1beta1\352\002,Google::Clo" + + "ud::RecommendationEngine::V1beta1b\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.Common.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor, + new java.lang.String[] { "Id", "CategoryHierarchies", "Title", "Description", "ItemAttributes", "LanguageCode", "Tags", "ItemGroupId", "ProductMetadata", "RecommendationType", }); + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor, + new java.lang.String[] { "Categories", }); + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor, + new java.lang.String[] { "ExactPrice", "PriceRange", "Costs", "CurrencyCode", "StockState", "AvailableQuantity", "CanonicalProductUri", "Images", "Price", }); + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor, + new java.lang.String[] { "DisplayPrice", "OriginalPrice", }); + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor, + new java.lang.String[] { "Min", "Max", }); + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_recommendationengine_v1beta1_Image_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor, + new java.lang.String[] { "Uri", "Height", "Width", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.Common.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSource.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSource.java similarity index 62% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSource.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSource.java index cc4d1f35..683c679c 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSource.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSource.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * The inline source for the input config for ImportCatalogItems method.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CatalogInlineSource} */ -public final class CatalogInlineSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CatalogInlineSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.CatalogInlineSource) CatalogInlineSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CatalogInlineSource.newBuilder() to construct. private CatalogInlineSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CatalogInlineSource() { catalogItems_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CatalogInlineSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CatalogInlineSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private CatalogInlineSource( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - catalogItems_ = - new java.util.ArrayList< - com.google.cloud.recommendationengine.v1beta1.CatalogItem>(); - mutable_bitField0_ |= 0x00000001; - } - catalogItems_.add( - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + catalogItems_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + catalogItems_.add( + input.readMessage(com.google.cloud.recommendationengine.v1beta1.CatalogItem.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private CatalogInlineSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { catalogItems_ = java.util.Collections.unmodifiableList(catalogItems_); @@ -108,111 +87,85 @@ private CatalogInlineSource( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.class, - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder.class); + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.class, com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder.class); } public static final int CATALOG_ITEMS_FIELD_NUMBER = 1; private java.util.List catalogItems_; /** - * - * *
          * Optional. A list of catalog items to update/create. Recommended max of 10k
          * items.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getCatalogItemsList() { + public java.util.List getCatalogItemsList() { return catalogItems_; } /** - * - * *
          * Optional. A list of catalog items to update/create. Recommended max of 10k
          * items.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> + public java.util.List getCatalogItemsOrBuilderList() { return catalogItems_; } /** - * - * *
          * Optional. A list of catalog items to update/create. Recommended max of 10k
          * items.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getCatalogItemsCount() { return catalogItems_.size(); } /** - * - * *
          * Optional. A list of catalog items to update/create. Recommended max of 10k
          * items.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItems(int index) { return catalogItems_.get(index); } /** - * - * *
          * Optional. A list of catalog items to update/create. Recommended max of 10k
          * items.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder - getCatalogItemsOrBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemsOrBuilder( + int index) { return catalogItems_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,7 +177,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < catalogItems_.size(); i++) { output.writeMessage(1, catalogItems_.get(i)); } @@ -238,7 +192,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < catalogItems_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, catalogItems_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, catalogItems_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -248,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource other = - (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) obj; + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource other = (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) obj; - if (!getCatalogItemsList().equals(other.getCatalogItemsList())) return false; + if (!getCatalogItemsList() + .equals(other.getCatalogItemsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -278,147 +233,135 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * The inline source for the input config for ImportCatalogItems method.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CatalogInlineSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.CatalogInlineSource) com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.class, - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder.class); + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.class, com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCatalogItemsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -432,14 +375,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource getDefaultInstanceForType() { return com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.getDefaultInstance(); } @@ -454,8 +396,7 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource build() @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource buildPartial() { - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource result = - new com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource(this); + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource result = new com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource(this); int from_bitField0_ = bitField0_; if (catalogItemsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -474,50 +415,46 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource other) { + if (other == com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.getDefaultInstance()) return this; if (catalogItemsBuilder_ == null) { if (!other.catalogItems_.isEmpty()) { if (catalogItems_.isEmpty()) { @@ -536,10 +473,9 @@ public Builder mergeFrom( catalogItemsBuilder_ = null; catalogItems_ = other.catalogItems_; bitField0_ = (bitField0_ & ~0x00000001); - catalogItemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCatalogItemsFieldBuilder() - : null; + catalogItemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCatalogItemsFieldBuilder() : null; } else { catalogItemsBuilder_.addAllMessages(other.catalogItems_); } @@ -564,9 +500,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -575,41 +509,29 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - catalogItems_ = java.util.Collections.emptyList(); - + private java.util.List catalogItems_ = + java.util.Collections.emptyList(); private void ensureCatalogItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - catalogItems_ = - new java.util.ArrayList( - catalogItems_); + catalogItems_ = new java.util.ArrayList(catalogItems_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, - com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> - catalogItemsBuilder_; + com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> catalogItemsBuilder_; /** - * - * *
            * Optional. A list of catalog items to update/create. Recommended max of 10k
            * items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getCatalogItemsList() { + public java.util.List getCatalogItemsList() { if (catalogItemsBuilder_ == null) { return java.util.Collections.unmodifiableList(catalogItems_); } else { @@ -617,16 +539,12 @@ private void ensureCatalogItemsIsMutable() { } } /** - * - * *
            * Optional. A list of catalog items to update/create. Recommended max of 10k
            * items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public int getCatalogItemsCount() { if (catalogItemsBuilder_ == null) { @@ -636,16 +554,12 @@ public int getCatalogItemsCount() { } } /** - * - * *
            * Optional. A list of catalog items to update/create. Recommended max of 10k
            * items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItems(int index) { if (catalogItemsBuilder_ == null) { @@ -655,16 +569,12 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItems } } /** - * - * *
            * Optional. A list of catalog items to update/create. Recommended max of 10k
            * items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCatalogItems( int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { @@ -681,20 +591,15 @@ public Builder setCatalogItems( return this; } /** - * - * *
            * Optional. A list of catalog items to update/create. Recommended max of 10k
            * items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setCatalogItems( - int index, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { + int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { if (catalogItemsBuilder_ == null) { ensureCatalogItemsIsMutable(); catalogItems_.set(index, builderForValue.build()); @@ -705,19 +610,14 @@ public Builder setCatalogItems( return this; } /** - * - * *
            * Optional. A list of catalog items to update/create. Recommended max of 10k
            * items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addCatalogItems( - com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { + public Builder addCatalogItems(com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { if (catalogItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -731,16 +631,12 @@ public Builder addCatalogItems( return this; } /** - * - * *
            * Optional. A list of catalog items to update/create. Recommended max of 10k
            * items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addCatalogItems( int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { @@ -757,16 +653,12 @@ public Builder addCatalogItems( return this; } /** - * - * *
            * Optional. A list of catalog items to update/create. Recommended max of 10k
            * items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addCatalogItems( com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { @@ -780,20 +672,15 @@ public Builder addCatalogItems( return this; } /** - * - * *
            * Optional. A list of catalog items to update/create. Recommended max of 10k
            * items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addCatalogItems( - int index, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { + int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { if (catalogItemsBuilder_ == null) { ensureCatalogItemsIsMutable(); catalogItems_.add(index, builderForValue.build()); @@ -804,23 +691,19 @@ public Builder addCatalogItems( return this; } /** - * - * *
            * Optional. A list of catalog items to update/create. Recommended max of 10k
            * items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllCatalogItems( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (catalogItemsBuilder_ == null) { ensureCatalogItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, catalogItems_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, catalogItems_); onChanged(); } else { catalogItemsBuilder_.addAllMessages(values); @@ -828,16 +711,12 @@ public Builder addAllCatalogItems( return this; } /** - * - * *
            * Optional. A list of catalog items to update/create. Recommended max of 10k
            * items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearCatalogItems() { if (catalogItemsBuilder_ == null) { @@ -850,16 +729,12 @@ public Builder clearCatalogItems() { return this; } /** - * - * *
            * Optional. A list of catalog items to update/create. Recommended max of 10k
            * items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeCatalogItems(int index) { if (catalogItemsBuilder_ == null) { @@ -872,56 +747,42 @@ public Builder removeCatalogItems(int index) { return this; } /** - * - * *
            * Optional. A list of catalog items to update/create. Recommended max of 10k
            * items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder getCatalogItemsBuilder( int index) { return getCatalogItemsFieldBuilder().getBuilder(index); } /** - * - * *
            * Optional. A list of catalog items to update/create. Recommended max of 10k
            * items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder - getCatalogItemsOrBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemsOrBuilder( + int index) { if (catalogItemsBuilder_ == null) { - return catalogItems_.get(index); - } else { + return catalogItems_.get(index); } else { return catalogItemsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
            * Optional. A list of catalog items to update/create. Recommended max of 10k
            * items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> - getCatalogItemsOrBuilderList() { + public java.util.List + getCatalogItemsOrBuilderList() { if (catalogItemsBuilder_ != null) { return catalogItemsBuilder_.getMessageOrBuilderList(); } else { @@ -929,78 +790,59 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder getCata } } /** - * - * *
            * Optional. A list of catalog items to update/create. Recommended max of 10k
            * items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder - addCatalogItemsBuilder() { - return getCatalogItemsFieldBuilder() - .addBuilder( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder addCatalogItemsBuilder() { + return getCatalogItemsFieldBuilder().addBuilder( + com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance()); } /** - * - * *
            * Optional. A list of catalog items to update/create. Recommended max of 10k
            * items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder addCatalogItemsBuilder( int index) { - return getCatalogItemsFieldBuilder() - .addBuilder( - index, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance()); + return getCatalogItemsFieldBuilder().addBuilder( + index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance()); } /** - * - * *
            * Optional. A list of catalog items to update/create. Recommended max of 10k
            * items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getCatalogItemsBuilderList() { + public java.util.List + getCatalogItemsBuilderList() { return getCatalogItemsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, - com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> + com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> getCatalogItemsFieldBuilder() { if (catalogItemsBuilder_ == null) { - catalogItemsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, - com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder>( - catalogItems_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + catalogItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder>( + catalogItems_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); catalogItems_ = null; } return catalogItemsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1010,32 +852,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.CatalogInlineSource) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.CatalogInlineSource) - private static final com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource(); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CatalogInlineSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CatalogInlineSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CatalogInlineSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CatalogInlineSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1047,8 +887,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSourceOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSourceOrBuilder.java new file mode 100644 index 00000000..25269a49 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSourceOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/import.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public interface CatalogInlineSourceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.CatalogInlineSource) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * Optional. A list of catalog items to update/create. Recommended max of 10k
      +   * items.
      +   * 
      + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.List + getCatalogItemsList(); + /** + *
      +   * Optional. A list of catalog items to update/create. Recommended max of 10k
      +   * items.
      +   * 
      + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItems(int index); + /** + *
      +   * Optional. A list of catalog items to update/create. Recommended max of 10k
      +   * items.
      +   * 
      + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getCatalogItemsCount(); + /** + *
      +   * Optional. A list of catalog items to update/create. Recommended max of 10k
      +   * items.
      +   * 
      + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.List + getCatalogItemsOrBuilderList(); + /** + *
      +   * Optional. A list of catalog items to update/create. Recommended max of 10k
      +   * items.
      +   * 
      + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemsOrBuilder( + int index); +} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItem.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItem.java similarity index 71% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItem.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItem.java index 00ad5058..caed2605 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItem.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItem.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * CatalogItem captures all metadata information of items to be recommended.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CatalogItem} */ -public final class CatalogItem extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CatalogItem extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.CatalogItem) CatalogItemOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CatalogItem.newBuilder() to construct. private CatalogItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CatalogItem() { id_ = ""; categoryHierarchies_ = java.util.Collections.emptyList(); @@ -49,15 +31,16 @@ private CatalogItem() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CatalogItem(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CatalogItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -77,114 +60,88 @@ private CatalogItem( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - categoryHierarchies_ = - new java.util.ArrayList< - com.google.cloud.recommendationengine.v1beta1.CatalogItem - .CategoryHierarchy>(); - mutable_bitField0_ |= 0x00000001; - } - categoryHierarchies_.add( - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - .parser(), - extensionRegistry)); - break; + id_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + categoryHierarchies_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + categoryHierarchies_.add( + input.readMessage(com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.parser(), extensionRegistry)); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - title_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + title_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; + description_ = s; + break; + } + case 42: { + com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder subBuilder = null; + if (itemAttributes_ != null) { + subBuilder = itemAttributes_.toBuilder(); } - case 42: - { - com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder subBuilder = null; - if (itemAttributes_ != null) { - subBuilder = itemAttributes_.toBuilder(); - } - itemAttributes_ = - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.FeatureMap.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(itemAttributes_); - itemAttributes_ = subBuilder.buildPartial(); - } - - break; + itemAttributes_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.FeatureMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(itemAttributes_); + itemAttributes_ = subBuilder.buildPartial(); } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - tags_.add(s); - break; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); + tags_.add(s); + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); - itemGroupId_ = s; - break; + itemGroupId_ = s; + break; + } + case 82: { + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder subBuilder = null; + if (recommendationTypeCase_ == 10) { + subBuilder = ((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_).toBuilder(); } - case 82: - { - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder subBuilder = - null; - if (recommendationTypeCase_ == 10) { - subBuilder = - ((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) - recommendationType_) - .toBuilder(); - } - recommendationType_ = - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) - recommendationType_); - recommendationType_ = subBuilder.buildPartial(); - } - recommendationTypeCase_ = 10; - break; + recommendationType_ = + input.readMessage(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_); + recommendationType_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + recommendationTypeCase_ = 10; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -192,7 +149,8 @@ private CatalogItem( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { categoryHierarchies_ = java.util.Collections.unmodifiableList(categoryHierarchies_); @@ -204,30 +162,24 @@ private CatalogItem( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.class, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder.class); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.class, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder.class); } - public interface CategoryHierarchyOrBuilder - extends + public interface CategoryHierarchyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) com.google.protobuf.MessageOrBuilder { /** - * - * *
            * Required. Catalog item categories. Each category should be a UTF-8
            * encoded string with a length limit of 2 KiB.
      @@ -236,13 +188,11 @@ public interface CategoryHierarchyOrBuilder
            * 
      * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the categories. */ - java.util.List getCategoriesList(); + java.util.List + getCategoriesList(); /** - * - * *
            * Required. Catalog item categories. Each category should be a UTF-8
            * encoded string with a length limit of 2 KiB.
      @@ -251,13 +201,10 @@ public interface CategoryHierarchyOrBuilder
            * 
      * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of categories. */ int getCategoriesCount(); /** - * - * *
            * Required. Catalog item categories. Each category should be a UTF-8
            * encoded string with a length limit of 2 KiB.
      @@ -266,14 +213,11 @@ public interface CategoryHierarchyOrBuilder
            * 
      * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The categories at the given index. */ java.lang.String getCategories(int index); /** - * - * *
            * Required. Catalog item categories. Each category should be a UTF-8
            * encoded string with a length limit of 2 KiB.
      @@ -282,46 +226,44 @@ public interface CategoryHierarchyOrBuilder
            * 
      * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the categories at the given index. */ - com.google.protobuf.ByteString getCategoriesBytes(int index); + com.google.protobuf.ByteString + getCategoriesBytes(int index); } /** - * - * *
          * Category represents catalog item category hierarchy.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy} */ - public static final class CategoryHierarchy extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CategoryHierarchy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) CategoryHierarchyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CategoryHierarchy.newBuilder() to construct. private CategoryHierarchy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CategoryHierarchy() { categories_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CategoryHierarchy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CategoryHierarchy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -341,23 +283,22 @@ private CategoryHierarchy( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - categories_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - categories_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + categories_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + categories_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -365,7 +306,8 @@ private CategoryHierarchy( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { categories_ = categories_.getUnmodifiableView(); @@ -374,28 +316,22 @@ private CategoryHierarchy( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.class, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder - .class); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.class, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder.class); } public static final int CATEGORIES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList categories_; /** - * - * *
            * Required. Catalog item categories. Each category should be a UTF-8
            * encoded string with a length limit of 2 KiB.
      @@ -404,15 +340,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            * 
      * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the categories. */ - public com.google.protobuf.ProtocolStringList getCategoriesList() { + public com.google.protobuf.ProtocolStringList + getCategoriesList() { return categories_; } /** - * - * *
            * Required. Catalog item categories. Each category should be a UTF-8
            * encoded string with a length limit of 2 KiB.
      @@ -421,15 +355,12 @@ public com.google.protobuf.ProtocolStringList getCategoriesList() {
            * 
      * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of categories. */ public int getCategoriesCount() { return categories_.size(); } /** - * - * *
            * Required. Catalog item categories. Each category should be a UTF-8
            * encoded string with a length limit of 2 KiB.
      @@ -438,7 +369,6 @@ public int getCategoriesCount() {
            * 
      * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The categories at the given index. */ @@ -446,8 +376,6 @@ public java.lang.String getCategories(int index) { return categories_.get(index); } /** - * - * *
            * Required. Catalog item categories. Each category should be a UTF-8
            * encoded string with a length limit of 2 KiB.
      @@ -456,16 +384,15 @@ public java.lang.String getCategories(int index) {
            * 
      * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the categories at the given index. */ - public com.google.protobuf.ByteString getCategoriesBytes(int index) { + public com.google.protobuf.ByteString + getCategoriesBytes(int index) { return categories_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -477,7 +404,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < categories_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, categories_.getRaw(i)); } @@ -506,16 +434,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy)) { + if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy other = - (com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) obj; + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy other = (com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) obj; - if (!getCategoriesList().equals(other.getCategoriesList())) return false; + if (!getCategoriesList() + .equals(other.getCategoriesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -536,101 +463,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -640,50 +554,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
            * Category represents catalog item category hierarchy.
            * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.class, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder - .class); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.class, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -693,22 +601,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.getDefaultInstance(); } @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy build() { - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy result = - buildPartial(); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -716,10 +621,8 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - buildPartial() { - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy result = - new com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy(this); + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy buildPartial() { + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy result = new com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { categories_ = categories_.getUnmodifiableView(); @@ -734,55 +637,46 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) other); + if (other instanceof com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) { + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy other) { + if (other == com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.getDefaultInstance()) return this; if (!other.categories_.isEmpty()) { if (categories_.isEmpty()) { categories_ = other.categories_; @@ -808,14 +702,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parsedMessage = - null; + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -824,21 +715,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList categories_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList categories_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCategoriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { categories_ = new com.google.protobuf.LazyStringArrayList(categories_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
              * Required. Catalog item categories. Each category should be a UTF-8
              * encoded string with a length limit of 2 KiB.
      @@ -847,15 +733,13 @@ private void ensureCategoriesIsMutable() {
              * 
      * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the categories. */ - public com.google.protobuf.ProtocolStringList getCategoriesList() { + public com.google.protobuf.ProtocolStringList + getCategoriesList() { return categories_.getUnmodifiableView(); } /** - * - * *
              * Required. Catalog item categories. Each category should be a UTF-8
              * encoded string with a length limit of 2 KiB.
      @@ -864,15 +748,12 @@ public com.google.protobuf.ProtocolStringList getCategoriesList() {
              * 
      * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of categories. */ public int getCategoriesCount() { return categories_.size(); } /** - * - * *
              * Required. Catalog item categories. Each category should be a UTF-8
              * encoded string with a length limit of 2 KiB.
      @@ -881,7 +762,6 @@ public int getCategoriesCount() {
              * 
      * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The categories at the given index. */ @@ -889,8 +769,6 @@ public java.lang.String getCategories(int index) { return categories_.get(index); } /** - * - * *
              * Required. Catalog item categories. Each category should be a UTF-8
              * encoded string with a length limit of 2 KiB.
      @@ -899,16 +777,14 @@ public java.lang.String getCategories(int index) {
              * 
      * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the categories at the given index. */ - public com.google.protobuf.ByteString getCategoriesBytes(int index) { + public com.google.protobuf.ByteString + getCategoriesBytes(int index) { return categories_.getByteString(index); } /** - * - * *
              * Required. Catalog item categories. Each category should be a UTF-8
              * encoded string with a length limit of 2 KiB.
      @@ -917,23 +793,21 @@ public com.google.protobuf.ByteString getCategoriesBytes(int index) {
              * 
      * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The categories to set. * @return This builder for chaining. */ - public Builder setCategories(int index, java.lang.String value) { + public Builder setCategories( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCategoriesIsMutable(); + throw new NullPointerException(); + } + ensureCategoriesIsMutable(); categories_.set(index, value); onChanged(); return this; } /** - * - * *
              * Required. Catalog item categories. Each category should be a UTF-8
              * encoded string with a length limit of 2 KiB.
      @@ -942,22 +816,20 @@ public Builder setCategories(int index, java.lang.String value) {
              * 
      * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The categories to add. * @return This builder for chaining. */ - public Builder addCategories(java.lang.String value) { + public Builder addCategories( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCategoriesIsMutable(); + throw new NullPointerException(); + } + ensureCategoriesIsMutable(); categories_.add(value); onChanged(); return this; } /** - * - * *
              * Required. Catalog item categories. Each category should be a UTF-8
              * encoded string with a length limit of 2 KiB.
      @@ -966,19 +838,18 @@ public Builder addCategories(java.lang.String value) {
              * 
      * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The categories to add. * @return This builder for chaining. */ - public Builder addAllCategories(java.lang.Iterable values) { + public Builder addAllCategories( + java.lang.Iterable values) { ensureCategoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, categories_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, categories_); onChanged(); return this; } /** - * - * *
              * Required. Catalog item categories. Each category should be a UTF-8
              * encoded string with a length limit of 2 KiB.
      @@ -987,7 +858,6 @@ public Builder addAllCategories(java.lang.Iterable values) {
              * 
      * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCategories() { @@ -997,8 +867,6 @@ public Builder clearCategories() { return this; } /** - * - * *
              * Required. Catalog item categories. Each category should be a UTF-8
              * encoded string with a length limit of 2 KiB.
      @@ -1007,21 +875,20 @@ public Builder clearCategories() {
              * 
      * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the categories to add. * @return This builder for chaining. */ - public Builder addCategoriesBytes(com.google.protobuf.ByteString value) { + public Builder addCategoriesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureCategoriesIsMutable(); categories_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1034,33 +901,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) - private static final com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy(); + DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy(); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CategoryHierarchy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CategoryHierarchy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CategoryHierarchy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CategoryHierarchy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1072,23 +936,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int recommendationTypeCase_ = 0; private java.lang.Object recommendationType_; - public enum RecommendationTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PRODUCT_METADATA(10), RECOMMENDATIONTYPE_NOT_SET(0); private final int value; - private RecommendationTypeCase(int value) { this.value = value; } @@ -1104,29 +965,25 @@ public static RecommendationTypeCase valueOf(int value) { public static RecommendationTypeCase forNumber(int value) { switch (value) { - case 10: - return PRODUCT_METADATA; - case 0: - return RECOMMENDATIONTYPE_NOT_SET; - default: - return null; + case 10: return PRODUCT_METADATA; + case 0: return RECOMMENDATIONTYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public RecommendationTypeCase getRecommendationTypeCase() { - return RecommendationTypeCase.forNumber(recommendationTypeCase_); + public RecommendationTypeCase + getRecommendationTypeCase() { + return RecommendationTypeCase.forNumber( + recommendationTypeCase_); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** - * - * *
          * Required. Catalog item identifier. UTF-8 encoded string with a length limit
          * of 128 bytes.
      @@ -1136,7 +993,6 @@ public RecommendationTypeCase getRecommendationTypeCase() {
          * 
      * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The id. */ @java.lang.Override @@ -1145,15 +1001,14 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** - * - * *
          * Required. Catalog item identifier. UTF-8 encoded string with a length limit
          * of 128 bytes.
      @@ -1163,15 +1018,16 @@ public java.lang.String getId() {
          * 
      * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -1180,12 +1036,8 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int CATEGORY_HIERARCHIES_FIELD_NUMBER = 2; - private java.util.List< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy> - categoryHierarchies_; + private java.util.List categoryHierarchies_; /** - * - * *
          * Required. Catalog item categories. This field is repeated for supporting
          * one catalog item belonging to several parallel category hierarchies.
      @@ -1199,18 +1051,13 @@ public com.google.protobuf.ByteString getIdBytes() {
          *      ]
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List - getCategoryHierarchiesList() { + public java.util.List getCategoryHierarchiesList() { return categoryHierarchies_; } /** - * - * *
          * Required. Catalog item categories. This field is repeated for supporting
          * one catalog item belonging to several parallel category hierarchies.
      @@ -1224,20 +1071,14 @@ public com.google.protobuf.ByteString getIdBytes() {
          *      ]
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> + public java.util.List getCategoryHierarchiesOrBuilderList() { return categoryHierarchies_; } /** - * - * *
          * Required. Catalog item categories. This field is repeated for supporting
          * one catalog item belonging to several parallel category hierarchies.
      @@ -1251,17 +1092,13 @@ public com.google.protobuf.ByteString getIdBytes() {
          *      ]
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getCategoryHierarchiesCount() { return categoryHierarchies_.size(); } /** - * - * *
          * Required. Catalog item categories. This field is repeated for supporting
          * one catalog item belonging to several parallel category hierarchies.
      @@ -1275,18 +1112,13 @@ public int getCategoryHierarchiesCount() {
          *      ]
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - getCategoryHierarchies(int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getCategoryHierarchies(int index) { return categoryHierarchies_.get(index); } /** - * - * *
          * Required. Catalog item categories. This field is repeated for supporting
          * one catalog item belonging to several parallel category hierarchies.
      @@ -1300,28 +1132,23 @@ public int getCategoryHierarchiesCount() {
          *      ]
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder - getCategoryHierarchiesOrBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder getCategoryHierarchiesOrBuilder( + int index) { return categoryHierarchies_.get(index); } public static final int TITLE_FIELD_NUMBER = 3; private volatile java.lang.Object title_; /** - * - * *
          * Required. Catalog item title. UTF-8 encoded string with a length limit of 1
          * KiB.
          * 
      * * string title = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The title. */ @java.lang.Override @@ -1330,30 +1157,30 @@ public java.lang.String getTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } } /** - * - * *
          * Required. Catalog item title. UTF-8 encoded string with a length limit of 1
          * KiB.
          * 
      * * string title = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for title. */ @java.lang.Override - public com.google.protobuf.ByteString getTitleBytes() { + public com.google.protobuf.ByteString + getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); title_ = b; return b; } else { @@ -1364,15 +1191,12 @@ public com.google.protobuf.ByteString getTitleBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 4; private volatile java.lang.Object description_; /** - * - * *
          * Optional. Catalog item description. UTF-8 encoded string with a length
          * limit of 5 KiB.
          * 
      * * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -1381,30 +1205,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
          * Optional. Catalog item description. UTF-8 encoded string with a length
          * limit of 5 KiB.
          * 
      * * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1415,8 +1239,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int ITEM_ATTRIBUTES_FIELD_NUMBER = 5; private com.google.cloud.recommendationengine.v1beta1.FeatureMap itemAttributes_; /** - * - * *
          * Optional. Highly encouraged. Extra catalog item attributes to be
          * included in the recommendation model. For example, for retail products,
      @@ -1425,10 +1247,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
          * providing the item attributes here.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the itemAttributes field is set. */ @java.lang.Override @@ -1436,8 +1255,6 @@ public boolean hasItemAttributes() { return itemAttributes_ != null; } /** - * - * *
          * Optional. Highly encouraged. Extra catalog item attributes to be
          * included in the recommendation model. For example, for retail products,
      @@ -1446,21 +1263,14 @@ public boolean hasItemAttributes() {
          * providing the item attributes here.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The itemAttributes. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.FeatureMap getItemAttributes() { - return itemAttributes_ == null - ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() - : itemAttributes_; + return itemAttributes_ == null ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() : itemAttributes_; } /** - * - * *
          * Optional. Highly encouraged. Extra catalog item attributes to be
          * included in the recommendation model. For example, for retail products,
      @@ -1469,21 +1279,16 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap getItemAttribute
          * providing the item attributes here.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder - getItemAttributesOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getItemAttributesOrBuilder() { return getItemAttributes(); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; private volatile java.lang.Object languageCode_; /** - * - * *
          * Optional. Language of the title/description/item_attributes. Use language
          * tags defined by BCP 47. https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Our
      @@ -1493,7 +1298,6 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap getItemAttribute
          * 
      * * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ @java.lang.Override @@ -1502,15 +1306,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
          * Optional. Language of the title/description/item_attributes. Use language
          * tags defined by BCP 47. https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Our
      @@ -1520,15 +1323,16 @@ public java.lang.String getLanguageCode() {
          * 
      * * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1539,8 +1343,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int TAGS_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList tags_; /** - * - * *
          * Optional. Filtering tags associated with the catalog item. Each tag should
          * be a UTF-8 encoded string with a length limit of 1 KiB.
      @@ -1549,15 +1351,13 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
          * 
      * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList getTagsList() { + public com.google.protobuf.ProtocolStringList + getTagsList() { return tags_; } /** - * - * *
          * Optional. Filtering tags associated with the catalog item. Each tag should
          * be a UTF-8 encoded string with a length limit of 1 KiB.
      @@ -1566,15 +1366,12 @@ public com.google.protobuf.ProtocolStringList getTagsList() {
          * 
      * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** - * - * *
          * Optional. Filtering tags associated with the catalog item. Each tag should
          * be a UTF-8 encoded string with a length limit of 1 KiB.
      @@ -1583,7 +1380,6 @@ public int getTagsCount() {
          * 
      * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -1591,8 +1387,6 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** - * - * *
          * Optional. Filtering tags associated with the catalog item. Each tag should
          * be a UTF-8 encoded string with a length limit of 1 KiB.
      @@ -1601,19 +1395,17 @@ public java.lang.String getTags(int index) {
          * 
      * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString getTagsBytes(int index) { + public com.google.protobuf.ByteString + getTagsBytes(int index) { return tags_.getByteString(index); } public static final int ITEM_GROUP_ID_FIELD_NUMBER = 9; private volatile java.lang.Object itemGroupId_; /** - * - * *
          * Optional. Variant group identifier for prediction results. UTF-8 encoded
          * string with a length limit of 128 bytes.
      @@ -1622,7 +1414,6 @@ public com.google.protobuf.ByteString getTagsBytes(int index) {
          * 
      * * string item_group_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The itemGroupId. */ @java.lang.Override @@ -1631,15 +1422,14 @@ public java.lang.String getItemGroupId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); itemGroupId_ = s; return s; } } /** - * - * *
          * Optional. Variant group identifier for prediction results. UTF-8 encoded
          * string with a length limit of 128 bytes.
      @@ -1648,15 +1438,16 @@ public java.lang.String getItemGroupId() {
          * 
      * * string item_group_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for itemGroupId. */ @java.lang.Override - public com.google.protobuf.ByteString getItemGroupIdBytes() { + public com.google.protobuf.ByteString + getItemGroupIdBytes() { java.lang.Object ref = itemGroupId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); itemGroupId_ = b; return b; } else { @@ -1666,16 +1457,11 @@ public com.google.protobuf.ByteString getItemGroupIdBytes() { public static final int PRODUCT_METADATA_FIELD_NUMBER = 10; /** - * - * *
          * Optional. Metadata specific to retail products.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the productMetadata field is set. */ @java.lang.Override @@ -1683,47 +1469,36 @@ public boolean hasProductMetadata() { return recommendationTypeCase_ == 10; } /** - * - * *
          * Optional. Metadata specific to retail products.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The productMetadata. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem getProductMetadata() { if (recommendationTypeCase_ == 10) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_; } return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance(); } /** - * - * *
          * Optional. Metadata specific to retail products.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder - getProductMetadataOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder getProductMetadataOrBuilder() { if (recommendationTypeCase_ == 10) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_; } return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1735,7 +1510,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -1761,9 +1537,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 9, itemGroupId_); } if (recommendationTypeCase_ == 10) { - output.writeMessage( - 10, - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_); + output.writeMessage(10, (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_); } unknownFields.writeTo(output); } @@ -1778,8 +1552,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } for (int i = 0; i < categoryHierarchies_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, categoryHierarchies_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, categoryHierarchies_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, title_); @@ -1788,7 +1562,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } if (itemAttributes_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getItemAttributes()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getItemAttributes()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, languageCode_); @@ -1805,11 +1580,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, itemGroupId_); } if (recommendationTypeCase_ == 10) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) - recommendationType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1819,29 +1591,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.CatalogItem)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.CatalogItem other = - (com.google.cloud.recommendationengine.v1beta1.CatalogItem) obj; + com.google.cloud.recommendationengine.v1beta1.CatalogItem other = (com.google.cloud.recommendationengine.v1beta1.CatalogItem) obj; - if (!getId().equals(other.getId())) return false; - if (!getCategoryHierarchiesList().equals(other.getCategoryHierarchiesList())) return false; - if (!getTitle().equals(other.getTitle())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getCategoryHierarchiesList() + .equals(other.getCategoryHierarchiesList())) return false; + if (!getTitle() + .equals(other.getTitle())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasItemAttributes() != other.hasItemAttributes()) return false; if (hasItemAttributes()) { - if (!getItemAttributes().equals(other.getItemAttributes())) return false; - } - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (!getTagsList().equals(other.getTagsList())) return false; - if (!getItemGroupId().equals(other.getItemGroupId())) return false; + if (!getItemAttributes() + .equals(other.getItemAttributes())) return false; + } + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (!getItemGroupId() + .equals(other.getItemGroupId())) return false; if (!getRecommendationTypeCase().equals(other.getRecommendationTypeCase())) return false; switch (recommendationTypeCase_) { case 10: - if (!getProductMetadata().equals(other.getProductMetadata())) return false; + if (!getProductMetadata() + .equals(other.getProductMetadata())) return false; break; case 0: default: @@ -1893,127 +1673,117 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.CatalogItem prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.CatalogItem prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * CatalogItem captures all metadata information of items to be recommended.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CatalogItem} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.CatalogItem) com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.class, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder.class); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.class, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder.class); } // Construct using com.google.cloud.recommendationengine.v1beta1.CatalogItem.newBuilder() @@ -2021,17 +1791,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCategoryHierarchiesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2065,9 +1835,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor; } @java.lang.Override @@ -2086,8 +1856,7 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem build() { @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.CatalogItem buildPartial() { - com.google.cloud.recommendationengine.v1beta1.CatalogItem result = - new com.google.cloud.recommendationengine.v1beta1.CatalogItem(this); + com.google.cloud.recommendationengine.v1beta1.CatalogItem result = new com.google.cloud.recommendationengine.v1beta1.CatalogItem(this); int from_bitField0_ = bitField0_; result.id_ = id_; if (categoryHierarchiesBuilder_ == null) { @@ -2129,39 +1898,38 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.CatalogItem) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.CatalogItem) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.CatalogItem)other); } else { super.mergeFrom(other); return this; @@ -2169,8 +1937,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.CatalogItem other) { - if (other == com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance()) - return this; + if (other == com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); @@ -2193,10 +1960,9 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.CatalogIt categoryHierarchiesBuilder_ = null; categoryHierarchies_ = other.categoryHierarchies_; bitField0_ = (bitField0_ & ~0x00000001); - categoryHierarchiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCategoryHierarchiesFieldBuilder() - : null; + categoryHierarchiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCategoryHierarchiesFieldBuilder() : null; } else { categoryHierarchiesBuilder_.addAllMessages(other.categoryHierarchies_); } @@ -2229,18 +1995,16 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.CatalogIt } if (!other.getItemGroupId().isEmpty()) { itemGroupId_ = other.itemGroupId_; - onChanged(); - } - switch (other.getRecommendationTypeCase()) { - case PRODUCT_METADATA: - { - mergeProductMetadata(other.getProductMetadata()); - break; - } - case RECOMMENDATIONTYPE_NOT_SET: - { - break; - } + onChanged(); + } + switch (other.getRecommendationTypeCase()) { + case PRODUCT_METADATA: { + mergeProductMetadata(other.getProductMetadata()); + break; + } + case RECOMMENDATIONTYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2261,8 +2025,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.CatalogItem) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.CatalogItem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2271,12 +2034,12 @@ public Builder mergeFrom( } return this; } - private int recommendationTypeCase_ = 0; private java.lang.Object recommendationType_; - - public RecommendationTypeCase getRecommendationTypeCase() { - return RecommendationTypeCase.forNumber(recommendationTypeCase_); + public RecommendationTypeCase + getRecommendationTypeCase() { + return RecommendationTypeCase.forNumber( + recommendationTypeCase_); } public Builder clearRecommendationType() { @@ -2290,8 +2053,6 @@ public Builder clearRecommendationType() { private java.lang.Object id_ = ""; /** - * - * *
            * Required. Catalog item identifier. UTF-8 encoded string with a length limit
            * of 128 bytes.
      @@ -2301,13 +2062,13 @@ public Builder clearRecommendationType() {
            * 
      * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -2316,8 +2077,6 @@ public java.lang.String getId() { } } /** - * - * *
            * Required. Catalog item identifier. UTF-8 encoded string with a length limit
            * of 128 bytes.
      @@ -2327,14 +2086,15 @@ public java.lang.String getId() {
            * 
      * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -2342,8 +2102,6 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
            * Required. Catalog item identifier. UTF-8 encoded string with a length limit
            * of 128 bytes.
      @@ -2353,22 +2111,20 @@ public com.google.protobuf.ByteString getIdBytes() {
            * 
      * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { + public Builder setId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** - * - * *
            * Required. Catalog item identifier. UTF-8 encoded string with a length limit
            * of 128 bytes.
      @@ -2378,18 +2134,15 @@ public Builder setId(java.lang.String value) {
            * 
      * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
            * Required. Catalog item identifier. UTF-8 encoded string with a length limit
            * of 128 bytes.
      @@ -2399,44 +2152,34 @@ public Builder clearId() {
            * 
      * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { + public Builder setIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; } - private java.util.List< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy> - categoryHierarchies_ = java.util.Collections.emptyList(); - + private java.util.List categoryHierarchies_ = + java.util.Collections.emptyList(); private void ensureCategoryHierarchiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - categoryHierarchies_ = - new java.util.ArrayList< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy>( - categoryHierarchies_); + categoryHierarchies_ = new java.util.ArrayList(categoryHierarchies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> - categoryHierarchiesBuilder_; + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> categoryHierarchiesBuilder_; /** - * - * *
            * Required. Catalog item categories. This field is repeated for supporting
            * one catalog item belonging to several parallel category hierarchies.
      @@ -2450,13 +2193,9 @@ private void ensureCategoryHierarchiesIsMutable() {
            *      ]
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy> - getCategoryHierarchiesList() { + public java.util.List getCategoryHierarchiesList() { if (categoryHierarchiesBuilder_ == null) { return java.util.Collections.unmodifiableList(categoryHierarchies_); } else { @@ -2464,8 +2203,6 @@ private void ensureCategoryHierarchiesIsMutable() { } } /** - * - * *
            * Required. Catalog item categories. This field is repeated for supporting
            * one catalog item belonging to several parallel category hierarchies.
      @@ -2479,9 +2216,7 @@ private void ensureCategoryHierarchiesIsMutable() {
            *      ]
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ public int getCategoryHierarchiesCount() { if (categoryHierarchiesBuilder_ == null) { @@ -2491,8 +2226,6 @@ public int getCategoryHierarchiesCount() { } } /** - * - * *
            * Required. Catalog item categories. This field is repeated for supporting
            * one catalog item belonging to several parallel category hierarchies.
      @@ -2506,12 +2239,9 @@ public int getCategoryHierarchiesCount() {
            *      ]
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - getCategoryHierarchies(int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getCategoryHierarchies(int index) { if (categoryHierarchiesBuilder_ == null) { return categoryHierarchies_.get(index); } else { @@ -2519,8 +2249,6 @@ public int getCategoryHierarchiesCount() { } } /** - * - * *
            * Required. Catalog item categories. This field is repeated for supporting
            * one catalog item belonging to several parallel category hierarchies.
      @@ -2534,13 +2262,10 @@ public int getCategoryHierarchiesCount() {
            *      ]
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCategoryHierarchies( - int index, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { + int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { if (categoryHierarchiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2554,8 +2279,6 @@ public Builder setCategoryHierarchies( return this; } /** - * - * *
            * Required. Catalog item categories. This field is repeated for supporting
            * one catalog item belonging to several parallel category hierarchies.
      @@ -2569,14 +2292,10 @@ public Builder setCategoryHierarchies(
            *      ]
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCategoryHierarchies( - int index, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder - builderForValue) { + int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder builderForValue) { if (categoryHierarchiesBuilder_ == null) { ensureCategoryHierarchiesIsMutable(); categoryHierarchies_.set(index, builderForValue.build()); @@ -2587,8 +2306,6 @@ public Builder setCategoryHierarchies( return this; } /** - * - * *
            * Required. Catalog item categories. This field is repeated for supporting
            * one catalog item belonging to several parallel category hierarchies.
      @@ -2602,12 +2319,9 @@ public Builder setCategoryHierarchies(
            *      ]
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addCategoryHierarchies( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { + public Builder addCategoryHierarchies(com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { if (categoryHierarchiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2621,8 +2335,6 @@ public Builder addCategoryHierarchies( return this; } /** - * - * *
            * Required. Catalog item categories. This field is repeated for supporting
            * one catalog item belonging to several parallel category hierarchies.
      @@ -2636,13 +2348,10 @@ public Builder addCategoryHierarchies(
            *      ]
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addCategoryHierarchies( - int index, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { + int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { if (categoryHierarchiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2656,8 +2365,6 @@ public Builder addCategoryHierarchies( return this; } /** - * - * *
            * Required. Catalog item categories. This field is repeated for supporting
            * one catalog item belonging to several parallel category hierarchies.
      @@ -2671,13 +2378,10 @@ public Builder addCategoryHierarchies(
            *      ]
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addCategoryHierarchies( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder - builderForValue) { + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder builderForValue) { if (categoryHierarchiesBuilder_ == null) { ensureCategoryHierarchiesIsMutable(); categoryHierarchies_.add(builderForValue.build()); @@ -2688,8 +2392,6 @@ public Builder addCategoryHierarchies( return this; } /** - * - * *
            * Required. Catalog item categories. This field is repeated for supporting
            * one catalog item belonging to several parallel category hierarchies.
      @@ -2703,14 +2405,10 @@ public Builder addCategoryHierarchies(
            *      ]
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addCategoryHierarchies( - int index, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder - builderForValue) { + int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder builderForValue) { if (categoryHierarchiesBuilder_ == null) { ensureCategoryHierarchiesIsMutable(); categoryHierarchies_.add(index, builderForValue.build()); @@ -2721,8 +2419,6 @@ public Builder addCategoryHierarchies( return this; } /** - * - * *
            * Required. Catalog item categories. This field is repeated for supporting
            * one catalog item belonging to several parallel category hierarchies.
      @@ -2736,18 +2432,14 @@ public Builder addCategoryHierarchies(
            *      ]
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllCategoryHierarchies( - java.lang.Iterable< - ? extends - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy> - values) { + java.lang.Iterable values) { if (categoryHierarchiesBuilder_ == null) { ensureCategoryHierarchiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, categoryHierarchies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, categoryHierarchies_); onChanged(); } else { categoryHierarchiesBuilder_.addAllMessages(values); @@ -2755,8 +2447,6 @@ public Builder addAllCategoryHierarchies( return this; } /** - * - * *
            * Required. Catalog item categories. This field is repeated for supporting
            * one catalog item belonging to several parallel category hierarchies.
      @@ -2770,9 +2460,7 @@ public Builder addAllCategoryHierarchies(
            *      ]
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCategoryHierarchies() { if (categoryHierarchiesBuilder_ == null) { @@ -2785,8 +2473,6 @@ public Builder clearCategoryHierarchies() { return this; } /** - * - * *
            * Required. Catalog item categories. This field is repeated for supporting
            * one catalog item belonging to several parallel category hierarchies.
      @@ -2800,9 +2486,7 @@ public Builder clearCategoryHierarchies() {
            *      ]
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeCategoryHierarchies(int index) { if (categoryHierarchiesBuilder_ == null) { @@ -2815,8 +2499,6 @@ public Builder removeCategoryHierarchies(int index) { return this; } /** - * - * *
            * Required. Catalog item categories. This field is repeated for supporting
            * one catalog item belonging to several parallel category hierarchies.
      @@ -2830,17 +2512,13 @@ public Builder removeCategoryHierarchies(int index) {
            *      ]
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder - getCategoryHierarchiesBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder getCategoryHierarchiesBuilder( + int index) { return getCategoryHierarchiesFieldBuilder().getBuilder(index); } /** - * - * *
            * Required. Catalog item categories. This field is repeated for supporting
            * one catalog item belonging to several parallel category hierarchies.
      @@ -2854,21 +2532,16 @@ public Builder removeCategoryHierarchies(int index) {
            *      ]
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder - getCategoryHierarchiesOrBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder getCategoryHierarchiesOrBuilder( + int index) { if (categoryHierarchiesBuilder_ == null) { - return categoryHierarchies_.get(index); - } else { + return categoryHierarchies_.get(index); } else { return categoryHierarchiesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
            * Required. Catalog item categories. This field is repeated for supporting
            * one catalog item belonging to several parallel category hierarchies.
      @@ -2882,15 +2555,10 @@ public Builder removeCategoryHierarchies(int index) {
            *      ]
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - ? extends - com.google.cloud.recommendationengine.v1beta1.CatalogItem - .CategoryHierarchyOrBuilder> - getCategoryHierarchiesOrBuilderList() { + public java.util.List + getCategoryHierarchiesOrBuilderList() { if (categoryHierarchiesBuilder_ != null) { return categoryHierarchiesBuilder_.getMessageOrBuilderList(); } else { @@ -2898,8 +2566,6 @@ public Builder removeCategoryHierarchies(int index) { } } /** - * - * *
            * Required. Catalog item categories. This field is repeated for supporting
            * one catalog item belonging to several parallel category hierarchies.
      @@ -2913,20 +2579,13 @@ public Builder removeCategoryHierarchies(int index) {
            *      ]
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder - addCategoryHierarchiesBuilder() { - return getCategoryHierarchiesFieldBuilder() - .addBuilder( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - .getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder addCategoryHierarchiesBuilder() { + return getCategoryHierarchiesFieldBuilder().addBuilder( + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.getDefaultInstance()); } /** - * - * *
            * Required. Catalog item categories. This field is repeated for supporting
            * one catalog item belonging to several parallel category hierarchies.
      @@ -2940,21 +2599,14 @@ public Builder removeCategoryHierarchies(int index) {
            *      ]
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder - addCategoryHierarchiesBuilder(int index) { - return getCategoryHierarchiesFieldBuilder() - .addBuilder( - index, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - .getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder addCategoryHierarchiesBuilder( + int index) { + return getCategoryHierarchiesFieldBuilder().addBuilder( + index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.getDefaultInstance()); } /** - * - * *
            * Required. Catalog item categories. This field is repeated for supporting
            * one catalog item belonging to several parallel category hierarchies.
      @@ -2968,28 +2620,18 @@ public Builder removeCategoryHierarchies(int index) {
            *      ]
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder> - getCategoryHierarchiesBuilderList() { + public java.util.List + getCategoryHierarchiesBuilderList() { return getCategoryHierarchiesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> getCategoryHierarchiesFieldBuilder() { if (categoryHierarchiesBuilder_ == null) { - categoryHierarchiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, - com.google.cloud.recommendationengine.v1beta1.CatalogItem - .CategoryHierarchyOrBuilder>( + categoryHierarchiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder>( categoryHierarchies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3001,21 +2643,19 @@ public Builder removeCategoryHierarchies(int index) { private java.lang.Object title_ = ""; /** - * - * *
            * Required. Catalog item title. UTF-8 encoded string with a length limit of 1
            * KiB.
            * 
      * * string title = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The title. */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; @@ -3024,22 +2664,21 @@ public java.lang.String getTitle() { } } /** - * - * *
            * Required. Catalog item title. UTF-8 encoded string with a length limit of 1
            * KiB.
            * 
      * * string title = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for title. */ - public com.google.protobuf.ByteString getTitleBytes() { + public com.google.protobuf.ByteString + getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); title_ = b; return b; } else { @@ -3047,64 +2686,57 @@ public com.google.protobuf.ByteString getTitleBytes() { } } /** - * - * *
            * Required. Catalog item title. UTF-8 encoded string with a length limit of 1
            * KiB.
            * 
      * * string title = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The title to set. * @return This builder for chaining. */ - public Builder setTitle(java.lang.String value) { + public Builder setTitle( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + title_ = value; onChanged(); return this; } /** - * - * *
            * Required. Catalog item title. UTF-8 encoded string with a length limit of 1
            * KiB.
            * 
      * * string title = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTitle() { - + title_ = getDefaultInstance().getTitle(); onChanged(); return this; } /** - * - * *
            * Required. Catalog item title. UTF-8 encoded string with a length limit of 1
            * KiB.
            * 
      * * string title = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for title to set. * @return This builder for chaining. */ - public Builder setTitleBytes(com.google.protobuf.ByteString value) { + public Builder setTitleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; onChanged(); return this; @@ -3112,21 +2744,19 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
            * Optional. Catalog item description. UTF-8 encoded string with a length
            * limit of 5 KiB.
            * 
      * * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -3135,22 +2765,21 @@ public java.lang.String getDescription() { } } /** - * - * *
            * Optional. Catalog item description. UTF-8 encoded string with a length
            * limit of 5 KiB.
            * 
      * * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -3158,64 +2787,57 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
            * Optional. Catalog item description. UTF-8 encoded string with a length
            * limit of 5 KiB.
            * 
      * * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Catalog item description. UTF-8 encoded string with a length
            * limit of 5 KiB.
            * 
      * * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
            * Optional. Catalog item description. UTF-8 encoded string with a length
            * limit of 5 KiB.
            * 
      * * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -3223,13 +2845,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private com.google.cloud.recommendationengine.v1beta1.FeatureMap itemAttributes_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.FeatureMap, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, - com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> - itemAttributesBuilder_; + com.google.cloud.recommendationengine.v1beta1.FeatureMap, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> itemAttributesBuilder_; /** - * - * *
            * Optional. Highly encouraged. Extra catalog item attributes to be
            * included in the recommendation model. For example, for retail products,
      @@ -3238,18 +2855,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
            * providing the item attributes here.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the itemAttributes field is set. */ public boolean hasItemAttributes() { return itemAttributesBuilder_ != null || itemAttributes_ != null; } /** - * - * *
            * Optional. Highly encouraged. Extra catalog item attributes to be
            * included in the recommendation model. For example, for retail products,
      @@ -3258,24 +2870,17 @@ public boolean hasItemAttributes() {
            * providing the item attributes here.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The itemAttributes. */ public com.google.cloud.recommendationengine.v1beta1.FeatureMap getItemAttributes() { if (itemAttributesBuilder_ == null) { - return itemAttributes_ == null - ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() - : itemAttributes_; + return itemAttributes_ == null ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() : itemAttributes_; } else { return itemAttributesBuilder_.getMessage(); } } /** - * - * *
            * Optional. Highly encouraged. Extra catalog item attributes to be
            * included in the recommendation model. For example, for retail products,
      @@ -3284,12 +2889,9 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap getItemAttribute
            * providing the item attributes here.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setItemAttributes( - com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { + public Builder setItemAttributes(com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { if (itemAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3303,8 +2905,6 @@ public Builder setItemAttributes( return this; } /** - * - * *
            * Optional. Highly encouraged. Extra catalog item attributes to be
            * included in the recommendation model. For example, for retail products,
      @@ -3313,9 +2913,7 @@ public Builder setItemAttributes(
            * providing the item attributes here.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setItemAttributes( com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder builderForValue) { @@ -3329,8 +2927,6 @@ public Builder setItemAttributes( return this; } /** - * - * *
            * Optional. Highly encouraged. Extra catalog item attributes to be
            * included in the recommendation model. For example, for retail products,
      @@ -3339,18 +2935,13 @@ public Builder setItemAttributes(
            * providing the item attributes here.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeItemAttributes( - com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { + public Builder mergeItemAttributes(com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { if (itemAttributesBuilder_ == null) { if (itemAttributes_ != null) { itemAttributes_ = - com.google.cloud.recommendationengine.v1beta1.FeatureMap.newBuilder(itemAttributes_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.recommendationengine.v1beta1.FeatureMap.newBuilder(itemAttributes_).mergeFrom(value).buildPartial(); } else { itemAttributes_ = value; } @@ -3362,8 +2953,6 @@ public Builder mergeItemAttributes( return this; } /** - * - * *
            * Optional. Highly encouraged. Extra catalog item attributes to be
            * included in the recommendation model. For example, for retail products,
      @@ -3372,9 +2961,7 @@ public Builder mergeItemAttributes(
            * providing the item attributes here.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearItemAttributes() { if (itemAttributesBuilder_ == null) { @@ -3388,8 +2975,6 @@ public Builder clearItemAttributes() { return this; } /** - * - * *
            * Optional. Highly encouraged. Extra catalog item attributes to be
            * included in the recommendation model. For example, for retail products,
      @@ -3398,19 +2983,14 @@ public Builder clearItemAttributes() {
            * providing the item attributes here.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder - getItemAttributesBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder getItemAttributesBuilder() { + onChanged(); return getItemAttributesFieldBuilder().getBuilder(); } /** - * - * *
            * Optional. Highly encouraged. Extra catalog item attributes to be
            * included in the recommendation model. For example, for retail products,
      @@ -3419,23 +2999,17 @@ public Builder clearItemAttributes() {
            * providing the item attributes here.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder - getItemAttributesOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getItemAttributesOrBuilder() { if (itemAttributesBuilder_ != null) { return itemAttributesBuilder_.getMessageOrBuilder(); } else { - return itemAttributes_ == null - ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() - : itemAttributes_; + return itemAttributes_ == null ? + com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() : itemAttributes_; } } /** - * - * *
            * Optional. Highly encouraged. Extra catalog item attributes to be
            * included in the recommendation model. For example, for retail products,
      @@ -3444,22 +3018,17 @@ public Builder clearItemAttributes() {
            * providing the item attributes here.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.FeatureMap, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, - com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> + com.google.cloud.recommendationengine.v1beta1.FeatureMap, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> getItemAttributesFieldBuilder() { if (itemAttributesBuilder_ == null) { - itemAttributesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.FeatureMap, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, - com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder>( - getItemAttributes(), getParentForChildren(), isClean()); + itemAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.FeatureMap, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder>( + getItemAttributes(), + getParentForChildren(), + isClean()); itemAttributes_ = null; } return itemAttributesBuilder_; @@ -3467,8 +3036,6 @@ public Builder clearItemAttributes() { private java.lang.Object languageCode_ = ""; /** - * - * *
            * Optional. Language of the title/description/item_attributes. Use language
            * tags defined by BCP 47. https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Our
      @@ -3478,13 +3045,13 @@ public Builder clearItemAttributes() {
            * 
      * * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -3493,8 +3060,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
            * Optional. Language of the title/description/item_attributes. Use language
            * tags defined by BCP 47. https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Our
      @@ -3504,14 +3069,15 @@ public java.lang.String getLanguageCode() {
            * 
      * * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -3519,8 +3085,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
            * Optional. Language of the title/description/item_attributes. Use language
            * tags defined by BCP 47. https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Our
      @@ -3530,22 +3094,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
            * 
      * * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Language of the title/description/item_attributes. Use language
            * tags defined by BCP 47. https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Our
      @@ -3555,18 +3117,15 @@ public Builder setLanguageCode(java.lang.String value) {
            * 
      * * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
            * Optional. Language of the title/description/item_attributes. Use language
            * tags defined by BCP 47. https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Our
      @@ -3576,33 +3135,29 @@ public Builder clearLanguageCode() {
            * 
      * * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList tags_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
            * Optional. Filtering tags associated with the catalog item. Each tag should
            * be a UTF-8 encoded string with a length limit of 1 KiB.
      @@ -3611,15 +3166,13 @@ private void ensureTagsIsMutable() {
            * 
      * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList getTagsList() { + public com.google.protobuf.ProtocolStringList + getTagsList() { return tags_.getUnmodifiableView(); } /** - * - * *
            * Optional. Filtering tags associated with the catalog item. Each tag should
            * be a UTF-8 encoded string with a length limit of 1 KiB.
      @@ -3628,15 +3181,12 @@ public com.google.protobuf.ProtocolStringList getTagsList() {
            * 
      * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** - * - * *
            * Optional. Filtering tags associated with the catalog item. Each tag should
            * be a UTF-8 encoded string with a length limit of 1 KiB.
      @@ -3645,7 +3195,6 @@ public int getTagsCount() {
            * 
      * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -3653,8 +3202,6 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** - * - * *
            * Optional. Filtering tags associated with the catalog item. Each tag should
            * be a UTF-8 encoded string with a length limit of 1 KiB.
      @@ -3663,16 +3210,14 @@ public java.lang.String getTags(int index) {
            * 
      * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString getTagsBytes(int index) { + public com.google.protobuf.ByteString + getTagsBytes(int index) { return tags_.getByteString(index); } /** - * - * *
            * Optional. Filtering tags associated with the catalog item. Each tag should
            * be a UTF-8 encoded string with a length limit of 1 KiB.
      @@ -3681,23 +3226,21 @@ public com.google.protobuf.ByteString getTagsBytes(int index) {
            * 
      * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ - public Builder setTags(int index, java.lang.String value) { + public Builder setTags( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); + throw new NullPointerException(); + } + ensureTagsIsMutable(); tags_.set(index, value); onChanged(); return this; } /** - * - * *
            * Optional. Filtering tags associated with the catalog item. Each tag should
            * be a UTF-8 encoded string with a length limit of 1 KiB.
      @@ -3706,22 +3249,20 @@ public Builder setTags(int index, java.lang.String value) {
            * 
      * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The tags to add. * @return This builder for chaining. */ - public Builder addTags(java.lang.String value) { + public Builder addTags( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); + throw new NullPointerException(); + } + ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } /** - * - * *
            * Optional. Filtering tags associated with the catalog item. Each tag should
            * be a UTF-8 encoded string with a length limit of 1 KiB.
      @@ -3730,19 +3271,18 @@ public Builder addTags(java.lang.String value) {
            * 
      * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The tags to add. * @return This builder for chaining. */ - public Builder addAllTags(java.lang.Iterable values) { + public Builder addAllTags( + java.lang.Iterable values) { ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); onChanged(); return this; } /** - * - * *
            * Optional. Filtering tags associated with the catalog item. Each tag should
            * be a UTF-8 encoded string with a length limit of 1 KiB.
      @@ -3751,7 +3291,6 @@ public Builder addAllTags(java.lang.Iterable values) {
            * 
      * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearTags() { @@ -3761,8 +3300,6 @@ public Builder clearTags() { return this; } /** - * - * *
            * Optional. Filtering tags associated with the catalog item. Each tag should
            * be a UTF-8 encoded string with a length limit of 1 KiB.
      @@ -3771,15 +3308,15 @@ public Builder clearTags() {
            * 
      * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the tags to add. * @return This builder for chaining. */ - public Builder addTagsBytes(com.google.protobuf.ByteString value) { + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); onChanged(); @@ -3788,8 +3325,6 @@ public Builder addTagsBytes(com.google.protobuf.ByteString value) { private java.lang.Object itemGroupId_ = ""; /** - * - * *
            * Optional. Variant group identifier for prediction results. UTF-8 encoded
            * string with a length limit of 128 bytes.
      @@ -3798,13 +3333,13 @@ public Builder addTagsBytes(com.google.protobuf.ByteString value) {
            * 
      * * string item_group_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The itemGroupId. */ public java.lang.String getItemGroupId() { java.lang.Object ref = itemGroupId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); itemGroupId_ = s; return s; @@ -3813,8 +3348,6 @@ public java.lang.String getItemGroupId() { } } /** - * - * *
            * Optional. Variant group identifier for prediction results. UTF-8 encoded
            * string with a length limit of 128 bytes.
      @@ -3823,14 +3356,15 @@ public java.lang.String getItemGroupId() {
            * 
      * * string item_group_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for itemGroupId. */ - public com.google.protobuf.ByteString getItemGroupIdBytes() { + public com.google.protobuf.ByteString + getItemGroupIdBytes() { java.lang.Object ref = itemGroupId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); itemGroupId_ = b; return b; } else { @@ -3838,8 +3372,6 @@ public com.google.protobuf.ByteString getItemGroupIdBytes() { } } /** - * - * *
            * Optional. Variant group identifier for prediction results. UTF-8 encoded
            * string with a length limit of 128 bytes.
      @@ -3848,22 +3380,20 @@ public com.google.protobuf.ByteString getItemGroupIdBytes() {
            * 
      * * string item_group_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The itemGroupId to set. * @return This builder for chaining. */ - public Builder setItemGroupId(java.lang.String value) { + public Builder setItemGroupId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + itemGroupId_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Variant group identifier for prediction results. UTF-8 encoded
            * string with a length limit of 128 bytes.
      @@ -3872,18 +3402,15 @@ public Builder setItemGroupId(java.lang.String value) {
            * 
      * * string item_group_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearItemGroupId() { - + itemGroupId_ = getDefaultInstance().getItemGroupId(); onChanged(); return this; } /** - * - * *
            * Optional. Variant group identifier for prediction results. UTF-8 encoded
            * string with a length limit of 128 bytes.
      @@ -3892,37 +3419,29 @@ public Builder clearItemGroupId() {
            * 
      * * string item_group_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for itemGroupId to set. * @return This builder for chaining. */ - public Builder setItemGroupIdBytes(com.google.protobuf.ByteString value) { + public Builder setItemGroupIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + itemGroupId_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder> - productMetadataBuilder_; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder> productMetadataBuilder_; /** - * - * *
            * Optional. Metadata specific to retail products.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the productMetadata field is set. */ @java.lang.Override @@ -3930,48 +3449,35 @@ public boolean hasProductMetadata() { return recommendationTypeCase_ == 10; } /** - * - * *
            * Optional. Metadata specific to retail products.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The productMetadata. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem getProductMetadata() { if (productMetadataBuilder_ == null) { if (recommendationTypeCase_ == 10) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) - recommendationType_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_; } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem - .getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance(); } else { if (recommendationTypeCase_ == 10) { return productMetadataBuilder_.getMessage(); } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem - .getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance(); } } /** - * - * *
            * Optional. Metadata specific to retail products.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setProductMetadata( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem value) { + public Builder setProductMetadata(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem value) { if (productMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3985,15 +3491,11 @@ public Builder setProductMetadata( return this; } /** - * - * *
            * Optional. Metadata specific to retail products.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setProductMetadata( com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder builderForValue) { @@ -4007,29 +3509,18 @@ public Builder setProductMetadata( return this; } /** - * - * *
            * Optional. Metadata specific to retail products.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeProductMetadata( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem value) { + public Builder mergeProductMetadata(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem value) { if (productMetadataBuilder_ == null) { - if (recommendationTypeCase_ == 10 - && recommendationType_ - != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem - .getDefaultInstance()) { - recommendationType_ = - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.newBuilder( - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) - recommendationType_) - .mergeFrom(value) - .buildPartial(); + if (recommendationTypeCase_ == 10 && + recommendationType_ != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance()) { + recommendationType_ = com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.newBuilder((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_) + .mergeFrom(value).buildPartial(); } else { recommendationType_ = value; } @@ -4045,15 +3536,11 @@ public Builder mergeProductMetadata( return this; } /** - * - * *
            * Optional. Metadata specific to retail products.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearProductMetadata() { if (productMetadataBuilder_ == null) { @@ -4072,85 +3559,61 @@ public Builder clearProductMetadata() { return this; } /** - * - * *
            * Optional. Metadata specific to retail products.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder - getProductMetadataBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder getProductMetadataBuilder() { return getProductMetadataFieldBuilder().getBuilder(); } /** - * - * *
            * Optional. Metadata specific to retail products.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder - getProductMetadataOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder getProductMetadataOrBuilder() { if ((recommendationTypeCase_ == 10) && (productMetadataBuilder_ != null)) { return productMetadataBuilder_.getMessageOrBuilder(); } else { if (recommendationTypeCase_ == 10) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) - recommendationType_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_; } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem - .getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance(); } } /** - * - * *
            * Optional. Metadata specific to retail products.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder> + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder> getProductMetadataFieldBuilder() { if (productMetadataBuilder_ == null) { if (!(recommendationTypeCase_ == 10)) { - recommendationType_ = - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance(); + recommendationType_ = com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance(); } - productMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder>( - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) - recommendationType_, + productMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder>( + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_, getParentForChildren(), isClean()); recommendationType_ = null; } recommendationTypeCase_ = 10; - onChanged(); - ; + onChanged();; return productMetadataBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4160,12 +3623,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.CatalogItem) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.CatalogItem) private static final com.google.cloud.recommendationengine.v1beta1.CatalogItem DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.CatalogItem(); } @@ -4174,16 +3637,16 @@ public static com.google.cloud.recommendationengine.v1beta1.CatalogItem getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CatalogItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CatalogItem(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CatalogItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CatalogItem(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4198,4 +3661,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.recommendationengine.v1beta1.CatalogItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemOrBuilder.java similarity index 76% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemOrBuilder.java index b644ff8d..25d99c63 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog.proto package com.google.cloud.recommendationengine.v1beta1; -public interface CatalogItemOrBuilder - extends +public interface CatalogItemOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.CatalogItem) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required. Catalog item identifier. UTF-8 encoded string with a length limit
          * of 128 bytes.
      @@ -35,13 +17,10 @@ public interface CatalogItemOrBuilder
          * 
      * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The id. */ java.lang.String getId(); /** - * - * *
          * Required. Catalog item identifier. UTF-8 encoded string with a length limit
          * of 128 bytes.
      @@ -51,14 +30,12 @@ public interface CatalogItemOrBuilder
          * 
      * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
          * Required. Catalog item categories. This field is repeated for supporting
          * one catalog item belonging to several parallel category hierarchies.
      @@ -72,15 +49,11 @@ public interface CatalogItemOrBuilder
          *      ]
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getCategoryHierarchiesList(); /** - * - * *
          * Required. Catalog item categories. This field is repeated for supporting
          * one catalog item belonging to several parallel category hierarchies.
      @@ -94,15 +67,10 @@ public interface CatalogItemOrBuilder
          *      ]
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - getCategoryHierarchies(int index); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getCategoryHierarchies(int index); /** - * - * *
          * Required. Catalog item categories. This field is repeated for supporting
          * one catalog item belonging to several parallel category hierarchies.
      @@ -116,14 +84,10 @@ public interface CatalogItemOrBuilder
          *      ]
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ int getCategoryHierarchiesCount(); /** - * - * *
          * Required. Catalog item categories. This field is repeated for supporting
          * one catalog item belonging to several parallel category hierarchies.
      @@ -137,17 +101,11 @@ public interface CatalogItemOrBuilder
          *      ]
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List< - ? extends - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> + java.util.List getCategoryHierarchiesOrBuilderList(); /** - * - * *
          * Required. Catalog item categories. This field is repeated for supporting
          * one catalog item belonging to several parallel category hierarchies.
      @@ -161,70 +119,56 @@ public interface CatalogItemOrBuilder
          *      ]
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder - getCategoryHierarchiesOrBuilder(int index); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder getCategoryHierarchiesOrBuilder( + int index); /** - * - * *
          * Required. Catalog item title. UTF-8 encoded string with a length limit of 1
          * KiB.
          * 
      * * string title = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The title. */ java.lang.String getTitle(); /** - * - * *
          * Required. Catalog item title. UTF-8 encoded string with a length limit of 1
          * KiB.
          * 
      * * string title = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for title. */ - com.google.protobuf.ByteString getTitleBytes(); + com.google.protobuf.ByteString + getTitleBytes(); /** - * - * *
          * Optional. Catalog item description. UTF-8 encoded string with a length
          * limit of 5 KiB.
          * 
      * * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
          * Optional. Catalog item description. UTF-8 encoded string with a length
          * limit of 5 KiB.
          * 
      * * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
          * Optional. Highly encouraged. Extra catalog item attributes to be
          * included in the recommendation model. For example, for retail products,
      @@ -233,16 +177,11 @@ public interface CatalogItemOrBuilder
          * providing the item attributes here.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the itemAttributes field is set. */ boolean hasItemAttributes(); /** - * - * *
          * Optional. Highly encouraged. Extra catalog item attributes to be
          * included in the recommendation model. For example, for retail products,
      @@ -251,16 +190,11 @@ public interface CatalogItemOrBuilder
          * providing the item attributes here.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The itemAttributes. */ com.google.cloud.recommendationengine.v1beta1.FeatureMap getItemAttributes(); /** - * - * *
          * Optional. Highly encouraged. Extra catalog item attributes to be
          * included in the recommendation model. For example, for retail products,
      @@ -269,15 +203,11 @@ public interface CatalogItemOrBuilder
          * providing the item attributes here.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getItemAttributesOrBuilder(); /** - * - * *
          * Optional. Language of the title/description/item_attributes. Use language
          * tags defined by BCP 47. https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Our
      @@ -287,13 +217,10 @@ public interface CatalogItemOrBuilder
          * 
      * * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
          * Optional. Language of the title/description/item_attributes. Use language
          * tags defined by BCP 47. https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Our
      @@ -303,14 +230,12 @@ public interface CatalogItemOrBuilder
          * 
      * * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
          * Optional. Filtering tags associated with the catalog item. Each tag should
          * be a UTF-8 encoded string with a length limit of 1 KiB.
      @@ -319,13 +244,11 @@ public interface CatalogItemOrBuilder
          * 
      * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the tags. */ - java.util.List getTagsList(); + java.util.List + getTagsList(); /** - * - * *
          * Optional. Filtering tags associated with the catalog item. Each tag should
          * be a UTF-8 encoded string with a length limit of 1 KiB.
      @@ -334,13 +257,10 @@ public interface CatalogItemOrBuilder
          * 
      * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of tags. */ int getTagsCount(); /** - * - * *
          * Optional. Filtering tags associated with the catalog item. Each tag should
          * be a UTF-8 encoded string with a length limit of 1 KiB.
      @@ -349,14 +269,11 @@ public interface CatalogItemOrBuilder
          * 
      * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** - * - * *
          * Optional. Filtering tags associated with the catalog item. Each tag should
          * be a UTF-8 encoded string with a length limit of 1 KiB.
      @@ -365,15 +282,13 @@ public interface CatalogItemOrBuilder
          * 
      * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - com.google.protobuf.ByteString getTagsBytes(int index); + com.google.protobuf.ByteString + getTagsBytes(int index); /** - * - * *
          * Optional. Variant group identifier for prediction results. UTF-8 encoded
          * string with a length limit of 128 bytes.
      @@ -382,13 +297,10 @@ public interface CatalogItemOrBuilder
          * 
      * * string item_group_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The itemGroupId. */ java.lang.String getItemGroupId(); /** - * - * *
          * Optional. Variant group identifier for prediction results. UTF-8 encoded
          * string with a length limit of 128 bytes.
      @@ -397,53 +309,37 @@ public interface CatalogItemOrBuilder
          * 
      * * string item_group_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for itemGroupId. */ - com.google.protobuf.ByteString getItemGroupIdBytes(); + com.google.protobuf.ByteString + getItemGroupIdBytes(); /** - * - * *
          * Optional. Metadata specific to retail products.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the productMetadata field is set. */ boolean hasProductMetadata(); /** - * - * *
          * Optional. Metadata specific to retail products.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The productMetadata. */ com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem getProductMetadata(); /** - * - * *
          * Optional. Metadata specific to retail products.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder - getProductMetadataOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder getProductMetadataOrBuilder(); - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.RecommendationTypeCase - getRecommendationTypeCase(); + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.RecommendationTypeCase getRecommendationTypeCase(); } diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemPathName.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemPathName.java similarity index 100% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemPathName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemPathName.java diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogName.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogName.java similarity index 100% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceOuterClass.java new file mode 100644 index 00000000..936a05b6 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceOuterClass.java @@ -0,0 +1,217 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/catalog_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public final class CatalogServiceOuterClass { + private CatalogServiceOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n?google/cloud/recommendationengine/v1be" + + "ta1/catalog_service.proto\022)google.cloud." + + "recommendationengine.v1beta1\032\034google/api" + + "/annotations.proto\032\027google/api/client.pr" + + "oto\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\0327google/cloud/re" + + "commendationengine/v1beta1/catalog.proto" + + "\0326google/cloud/recommendationengine/v1be" + + "ta1/import.proto\032Ngoogle/cloud/recommend" + + "ationengine/v1beta1/recommendationengine" + + "_resources.proto\032#google/longrunning/ope" + + "rations.proto\032\033google/protobuf/empty.pro" + + "to\032 google/protobuf/field_mask.proto\"\262\001\n" + + "\030CreateCatalogItemRequest\022C\n\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\n+recommendationengine.googleap" + + "is.com/Catalog\022Q\n\014catalog_item\030\002 \001(\01326.g" + + "oogle.cloud.recommendationengine.v1beta1" + + ".CatalogItemB\003\340A\002\"b\n\025GetCatalogItemReque" + + "st\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3recommendation" + + "engine.googleapis.com/CatalogItemPath\"\244\001" + + "\n\027ListCatalogItemsRequest\022C\n\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\n+recommendationengine.googleap" + + "is.com/Catalog\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027" + + "\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB" + + "\003\340A\001\"\202\001\n\030ListCatalogItemsResponse\022M\n\rcat" + + "alog_items\030\001 \003(\01326.google.cloud.recommen" + + "dationengine.v1beta1.CatalogItem\022\027\n\017next" + + "_page_token\030\002 \001(\t\"\351\001\n\030UpdateCatalogItemR" + + "equest\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3recommenda" + + "tionengine.googleapis.com/CatalogItemPat" + + "h\022Q\n\014catalog_item\030\002 \001(\01326.google.cloud.r" + + "ecommendationengine.v1beta1.CatalogItemB" + + "\003\340A\002\022/\n\013update_mask\030\003 \001(\0132\032.google.proto" + + "buf.FieldMask\"e\n\030DeleteCatalogItemReques" + + "t\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3recommendatione" + + "ngine.googleapis.com/CatalogItemPath2\226\r\n" + + "\016CatalogService\022\376\001\n\021CreateCatalogItem\022C." + + "google.cloud.recommendationengine.v1beta" + + "1.CreateCatalogItemRequest\0326.google.clou" + + "d.recommendationengine.v1beta1.CatalogIt" + + "em\"l\202\323\344\223\002P\"@/v1beta1/{parent=projects/*/" + + "locations/*/catalogs/*}/catalogItems:\014ca" + + "talog_item\332A\023parent,catalog_item\022\334\001\n\016Get" + + "CatalogItem\022@.google.cloud.recommendatio" + + "nengine.v1beta1.GetCatalogItemRequest\0326." + + "google.cloud.recommendationengine.v1beta" + + "1.CatalogItem\"P\202\323\344\223\002C\022A/v1beta1/{name=pr" + + "ojects/*/locations/*/catalogs/*/catalogI" + + "tems/**}\332A\004name\022\365\001\n\020ListCatalogItems\022B.g" + + "oogle.cloud.recommendationengine.v1beta1" + + ".ListCatalogItemsRequest\032C.google.cloud." + + "recommendationengine.v1beta1.ListCatalog" + + "ItemsResponse\"X\202\323\344\223\002B\022@/v1beta1/{parent=" + + "projects/*/locations/*/catalogs/*}/catal" + + "ogItems\332A\rparent,filter\022\211\002\n\021UpdateCatalo" + + "gItem\022C.google.cloud.recommendationengin" + + "e.v1beta1.UpdateCatalogItemRequest\0326.goo" + + "gle.cloud.recommendationengine.v1beta1.C" + + "atalogItem\"w\202\323\344\223\002Q2A/v1beta1/{name=proje" + + "cts/*/locations/*/catalogs/*/catalogItem" + + "s/**}:\014catalog_item\332A\035name,catalog_item," + + "update_mask\022\302\001\n\021DeleteCatalogItem\022C.goog" + + "le.cloud.recommendationengine.v1beta1.De" + + "leteCatalogItemRequest\032\026.google.protobuf" + + ".Empty\"P\202\323\344\223\002C*A/v1beta1/{name=projects/" + + "*/locations/*/catalogs/*/catalogItems/**" + + "}\332A\004name\022\201\003\n\022ImportCatalogItems\022D.google" + + ".cloud.recommendationengine.v1beta1.Impo" + + "rtCatalogItemsRequest\032\035.google.longrunni" + + "ng.Operation\"\205\002\202\323\344\223\002L\"G/v1beta1/{parent=" + + "projects/*/locations/*/catalogs/*}/catal" + + "ogItems:import:\001*\312A\200\001\nDgoogle.cloud.reco" + + "mmendationengine.v1beta1.ImportCatalogIt" + + "emsResponse\0228google.cloud.recommendation" + + "engine.v1beta1.ImportMetadata\332A,parent,r" + + "equest_id,input_config,errors_config\032W\312A" + + "#recommendationengine.googleapis.com\322A.h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tformB\237\002\n-com.google.cloud.recommendatio" + + "nengine.v1beta1P\001Z]google.golang.org/gen" + + "proto/googleapis/cloud/recommendationeng" + + "ine/v1beta1;recommendationengine\242\002\005RECAI" + + "\252\002)Google.Cloud.RecommendationEngine.V1B" + + "eta1\312\002)Google\\Cloud\\RecommendationEngine" + + "\\V1beta1\352\002,Google::Cloud::Recommendation" + + "Engine::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.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.Import.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor, + new java.lang.String[] { "Parent", "CatalogItem", }); + internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor, + new java.lang.String[] { "CatalogItems", "NextPageToken", }); + internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor, + new java.lang.String[] { "Name", "CatalogItem", "UpdateMask", }); + internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor, + new java.lang.String[] { "Name", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.Import.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequest.java similarity index 69% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequest.java index 1f7bd625..f40aa278 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Request message for CollectUserEvent method.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CollectUserEventRequest} */ -public final class CollectUserEventRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CollectUserEventRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) CollectUserEventRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CollectUserEventRequest.newBuilder() to construct. private CollectUserEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CollectUserEventRequest() { parent_ = ""; userEvent_ = ""; @@ -45,15 +27,16 @@ private CollectUserEventRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CollectUserEventRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CollectUserEventRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private CollectUserEventRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - userEvent_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + userEvent_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - case 32: - { - ets_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + uri_ = s; + break; + } + case 32: { + + ets_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,42 +92,35 @@ private CollectUserEventRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.class, - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.class, com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
          * Required. The parent eventStore name, such as
          * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -156,32 +129,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
          * Required. The parent eventStore name, such as
          * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -192,14 +163,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int USER_EVENT_FIELD_NUMBER = 2; private volatile java.lang.Object userEvent_; /** - * - * *
          * Required. URL encoded UserEvent proto.
          * 
      * * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The userEvent. */ @java.lang.Override @@ -208,29 +176,29 @@ public java.lang.String getUserEvent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userEvent_ = s; return s; } } /** - * - * *
          * Required. URL encoded UserEvent proto.
          * 
      * * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for userEvent. */ @java.lang.Override - public com.google.protobuf.ByteString getUserEventBytes() { + public com.google.protobuf.ByteString + getUserEventBytes() { java.lang.Object ref = userEvent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userEvent_ = b; return b; } else { @@ -241,8 +209,6 @@ public com.google.protobuf.ByteString getUserEventBytes() { public static final int URI_FIELD_NUMBER = 3; private volatile java.lang.Object uri_; /** - * - * *
          * Optional. The url including cgi-parameters but excluding the hash fragment.
          * The URL must be truncated to 1.5K bytes to conservatively be under the 2K
      @@ -251,7 +217,6 @@ public com.google.protobuf.ByteString getUserEventBytes() {
          * 
      * * string uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The uri. */ @java.lang.Override @@ -260,15 +225,14 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
          * Optional. The url including cgi-parameters but excluding the hash fragment.
          * The URL must be truncated to 1.5K bytes to conservatively be under the 2K
      @@ -277,15 +241,16 @@ public java.lang.String getUri() {
          * 
      * * string uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -296,8 +261,6 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int ETS_FIELD_NUMBER = 4; private long ets_; /** - * - * *
          * Optional. The event timestamp in milliseconds. This prevents browser
          * caching of otherwise identical get requests. The name is abbreviated to
      @@ -305,7 +268,6 @@ public com.google.protobuf.ByteString getUriBytes() {
          * 
      * * int64 ets = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ets. */ @java.lang.Override @@ -314,7 +276,6 @@ public long getEts() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -326,7 +287,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -358,7 +320,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); } if (ets_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ets_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, ets_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -368,18 +331,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest other = - (com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getUserEvent().equals(other.getUserEvent())) return false; - if (!getUri().equals(other.getUri())) return false; - if (getEts() != other.getEts()) return false; + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest other = (com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getUserEvent() + .equals(other.getUserEvent())) return false; + if (!getUri() + .equals(other.getUri())) return false; + if (getEts() + != other.getEts()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -398,152 +364,142 @@ public int hashCode() { hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); hash = (37 * hash) + ETS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEts()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEts()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Request message for CollectUserEvent method.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CollectUserEventRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.class, - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.class, com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -559,16 +515,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.getDefaultInstance(); } @java.lang.Override @@ -582,8 +536,7 @@ public com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest bui @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest result = - new com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest(this); + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest result = new com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest(this); result.parent_ = parent_; result.userEvent_ = userEvent_; result.uri_ = uri_; @@ -596,51 +549,46 @@ public com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest other) { + if (other == com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -675,9 +623,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -689,23 +635,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
            * Required. The parent eventStore name, such as
            * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -714,24 +656,21 @@ public java.lang.String getParent() { } } /** - * - * *
            * Required. The parent eventStore name, such as
            * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -739,70 +678,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
            * Required. The parent eventStore name, such as
            * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
            * Required. The parent eventStore name, such as
            * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
            * Required. The parent eventStore name, such as
            * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -810,20 +736,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object userEvent_ = ""; /** - * - * *
            * Required. URL encoded UserEvent proto.
            * 
      * * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The userEvent. */ public java.lang.String getUserEvent() { java.lang.Object ref = userEvent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userEvent_ = s; return s; @@ -832,21 +756,20 @@ public java.lang.String getUserEvent() { } } /** - * - * *
            * Required. URL encoded UserEvent proto.
            * 
      * * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for userEvent. */ - public com.google.protobuf.ByteString getUserEventBytes() { + public com.google.protobuf.ByteString + getUserEventBytes() { java.lang.Object ref = userEvent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userEvent_ = b; return b; } else { @@ -854,61 +777,54 @@ public com.google.protobuf.ByteString getUserEventBytes() { } } /** - * - * *
            * Required. URL encoded UserEvent proto.
            * 
      * * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The userEvent to set. * @return This builder for chaining. */ - public Builder setUserEvent(java.lang.String value) { + public Builder setUserEvent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + userEvent_ = value; onChanged(); return this; } /** - * - * *
            * Required. URL encoded UserEvent proto.
            * 
      * * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUserEvent() { - + userEvent_ = getDefaultInstance().getUserEvent(); onChanged(); return this; } /** - * - * *
            * Required. URL encoded UserEvent proto.
            * 
      * * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for userEvent to set. * @return This builder for chaining. */ - public Builder setUserEventBytes(com.google.protobuf.ByteString value) { + public Builder setUserEventBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userEvent_ = value; onChanged(); return this; @@ -916,8 +832,6 @@ public Builder setUserEventBytes(com.google.protobuf.ByteString value) { private java.lang.Object uri_ = ""; /** - * - * *
            * Optional. The url including cgi-parameters but excluding the hash fragment.
            * The URL must be truncated to 1.5K bytes to conservatively be under the 2K
      @@ -926,13 +840,13 @@ public Builder setUserEventBytes(com.google.protobuf.ByteString value) {
            * 
      * * string uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -941,8 +855,6 @@ public java.lang.String getUri() { } } /** - * - * *
            * Optional. The url including cgi-parameters but excluding the hash fragment.
            * The URL must be truncated to 1.5K bytes to conservatively be under the 2K
      @@ -951,14 +863,15 @@ public java.lang.String getUri() {
            * 
      * * string uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -966,8 +879,6 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
            * Optional. The url including cgi-parameters but excluding the hash fragment.
            * The URL must be truncated to 1.5K bytes to conservatively be under the 2K
      @@ -976,22 +887,20 @@ public com.google.protobuf.ByteString getUriBytes() {
            * 
      * * string uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
            * Optional. The url including cgi-parameters but excluding the hash fragment.
            * The URL must be truncated to 1.5K bytes to conservatively be under the 2K
      @@ -1000,18 +909,15 @@ public Builder setUri(java.lang.String value) {
            * 
      * * string uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
            * Optional. The url including cgi-parameters but excluding the hash fragment.
            * The URL must be truncated to 1.5K bytes to conservatively be under the 2K
      @@ -1020,25 +926,23 @@ public Builder clearUri() {
            * 
      * * string uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - private long ets_; + private long ets_ ; /** - * - * *
            * Optional. The event timestamp in milliseconds. This prevents browser
            * caching of otherwise identical get requests. The name is abbreviated to
      @@ -1046,7 +950,6 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
            * 
      * * int64 ets = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ets. */ @java.lang.Override @@ -1054,8 +957,6 @@ public long getEts() { return ets_; } /** - * - * *
            * Optional. The event timestamp in milliseconds. This prevents browser
            * caching of otherwise identical get requests. The name is abbreviated to
      @@ -1063,19 +964,16 @@ public long getEts() {
            * 
      * * int64 ets = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The ets to set. * @return This builder for chaining. */ public Builder setEts(long value) { - + ets_ = value; onChanged(); return this; } /** - * - * *
            * Optional. The event timestamp in milliseconds. This prevents browser
            * caching of otherwise identical get requests. The name is abbreviated to
      @@ -1083,18 +981,17 @@ public Builder setEts(long value) {
            * 
      * * int64 ets = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEts() { - + ets_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1104,32 +1001,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) - private static final com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CollectUserEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CollectUserEventRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CollectUserEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CollectUserEventRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1141,8 +1036,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequestOrBuilder.java similarity index 67% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequestOrBuilder.java index 0544ea2c..11c07e6a 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequestOrBuilder.java @@ -1,87 +1,55 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface CollectUserEventRequestOrBuilder - extends +public interface CollectUserEventRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required. The parent eventStore name, such as
          * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
          * Required. The parent eventStore name, such as
          * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
          * Required. URL encoded UserEvent proto.
          * 
      * * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The userEvent. */ java.lang.String getUserEvent(); /** - * - * *
          * Required. URL encoded UserEvent proto.
          * 
      * * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for userEvent. */ - com.google.protobuf.ByteString getUserEventBytes(); + com.google.protobuf.ByteString + getUserEventBytes(); /** - * - * *
          * Optional. The url including cgi-parameters but excluding the hash fragment.
          * The URL must be truncated to 1.5K bytes to conservatively be under the 2K
      @@ -90,13 +58,10 @@ public interface CollectUserEventRequestOrBuilder
          * 
      * * string uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
          * Optional. The url including cgi-parameters but excluding the hash fragment.
          * The URL must be truncated to 1.5K bytes to conservatively be under the 2K
      @@ -105,14 +70,12 @@ public interface CollectUserEventRequestOrBuilder
          * 
      * * string uri = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
          * Optional. The event timestamp in milliseconds. This prevents browser
          * caching of otherwise identical get requests. The name is abbreviated to
      @@ -120,7 +83,6 @@ public interface CollectUserEventRequestOrBuilder
          * 
      * * int64 ets = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ets. */ long getEts(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Common.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Common.java new file mode 100644 index 00000000..5b98ad99 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Common.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/common.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public final class Common { + private Common() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/recommendationengine/v1be" + + "ta1/common.proto\022)google.cloud.recommend" + + "ationengine.v1beta1\032\034google/api/annotati" + + "ons.proto\"\226\004\n\nFeatureMap\022l\n\024categorical_" + + "features\030\001 \003(\0132N.google.cloud.recommenda" + + "tionengine.v1beta1.FeatureMap.Categorica" + + "lFeaturesEntry\022h\n\022numerical_features\030\002 \003" + + "(\0132L.google.cloud.recommendationengine.v" + + "1beta1.FeatureMap.NumericalFeaturesEntry" + + "\032\033\n\nStringList\022\r\n\005value\030\001 \003(\t\032\032\n\tFloatLi" + + "st\022\r\n\005value\030\001 \003(\002\032|\n\030CategoricalFeatures" + + "Entry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132@.goog" + + "le.cloud.recommendationengine.v1beta1.Fe" + + "atureMap.StringList:\0028\001\032y\n\026NumericalFeat" + + "uresEntry\022\013\n\003key\030\001 \001(\t\022N\n\005value\030\002 \001(\0132?." + + "google.cloud.recommendationengine.v1beta" + + "1.FeatureMap.FloatList:\0028\001B\237\002\n-com.googl" + + "e.cloud.recommendationengine.v1beta1P\001Z]" + + "google.golang.org/genproto/googleapis/cl" + + "oud/recommendationengine/v1beta1;recomme" + + "ndationengine\242\002\005RECAI\252\002)Google.Cloud.Rec" + + "ommendationEngine.V1Beta1\312\002)Google\\Cloud" + + "\\RecommendationEngine\\V1beta1\352\002,Google::" + + "Cloud::RecommendationEngine::V1beta1b\006pr" + + "oto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor, + new java.lang.String[] { "CategoricalFeatures", "NumericalFeatures", }); + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor, + new java.lang.String[] { "Value", }); + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor, + new java.lang.String[] { "Value", }); + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequest.java similarity index 60% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequest.java index 87b36305..04742433 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog_service.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Request message for CreateCatalogItem method.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest} */ -public final class CreateCatalogItemRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateCatalogItemRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) CreateCatalogItemRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateCatalogItemRequest.newBuilder() to construct. private CreateCatalogItemRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateCatalogItemRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateCatalogItemRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateCatalogItemRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,37 +53,32 @@ private CreateCatalogItemRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder subBuilder = null; + if (catalogItem_ != null) { + subBuilder = catalogItem_.toBuilder(); } - case 18: - { - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder subBuilder = null; - if (catalogItem_ != null) { - subBuilder = catalogItem_.toBuilder(); - } - catalogItem_ = - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(catalogItem_); - catalogItem_ = subBuilder.buildPartial(); - } - - break; + catalogItem_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.CatalogItem.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(catalogItem_); + catalogItem_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,42 +86,35 @@ private CreateCatalogItemRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.class, - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.class, com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
          * Required. The parent catalog resource name, such as
          * `projects/*/locations/global/catalogs/default_catalog`.
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -152,32 +123,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
          * Required. The parent catalog resource name, such as
          * `projects/*/locations/global/catalogs/default_catalog`.
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -188,16 +157,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CATALOG_ITEM_FIELD_NUMBER = 2; private com.google.cloud.recommendationengine.v1beta1.CatalogItem catalogItem_; /** - * - * *
          * Required. The catalog item to create.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the catalogItem field is set. */ @java.lang.Override @@ -205,43 +169,30 @@ public boolean hasCatalogItem() { return catalogItem_ != null; } /** - * - * *
          * Required. The catalog item to create.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The catalogItem. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItem() { - return catalogItem_ == null - ? com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() - : catalogItem_; + return catalogItem_ == null ? com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() : catalogItem_; } /** - * - * *
          * Required. The catalog item to create.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder - getCatalogItemOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemOrBuilder() { return getCatalogItem(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -273,7 +225,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (catalogItem_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCatalogItem()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCatalogItem()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -283,18 +236,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest other = - (com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) obj; + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest other = (com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasCatalogItem() != other.hasCatalogItem()) return false; if (hasCatalogItem()) { - if (!getCatalogItem().equals(other.getCatalogItem())) return false; + if (!getCatalogItem() + .equals(other.getCatalogItem())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -319,145 +273,134 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Request message for CreateCatalogItem method.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.class, - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.class, com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -473,22 +416,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest build() { - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest result = - buildPartial(); + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -497,8 +437,7 @@ public com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest bu @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest result = - new com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest(this); + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest result = new com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest(this); result.parent_ = parent_; if (catalogItemBuilder_ == null) { result.catalogItem_ = catalogItem_; @@ -513,51 +452,46 @@ public com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest other) { + if (other == com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -584,9 +518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -598,23 +530,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
            * Required. The parent catalog resource name, such as
            * `projects/*/locations/global/catalogs/default_catalog`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -623,24 +551,21 @@ public java.lang.String getParent() { } } /** - * - * *
            * Required. The parent catalog resource name, such as
            * `projects/*/locations/global/catalogs/default_catalog`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -648,70 +573,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
            * Required. The parent catalog resource name, such as
            * `projects/*/locations/global/catalogs/default_catalog`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
            * Required. The parent catalog resource name, such as
            * `projects/*/locations/global/catalogs/default_catalog`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
            * Required. The parent catalog resource name, such as
            * `projects/*/locations/global/catalogs/default_catalog`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -719,58 +631,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.recommendationengine.v1beta1.CatalogItem catalogItem_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, - com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> - catalogItemBuilder_; + com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> catalogItemBuilder_; /** - * - * *
            * Required. The catalog item to create.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the catalogItem field is set. */ public boolean hasCatalogItem() { return catalogItemBuilder_ != null || catalogItem_ != null; } /** - * - * *
            * Required. The catalog item to create.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The catalogItem. */ public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItem() { if (catalogItemBuilder_ == null) { - return catalogItem_ == null - ? com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() - : catalogItem_; + return catalogItem_ == null ? com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() : catalogItem_; } else { return catalogItemBuilder_.getMessage(); } } /** - * - * *
            * Required. The catalog item to create.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCatalogItem(com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { if (catalogItemBuilder_ == null) { @@ -786,15 +679,11 @@ public Builder setCatalogItem(com.google.cloud.recommendationengine.v1beta1.Cata return this; } /** - * - * *
            * Required. The catalog item to create.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCatalogItem( com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { @@ -808,24 +697,17 @@ public Builder setCatalogItem( return this; } /** - * - * *
            * Required. The catalog item to create.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeCatalogItem( - com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { + public Builder mergeCatalogItem(com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { if (catalogItemBuilder_ == null) { if (catalogItem_ != null) { catalogItem_ = - com.google.cloud.recommendationengine.v1beta1.CatalogItem.newBuilder(catalogItem_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.newBuilder(catalogItem_).mergeFrom(value).buildPartial(); } else { catalogItem_ = value; } @@ -837,15 +719,11 @@ public Builder mergeCatalogItem( return this; } /** - * - * *
            * Required. The catalog item to create.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCatalogItem() { if (catalogItemBuilder_ == null) { @@ -859,73 +737,55 @@ public Builder clearCatalogItem() { return this; } /** - * - * *
            * Required. The catalog item to create.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder - getCatalogItemBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder getCatalogItemBuilder() { + onChanged(); return getCatalogItemFieldBuilder().getBuilder(); } /** - * - * *
            * Required. The catalog item to create.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder - getCatalogItemOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemOrBuilder() { if (catalogItemBuilder_ != null) { return catalogItemBuilder_.getMessageOrBuilder(); } else { - return catalogItem_ == null - ? com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() - : catalogItem_; + return catalogItem_ == null ? + com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() : catalogItem_; } } /** - * - * *
            * Required. The catalog item to create.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, - com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> + com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> getCatalogItemFieldBuilder() { if (catalogItemBuilder_ == null) { - catalogItemBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, - com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder>( - getCatalogItem(), getParentForChildren(), isClean()); + catalogItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder>( + getCatalogItem(), + getParentForChildren(), + isClean()); catalogItem_ = null; } return catalogItemBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -935,32 +795,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) - private static final com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCatalogItemRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCatalogItemRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCatalogItemRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCatalogItemRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -972,8 +830,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequestOrBuilder.java new file mode 100644 index 00000000..0e1671b7 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/catalog_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public interface CreateCatalogItemRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * Required. The parent catalog resource name, such as
      +   * `projects/*/locations/global/catalogs/default_catalog`.
      +   * 
      + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
      +   * Required. The parent catalog resource name, such as
      +   * `projects/*/locations/global/catalogs/default_catalog`.
      +   * 
      + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
      +   * Required. The catalog item to create.
      +   * 
      + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the catalogItem field is set. + */ + boolean hasCatalogItem(); + /** + *
      +   * Required. The catalog item to create.
      +   * 
      + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The catalogItem. + */ + com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItem(); + /** + *
      +   * Required. The catalog item to create.
      +   * 
      + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemOrBuilder(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequest.java new file mode 100644 index 00000000..bdcedc65 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequest.java @@ -0,0 +1,838 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +/** + *
      + * Request message for the `CreatePredictionApiKeyRegistration` method.
      + * 
      + * + * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest} + */ +public final class CreatePredictionApiKeyRegistrationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) + CreatePredictionApiKeyRegistrationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreatePredictionApiKeyRegistrationRequest.newBuilder() to construct. + private CreatePredictionApiKeyRegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreatePredictionApiKeyRegistrationRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreatePredictionApiKeyRegistrationRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreatePredictionApiKeyRegistrationRequest( + 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.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder subBuilder = null; + if (predictionApiKeyRegistration_ != null) { + subBuilder = predictionApiKeyRegistration_.toBuilder(); + } + predictionApiKeyRegistration_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(predictionApiKeyRegistration_); + predictionApiKeyRegistration_ = 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.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest.class, com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
      +   * Required. The parent resource path.
      +   * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      +   * 
      + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
      +   * Required. The parent resource path.
      +   * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      +   * 
      + * + * 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 PREDICTION_API_KEY_REGISTRATION_FIELD_NUMBER = 2; + private com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration predictionApiKeyRegistration_; + /** + *
      +   * Required. The prediction API key registration.
      +   * 
      + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the predictionApiKeyRegistration field is set. + */ + @java.lang.Override + public boolean hasPredictionApiKeyRegistration() { + return predictionApiKeyRegistration_ != null; + } + /** + *
      +   * Required. The prediction API key registration.
      +   * 
      + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The predictionApiKeyRegistration. + */ + @java.lang.Override + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration getPredictionApiKeyRegistration() { + return predictionApiKeyRegistration_ == null ? com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.getDefaultInstance() : predictionApiKeyRegistration_; + } + /** + *
      +   * Required. The prediction API key registration.
      +   * 
      + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder getPredictionApiKeyRegistrationOrBuilder() { + return getPredictionApiKeyRegistration(); + } + + 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 (predictionApiKeyRegistration_ != null) { + output.writeMessage(2, getPredictionApiKeyRegistration()); + } + 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 (predictionApiKeyRegistration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPredictionApiKeyRegistration()); + } + 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.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest)) { + return super.equals(obj); + } + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest other = (com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (hasPredictionApiKeyRegistration() != other.hasPredictionApiKeyRegistration()) return false; + if (hasPredictionApiKeyRegistration()) { + if (!getPredictionApiKeyRegistration() + .equals(other.getPredictionApiKeyRegistration())) 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 (hasPredictionApiKeyRegistration()) { + hash = (37 * hash) + PREDICTION_API_KEY_REGISTRATION_FIELD_NUMBER; + hash = (53 * hash) + getPredictionApiKeyRegistration().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest 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 the `CreatePredictionApiKeyRegistration` method.
      +   * 
      + * + * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest.class, com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest.Builder.class); + } + + // Construct using com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest.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 (predictionApiKeyRegistrationBuilder_ == null) { + predictionApiKeyRegistration_ = null; + } else { + predictionApiKeyRegistration_ = null; + predictionApiKeyRegistrationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest build() { + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest buildPartial() { + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest result = new com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest(this); + result.parent_ = parent_; + if (predictionApiKeyRegistrationBuilder_ == null) { + result.predictionApiKeyRegistration_ = predictionApiKeyRegistration_; + } else { + result.predictionApiKeyRegistration_ = predictionApiKeyRegistrationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) { + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest other) { + if (other == com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasPredictionApiKeyRegistration()) { + mergePredictionApiKeyRegistration(other.getPredictionApiKeyRegistration()); + } + 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.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
      +     * Required. The parent resource path.
      +     * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      +     * 
      + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
      +     * Required. The parent resource path.
      +     * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      +     * 
      + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
      +     * Required. The parent resource path.
      +     * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      +     * 
      + * + * 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; + } + /** + *
      +     * Required. The parent resource path.
      +     * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      +     * 
      + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
      +     * Required. The parent resource path.
      +     * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      +     * 
      + * + * 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.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration predictionApiKeyRegistration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> predictionApiKeyRegistrationBuilder_; + /** + *
      +     * Required. The prediction API key registration.
      +     * 
      + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the predictionApiKeyRegistration field is set. + */ + public boolean hasPredictionApiKeyRegistration() { + return predictionApiKeyRegistrationBuilder_ != null || predictionApiKeyRegistration_ != null; + } + /** + *
      +     * Required. The prediction API key registration.
      +     * 
      + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The predictionApiKeyRegistration. + */ + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration getPredictionApiKeyRegistration() { + if (predictionApiKeyRegistrationBuilder_ == null) { + return predictionApiKeyRegistration_ == null ? com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.getDefaultInstance() : predictionApiKeyRegistration_; + } else { + return predictionApiKeyRegistrationBuilder_.getMessage(); + } + } + /** + *
      +     * Required. The prediction API key registration.
      +     * 
      + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setPredictionApiKeyRegistration(com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration value) { + if (predictionApiKeyRegistrationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predictionApiKeyRegistration_ = value; + onChanged(); + } else { + predictionApiKeyRegistrationBuilder_.setMessage(value); + } + + return this; + } + /** + *
      +     * Required. The prediction API key registration.
      +     * 
      + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setPredictionApiKeyRegistration( + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder builderForValue) { + if (predictionApiKeyRegistrationBuilder_ == null) { + predictionApiKeyRegistration_ = builderForValue.build(); + onChanged(); + } else { + predictionApiKeyRegistrationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
      +     * Required. The prediction API key registration.
      +     * 
      + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergePredictionApiKeyRegistration(com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration value) { + if (predictionApiKeyRegistrationBuilder_ == null) { + if (predictionApiKeyRegistration_ != null) { + predictionApiKeyRegistration_ = + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.newBuilder(predictionApiKeyRegistration_).mergeFrom(value).buildPartial(); + } else { + predictionApiKeyRegistration_ = value; + } + onChanged(); + } else { + predictionApiKeyRegistrationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
      +     * Required. The prediction API key registration.
      +     * 
      + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearPredictionApiKeyRegistration() { + if (predictionApiKeyRegistrationBuilder_ == null) { + predictionApiKeyRegistration_ = null; + onChanged(); + } else { + predictionApiKeyRegistration_ = null; + predictionApiKeyRegistrationBuilder_ = null; + } + + return this; + } + /** + *
      +     * Required. The prediction API key registration.
      +     * 
      + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder getPredictionApiKeyRegistrationBuilder() { + + onChanged(); + return getPredictionApiKeyRegistrationFieldBuilder().getBuilder(); + } + /** + *
      +     * Required. The prediction API key registration.
      +     * 
      + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder getPredictionApiKeyRegistrationOrBuilder() { + if (predictionApiKeyRegistrationBuilder_ != null) { + return predictionApiKeyRegistrationBuilder_.getMessageOrBuilder(); + } else { + return predictionApiKeyRegistration_ == null ? + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.getDefaultInstance() : predictionApiKeyRegistration_; + } + } + /** + *
      +     * Required. The prediction API key registration.
      +     * 
      + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> + getPredictionApiKeyRegistrationFieldBuilder() { + if (predictionApiKeyRegistrationBuilder_ == null) { + predictionApiKeyRegistrationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder>( + getPredictionApiKeyRegistration(), + getParentForChildren(), + isClean()); + predictionApiKeyRegistration_ = null; + } + return predictionApiKeyRegistrationBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) + private static final com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest(); + } + + public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePredictionApiKeyRegistrationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreatePredictionApiKeyRegistrationRequest(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.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequestOrBuilder.java new file mode 100644 index 00000000..a056c751 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public interface CreatePredictionApiKeyRegistrationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * Required. The parent resource path.
      +   * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      +   * 
      + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
      +   * Required. The parent resource path.
      +   * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      +   * 
      + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
      +   * Required. The prediction API key registration.
      +   * 
      + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the predictionApiKeyRegistration field is set. + */ + boolean hasPredictionApiKeyRegistration(); + /** + *
      +   * Required. The prediction API key registration.
      +   * 
      + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The predictionApiKeyRegistration. + */ + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration getPredictionApiKeyRegistration(); + /** + *
      +   * Required. The prediction API key registration.
      +   * 
      + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder getPredictionApiKeyRegistrationOrBuilder(); +} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequest.java similarity index 62% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequest.java index f894639f..4bc91164 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog_service.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Request message for DeleteCatalogItem method.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest} */ -public final class DeleteCatalogItemRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteCatalogItemRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) DeleteCatalogItemRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteCatalogItemRequest.newBuilder() to construct. private DeleteCatalogItemRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteCatalogItemRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteCatalogItemRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteCatalogItemRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteCatalogItemRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private DeleteCatalogItemRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.class, - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.class, com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
          * Required. Full resource name of catalog item, such as
          * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
          * Required. Full resource name of catalog item, such as
          * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest other = - (com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) obj; + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest other = (com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Request message for DeleteCatalogItem method.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.class, - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.class, com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,22 +343,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest build() { - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest result = - buildPartial(); + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -405,8 +364,7 @@ public com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest bu @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest result = - new com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest(this); + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest result = new com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest(this); result.name_ = name_; onBuilt(); return result; @@ -416,51 +374,46 @@ public com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest other) { + if (other == com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -484,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -498,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
            * Required. Full resource name of catalog item, such as
            * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -523,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
            * Required. Full resource name of catalog item, such as
            * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -548,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
            * Required. Full resource name of catalog item, such as
            * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
            * Required. Full resource name of catalog item, such as
            * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
            * Required. Full resource name of catalog item, such as
            * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -628,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) - private static final com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteCatalogItemRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteCatalogItemRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCatalogItemRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteCatalogItemRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -665,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequestOrBuilder.java new file mode 100644 index 00000000..e4a3bf57 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/catalog_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public interface DeleteCatalogItemRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * Required. Full resource name of catalog item, such as
      +   * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
      +   * Required. Full resource name of catalog item, such as
      +   * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequest.java similarity index 50% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequest.java index 3014a3b6..b0a0d384 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequest.java @@ -1,60 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Request message for `DeletePredictionApiKeyRegistration` method.
        * 
      * - * Protobuf type {@code - * google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest} + * Protobuf type {@code google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest} */ -public final class DeletePredictionApiKeyRegistrationRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeletePredictionApiKeyRegistrationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) DeletePredictionApiKeyRegistrationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeletePredictionApiKeyRegistrationRequest.newBuilder() to construct. - private DeletePredictionApiKeyRegistrationRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeletePredictionApiKeyRegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeletePredictionApiKeyRegistrationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeletePredictionApiKeyRegistrationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeletePredictionApiKeyRegistrationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,20 +53,19 @@ private DeletePredictionApiKeyRegistrationRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,44 +73,35 @@ private DeletePredictionApiKeyRegistrationRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest - .class, - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest - .Builder.class); + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest.class, com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
          * Required. The API key to unregister including full resource path.
          * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>`
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -140,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
          * Required. The API key to unregister including full resource path.
          * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>`
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -174,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -210,18 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest)) { + if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest other = - (com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) - obj; + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest other = (com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -240,168 +205,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest - prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Request message for `DeletePredictionApiKeyRegistration` method.
          * 
      * - * Protobuf type {@code - * google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest} + * Protobuf type {@code google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) - com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor; + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest.class, - com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest.class, com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -411,23 +343,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest - build() { - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest - result = buildPartial(); + public com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest build() { + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -435,12 +363,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest - buildPartial() { - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest - result = - new com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest(this); + public com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest buildPartial() { + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest result = new com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest(this); result.name_ = name_; onBuilt(); return result; @@ -450,56 +374,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest) - other); + if (other instanceof com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) { + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest - other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest other) { + if (other == com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -519,15 +433,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest - parsedMessage = null; + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -539,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
            * Required. The API key to unregister including full resource path.
            * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>`
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -564,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
            * Required. The API key to unregister including full resource path.
            * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>`
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -589,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
            * Required. The API key to unregister including full resource path.
            * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>`
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
            * Required. The API key to unregister including full resource path.
            * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>`
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
            * Required. The API key to unregister including full resource path.
            * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>`
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -669,37 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) - private static final com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest(); + DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest(); } - public static com.google.cloud.recommendationengine.v1beta1 - .DeletePredictionApiKeyRegistrationRequest - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePredictionApiKeyRegistrationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeletePredictionApiKeyRegistrationRequest(input, extensionRegistry); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePredictionApiKeyRegistrationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeletePredictionApiKeyRegistrationRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -711,8 +594,9 @@ public com.google.protobuf.Parser get } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequestOrBuilder.java similarity index 52% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequestOrBuilder.java index ccad1dfd..8efd4d45 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequestOrBuilder.java @@ -1,56 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface DeletePredictionApiKeyRegistrationRequestOrBuilder - extends +public interface DeletePredictionApiKeyRegistrationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required. The API key to unregister including full resource path.
          * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>`
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
          * Required. The API key to unregister including full resource path.
          * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>`
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetail.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetail.java similarity index 77% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetail.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetail.java index 5abb64d0..b334293a 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetail.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetail.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * User event details shared by all recommendation types.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.EventDetail} */ -public final class EventDetail extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EventDetail extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.EventDetail) EventDetailOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EventDetail.newBuilder() to construct. private EventDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EventDetail() { uri_ = ""; referrerUri_ = ""; @@ -47,15 +29,16 @@ private EventDetail() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EventDetail(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private EventDetail( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,68 +58,59 @@ private EventDetail( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + uri_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageViewId_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - experimentIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - experimentIds_.add(s); - break; + pageViewId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + experimentIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + experimentIds_.add(s); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - recommendationToken_ = s; - break; + recommendationToken_ = s; + break; + } + case 42: { + com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder subBuilder = null; + if (eventAttributes_ != null) { + subBuilder = eventAttributes_.toBuilder(); } - case 42: - { - com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder subBuilder = null; - if (eventAttributes_ != null) { - subBuilder = eventAttributes_.toBuilder(); - } - eventAttributes_ = - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.FeatureMap.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(eventAttributes_); - eventAttributes_ = subBuilder.buildPartial(); - } - - break; + eventAttributes_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.FeatureMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(eventAttributes_); + eventAttributes_ = subBuilder.buildPartial(); } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - referrerUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + referrerUri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -144,7 +118,8 @@ private EventDetail( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { experimentIds_ = experimentIds_.getUnmodifiableView(); @@ -153,27 +128,22 @@ private EventDetail( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.EventDetail.class, - com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder.class); + com.google.cloud.recommendationengine.v1beta1.EventDetail.class, com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** - * - * *
          * Optional. Complete url (window.location.href) of the user's current page.
          * When using the JavaScript pixel, this value is filled in automatically.
      @@ -181,7 +151,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * 
      * * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The uri. */ @java.lang.Override @@ -190,15 +159,14 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
          * Optional. Complete url (window.location.href) of the user's current page.
          * When using the JavaScript pixel, this value is filled in automatically.
      @@ -206,15 +174,16 @@ public java.lang.String getUri() {
          * 
      * * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -225,15 +194,12 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int REFERRER_URI_FIELD_NUMBER = 6; private volatile java.lang.Object referrerUri_; /** - * - * *
          * Optional. The referrer url of the current page. When using
          * the JavaScript pixel, this value is filled in automatically.
          * 
      * * string referrer_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The referrerUri. */ @java.lang.Override @@ -242,30 +208,30 @@ public java.lang.String getReferrerUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referrerUri_ = s; return s; } } /** - * - * *
          * Optional. The referrer url of the current page. When using
          * the JavaScript pixel, this value is filled in automatically.
          * 
      * * string referrer_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for referrerUri. */ @java.lang.Override - public com.google.protobuf.ByteString getReferrerUriBytes() { + public com.google.protobuf.ByteString + getReferrerUriBytes() { java.lang.Object ref = referrerUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); referrerUri_ = b; return b; } else { @@ -276,8 +242,6 @@ public com.google.protobuf.ByteString getReferrerUriBytes() { public static final int PAGE_VIEW_ID_FIELD_NUMBER = 2; private volatile java.lang.Object pageViewId_; /** - * - * *
          * Optional. A unique id of a web page view.
          * This should be kept the same for all user events triggered from the same
      @@ -289,7 +253,6 @@ public com.google.protobuf.ByteString getReferrerUriBytes() {
          * 
      * * string page_view_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageViewId. */ @java.lang.Override @@ -298,15 +261,14 @@ public java.lang.String getPageViewId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageViewId_ = s; return s; } } /** - * - * *
          * Optional. A unique id of a web page view.
          * This should be kept the same for all user events triggered from the same
      @@ -318,15 +280,16 @@ public java.lang.String getPageViewId() {
          * 
      * * string page_view_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageViewId. */ @java.lang.Override - public com.google.protobuf.ByteString getPageViewIdBytes() { + public com.google.protobuf.ByteString + getPageViewIdBytes() { java.lang.Object ref = pageViewId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageViewId_ = b; return b; } else { @@ -337,8 +300,6 @@ public com.google.protobuf.ByteString getPageViewIdBytes() { public static final int EXPERIMENT_IDS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList experimentIds_; /** - * - * *
          * Optional. A list of identifiers for the independent experiment groups
          * this user event belongs to. This is used to distinguish between user events
      @@ -347,15 +308,13 @@ public com.google.protobuf.ByteString getPageViewIdBytes() {
          * 
      * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the experimentIds. */ - public com.google.protobuf.ProtocolStringList getExperimentIdsList() { + public com.google.protobuf.ProtocolStringList + getExperimentIdsList() { return experimentIds_; } /** - * - * *
          * Optional. A list of identifiers for the independent experiment groups
          * this user event belongs to. This is used to distinguish between user events
      @@ -364,15 +323,12 @@ public com.google.protobuf.ProtocolStringList getExperimentIdsList() {
          * 
      * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of experimentIds. */ public int getExperimentIdsCount() { return experimentIds_.size(); } /** - * - * *
          * Optional. A list of identifiers for the independent experiment groups
          * this user event belongs to. This is used to distinguish between user events
      @@ -381,7 +337,6 @@ public int getExperimentIdsCount() {
          * 
      * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The experimentIds at the given index. */ @@ -389,8 +344,6 @@ public java.lang.String getExperimentIds(int index) { return experimentIds_.get(index); } /** - * - * *
          * Optional. A list of identifiers for the independent experiment groups
          * this user event belongs to. This is used to distinguish between user events
      @@ -399,19 +352,17 @@ public java.lang.String getExperimentIds(int index) {
          * 
      * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the experimentIds at the given index. */ - public com.google.protobuf.ByteString getExperimentIdsBytes(int index) { + public com.google.protobuf.ByteString + getExperimentIdsBytes(int index) { return experimentIds_.getByteString(index); } public static final int RECOMMENDATION_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object recommendationToken_; /** - * - * *
          * Optional. Recommendation token included in the recommendation prediction
          * response.
      @@ -428,7 +379,6 @@ public com.google.protobuf.ByteString getExperimentIdsBytes(int index) {
          * 
      * * string recommendation_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The recommendationToken. */ @java.lang.Override @@ -437,15 +387,14 @@ public java.lang.String getRecommendationToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recommendationToken_ = s; return s; } } /** - * - * *
          * Optional. Recommendation token included in the recommendation prediction
          * response.
      @@ -462,15 +411,16 @@ public java.lang.String getRecommendationToken() {
          * 
      * * string recommendation_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for recommendationToken. */ @java.lang.Override - public com.google.protobuf.ByteString getRecommendationTokenBytes() { + public com.google.protobuf.ByteString + getRecommendationTokenBytes() { java.lang.Object ref = recommendationToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); recommendationToken_ = b; return b; } else { @@ -481,8 +431,6 @@ public com.google.protobuf.ByteString getRecommendationTokenBytes() { public static final int EVENT_ATTRIBUTES_FIELD_NUMBER = 5; private com.google.cloud.recommendationengine.v1beta1.FeatureMap eventAttributes_; /** - * - * *
          * Optional. Extra user event features to include in the recommendation
          * model.
      @@ -492,10 +440,7 @@ public com.google.protobuf.ByteString getRecommendationTokenBytes() {
          * search, and etc.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the eventAttributes field is set. */ @java.lang.Override @@ -503,8 +448,6 @@ public boolean hasEventAttributes() { return eventAttributes_ != null; } /** - * - * *
          * Optional. Extra user event features to include in the recommendation
          * model.
      @@ -514,21 +457,14 @@ public boolean hasEventAttributes() {
          * search, and etc.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventAttributes. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.FeatureMap getEventAttributes() { - return eventAttributes_ == null - ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() - : eventAttributes_; + return eventAttributes_ == null ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() : eventAttributes_; } /** - * - * *
          * Optional. Extra user event features to include in the recommendation
          * model.
      @@ -538,18 +474,14 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap getEventAttribut
          * search, and etc.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder - getEventAttributesOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getEventAttributesOrBuilder() { return getEventAttributes(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -561,7 +493,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -607,7 +540,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, recommendationToken_); } if (eventAttributes_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEventAttributes()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getEventAttributes()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referrerUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, referrerUri_); @@ -620,22 +554,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.EventDetail)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.EventDetail other = - (com.google.cloud.recommendationengine.v1beta1.EventDetail) obj; - - if (!getUri().equals(other.getUri())) return false; - if (!getReferrerUri().equals(other.getReferrerUri())) return false; - if (!getPageViewId().equals(other.getPageViewId())) return false; - if (!getExperimentIdsList().equals(other.getExperimentIdsList())) return false; - if (!getRecommendationToken().equals(other.getRecommendationToken())) return false; + com.google.cloud.recommendationengine.v1beta1.EventDetail other = (com.google.cloud.recommendationengine.v1beta1.EventDetail) obj; + + if (!getUri() + .equals(other.getUri())) return false; + if (!getReferrerUri() + .equals(other.getReferrerUri())) return false; + if (!getPageViewId() + .equals(other.getPageViewId())) return false; + if (!getExperimentIdsList() + .equals(other.getExperimentIdsList())) return false; + if (!getRecommendationToken() + .equals(other.getRecommendationToken())) return false; if (hasEventAttributes() != other.hasEventAttributes()) return false; if (hasEventAttributes()) { - if (!getEventAttributes().equals(other.getEventAttributes())) return false; + if (!getEventAttributes() + .equals(other.getEventAttributes())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -670,127 +609,117 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.EventDetail prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.EventDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * User event details shared by all recommendation types.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.EventDetail} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.EventDetail) com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.EventDetail.class, - com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder.class); + com.google.cloud.recommendationengine.v1beta1.EventDetail.class, com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder.class); } // Construct using com.google.cloud.recommendationengine.v1beta1.EventDetail.newBuilder() @@ -798,15 +727,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -830,9 +760,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor; } @java.lang.Override @@ -851,8 +781,7 @@ public com.google.cloud.recommendationengine.v1beta1.EventDetail build() { @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.EventDetail buildPartial() { - com.google.cloud.recommendationengine.v1beta1.EventDetail result = - new com.google.cloud.recommendationengine.v1beta1.EventDetail(this); + com.google.cloud.recommendationengine.v1beta1.EventDetail result = new com.google.cloud.recommendationengine.v1beta1.EventDetail(this); int from_bitField0_ = bitField0_; result.uri_ = uri_; result.referrerUri_ = referrerUri_; @@ -876,39 +805,38 @@ public com.google.cloud.recommendationengine.v1beta1.EventDetail buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.EventDetail) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.EventDetail) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.EventDetail)other); } else { super.mergeFrom(other); return this; @@ -916,8 +844,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.EventDetail other) { - if (other == com.google.cloud.recommendationengine.v1beta1.EventDetail.getDefaultInstance()) - return this; + if (other == com.google.cloud.recommendationengine.v1beta1.EventDetail.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); @@ -966,8 +893,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.EventDetail) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.EventDetail) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -976,13 +902,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object uri_ = ""; /** - * - * *
            * Optional. Complete url (window.location.href) of the user's current page.
            * When using the JavaScript pixel, this value is filled in automatically.
      @@ -990,13 +913,13 @@ public Builder mergeFrom(
            * 
      * * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -1005,8 +928,6 @@ public java.lang.String getUri() { } } /** - * - * *
            * Optional. Complete url (window.location.href) of the user's current page.
            * When using the JavaScript pixel, this value is filled in automatically.
      @@ -1014,14 +935,15 @@ public java.lang.String getUri() {
            * 
      * * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -1029,8 +951,6 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
            * Optional. Complete url (window.location.href) of the user's current page.
            * When using the JavaScript pixel, this value is filled in automatically.
      @@ -1038,22 +958,20 @@ public com.google.protobuf.ByteString getUriBytes() {
            * 
      * * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Complete url (window.location.href) of the user's current page.
            * When using the JavaScript pixel, this value is filled in automatically.
      @@ -1061,18 +979,15 @@ public Builder setUri(java.lang.String value) {
            * 
      * * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
            * Optional. Complete url (window.location.href) of the user's current page.
            * When using the JavaScript pixel, this value is filled in automatically.
      @@ -1080,16 +995,16 @@ public Builder clearUri() {
            * 
      * * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; @@ -1097,21 +1012,19 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object referrerUri_ = ""; /** - * - * *
            * Optional. The referrer url of the current page. When using
            * the JavaScript pixel, this value is filled in automatically.
            * 
      * * string referrer_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The referrerUri. */ public java.lang.String getReferrerUri() { java.lang.Object ref = referrerUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referrerUri_ = s; return s; @@ -1120,22 +1033,21 @@ public java.lang.String getReferrerUri() { } } /** - * - * *
            * Optional. The referrer url of the current page. When using
            * the JavaScript pixel, this value is filled in automatically.
            * 
      * * string referrer_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for referrerUri. */ - public com.google.protobuf.ByteString getReferrerUriBytes() { + public com.google.protobuf.ByteString + getReferrerUriBytes() { java.lang.Object ref = referrerUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); referrerUri_ = b; return b; } else { @@ -1143,64 +1055,57 @@ public com.google.protobuf.ByteString getReferrerUriBytes() { } } /** - * - * *
            * Optional. The referrer url of the current page. When using
            * the JavaScript pixel, this value is filled in automatically.
            * 
      * * string referrer_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The referrerUri to set. * @return This builder for chaining. */ - public Builder setReferrerUri(java.lang.String value) { + public Builder setReferrerUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + referrerUri_ = value; onChanged(); return this; } /** - * - * *
            * Optional. The referrer url of the current page. When using
            * the JavaScript pixel, this value is filled in automatically.
            * 
      * * string referrer_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearReferrerUri() { - + referrerUri_ = getDefaultInstance().getReferrerUri(); onChanged(); return this; } /** - * - * *
            * Optional. The referrer url of the current page. When using
            * the JavaScript pixel, this value is filled in automatically.
            * 
      * * string referrer_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for referrerUri to set. * @return This builder for chaining. */ - public Builder setReferrerUriBytes(com.google.protobuf.ByteString value) { + public Builder setReferrerUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + referrerUri_ = value; onChanged(); return this; @@ -1208,8 +1113,6 @@ public Builder setReferrerUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageViewId_ = ""; /** - * - * *
            * Optional. A unique id of a web page view.
            * This should be kept the same for all user events triggered from the same
      @@ -1221,13 +1124,13 @@ public Builder setReferrerUriBytes(com.google.protobuf.ByteString value) {
            * 
      * * string page_view_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageViewId. */ public java.lang.String getPageViewId() { java.lang.Object ref = pageViewId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageViewId_ = s; return s; @@ -1236,8 +1139,6 @@ public java.lang.String getPageViewId() { } } /** - * - * *
            * Optional. A unique id of a web page view.
            * This should be kept the same for all user events triggered from the same
      @@ -1249,14 +1150,15 @@ public java.lang.String getPageViewId() {
            * 
      * * string page_view_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageViewId. */ - public com.google.protobuf.ByteString getPageViewIdBytes() { + public com.google.protobuf.ByteString + getPageViewIdBytes() { java.lang.Object ref = pageViewId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageViewId_ = b; return b; } else { @@ -1264,8 +1166,6 @@ public com.google.protobuf.ByteString getPageViewIdBytes() { } } /** - * - * *
            * Optional. A unique id of a web page view.
            * This should be kept the same for all user events triggered from the same
      @@ -1277,22 +1177,20 @@ public com.google.protobuf.ByteString getPageViewIdBytes() {
            * 
      * * string page_view_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageViewId to set. * @return This builder for chaining. */ - public Builder setPageViewId(java.lang.String value) { + public Builder setPageViewId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageViewId_ = value; onChanged(); return this; } /** - * - * *
            * Optional. A unique id of a web page view.
            * This should be kept the same for all user events triggered from the same
      @@ -1304,18 +1202,15 @@ public Builder setPageViewId(java.lang.String value) {
            * 
      * * string page_view_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageViewId() { - + pageViewId_ = getDefaultInstance().getPageViewId(); onChanged(); return this; } /** - * - * *
            * Optional. A unique id of a web page view.
            * This should be kept the same for all user events triggered from the same
      @@ -1327,33 +1222,29 @@ public Builder clearPageViewId() {
            * 
      * * string page_view_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageViewId to set. * @return This builder for chaining. */ - public Builder setPageViewIdBytes(com.google.protobuf.ByteString value) { + public Builder setPageViewIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageViewId_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList experimentIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList experimentIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExperimentIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { experimentIds_ = new com.google.protobuf.LazyStringArrayList(experimentIds_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
            * Optional. A list of identifiers for the independent experiment groups
            * this user event belongs to. This is used to distinguish between user events
      @@ -1362,15 +1253,13 @@ private void ensureExperimentIdsIsMutable() {
            * 
      * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the experimentIds. */ - public com.google.protobuf.ProtocolStringList getExperimentIdsList() { + public com.google.protobuf.ProtocolStringList + getExperimentIdsList() { return experimentIds_.getUnmodifiableView(); } /** - * - * *
            * Optional. A list of identifiers for the independent experiment groups
            * this user event belongs to. This is used to distinguish between user events
      @@ -1379,15 +1268,12 @@ public com.google.protobuf.ProtocolStringList getExperimentIdsList() {
            * 
      * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of experimentIds. */ public int getExperimentIdsCount() { return experimentIds_.size(); } /** - * - * *
            * Optional. A list of identifiers for the independent experiment groups
            * this user event belongs to. This is used to distinguish between user events
      @@ -1396,7 +1282,6 @@ public int getExperimentIdsCount() {
            * 
      * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The experimentIds at the given index. */ @@ -1404,8 +1289,6 @@ public java.lang.String getExperimentIds(int index) { return experimentIds_.get(index); } /** - * - * *
            * Optional. A list of identifiers for the independent experiment groups
            * this user event belongs to. This is used to distinguish between user events
      @@ -1414,16 +1297,14 @@ public java.lang.String getExperimentIds(int index) {
            * 
      * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the experimentIds at the given index. */ - public com.google.protobuf.ByteString getExperimentIdsBytes(int index) { + public com.google.protobuf.ByteString + getExperimentIdsBytes(int index) { return experimentIds_.getByteString(index); } /** - * - * *
            * Optional. A list of identifiers for the independent experiment groups
            * this user event belongs to. This is used to distinguish between user events
      @@ -1432,23 +1313,21 @@ public com.google.protobuf.ByteString getExperimentIdsBytes(int index) {
            * 
      * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The experimentIds to set. * @return This builder for chaining. */ - public Builder setExperimentIds(int index, java.lang.String value) { + public Builder setExperimentIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureExperimentIdsIsMutable(); + throw new NullPointerException(); + } + ensureExperimentIdsIsMutable(); experimentIds_.set(index, value); onChanged(); return this; } /** - * - * *
            * Optional. A list of identifiers for the independent experiment groups
            * this user event belongs to. This is used to distinguish between user events
      @@ -1457,22 +1336,20 @@ public Builder setExperimentIds(int index, java.lang.String value) {
            * 
      * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The experimentIds to add. * @return This builder for chaining. */ - public Builder addExperimentIds(java.lang.String value) { + public Builder addExperimentIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureExperimentIdsIsMutable(); + throw new NullPointerException(); + } + ensureExperimentIdsIsMutable(); experimentIds_.add(value); onChanged(); return this; } /** - * - * *
            * Optional. A list of identifiers for the independent experiment groups
            * this user event belongs to. This is used to distinguish between user events
      @@ -1481,19 +1358,18 @@ public Builder addExperimentIds(java.lang.String value) {
            * 
      * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The experimentIds to add. * @return This builder for chaining. */ - public Builder addAllExperimentIds(java.lang.Iterable values) { + public Builder addAllExperimentIds( + java.lang.Iterable values) { ensureExperimentIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, experimentIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, experimentIds_); onChanged(); return this; } /** - * - * *
            * Optional. A list of identifiers for the independent experiment groups
            * this user event belongs to. This is used to distinguish between user events
      @@ -1502,7 +1378,6 @@ public Builder addAllExperimentIds(java.lang.Iterable values)
            * 
      * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearExperimentIds() { @@ -1512,8 +1387,6 @@ public Builder clearExperimentIds() { return this; } /** - * - * *
            * Optional. A list of identifiers for the independent experiment groups
            * this user event belongs to. This is used to distinguish between user events
      @@ -1522,15 +1395,15 @@ public Builder clearExperimentIds() {
            * 
      * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the experimentIds to add. * @return This builder for chaining. */ - public Builder addExperimentIdsBytes(com.google.protobuf.ByteString value) { + public Builder addExperimentIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureExperimentIdsIsMutable(); experimentIds_.add(value); onChanged(); @@ -1539,8 +1412,6 @@ public Builder addExperimentIdsBytes(com.google.protobuf.ByteString value) { private java.lang.Object recommendationToken_ = ""; /** - * - * *
            * Optional. Recommendation token included in the recommendation prediction
            * response.
      @@ -1557,13 +1428,13 @@ public Builder addExperimentIdsBytes(com.google.protobuf.ByteString value) {
            * 
      * * string recommendation_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The recommendationToken. */ public java.lang.String getRecommendationToken() { java.lang.Object ref = recommendationToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recommendationToken_ = s; return s; @@ -1572,8 +1443,6 @@ public java.lang.String getRecommendationToken() { } } /** - * - * *
            * Optional. Recommendation token included in the recommendation prediction
            * response.
      @@ -1590,14 +1459,15 @@ public java.lang.String getRecommendationToken() {
            * 
      * * string recommendation_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for recommendationToken. */ - public com.google.protobuf.ByteString getRecommendationTokenBytes() { + public com.google.protobuf.ByteString + getRecommendationTokenBytes() { java.lang.Object ref = recommendationToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); recommendationToken_ = b; return b; } else { @@ -1605,8 +1475,6 @@ public com.google.protobuf.ByteString getRecommendationTokenBytes() { } } /** - * - * *
            * Optional. Recommendation token included in the recommendation prediction
            * response.
      @@ -1623,22 +1491,20 @@ public com.google.protobuf.ByteString getRecommendationTokenBytes() {
            * 
      * * string recommendation_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The recommendationToken to set. * @return This builder for chaining. */ - public Builder setRecommendationToken(java.lang.String value) { + public Builder setRecommendationToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + recommendationToken_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Recommendation token included in the recommendation prediction
            * response.
      @@ -1655,18 +1521,15 @@ public Builder setRecommendationToken(java.lang.String value) {
            * 
      * * string recommendation_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRecommendationToken() { - + recommendationToken_ = getDefaultInstance().getRecommendationToken(); onChanged(); return this; } /** - * - * *
            * Optional. Recommendation token included in the recommendation prediction
            * response.
      @@ -1683,16 +1546,16 @@ public Builder clearRecommendationToken() {
            * 
      * * string recommendation_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for recommendationToken to set. * @return This builder for chaining. */ - public Builder setRecommendationTokenBytes(com.google.protobuf.ByteString value) { + public Builder setRecommendationTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + recommendationToken_ = value; onChanged(); return this; @@ -1700,13 +1563,8 @@ public Builder setRecommendationTokenBytes(com.google.protobuf.ByteString value) private com.google.cloud.recommendationengine.v1beta1.FeatureMap eventAttributes_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.FeatureMap, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, - com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> - eventAttributesBuilder_; + com.google.cloud.recommendationengine.v1beta1.FeatureMap, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> eventAttributesBuilder_; /** - * - * *
            * Optional. Extra user event features to include in the recommendation
            * model.
      @@ -1716,18 +1574,13 @@ public Builder setRecommendationTokenBytes(com.google.protobuf.ByteString value)
            * search, and etc.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the eventAttributes field is set. */ public boolean hasEventAttributes() { return eventAttributesBuilder_ != null || eventAttributes_ != null; } /** - * - * *
            * Optional. Extra user event features to include in the recommendation
            * model.
      @@ -1737,24 +1590,17 @@ public boolean hasEventAttributes() {
            * search, and etc.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventAttributes. */ public com.google.cloud.recommendationengine.v1beta1.FeatureMap getEventAttributes() { if (eventAttributesBuilder_ == null) { - return eventAttributes_ == null - ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() - : eventAttributes_; + return eventAttributes_ == null ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() : eventAttributes_; } else { return eventAttributesBuilder_.getMessage(); } } /** - * - * *
            * Optional. Extra user event features to include in the recommendation
            * model.
      @@ -1764,12 +1610,9 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap getEventAttribut
            * search, and etc.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setEventAttributes( - com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { + public Builder setEventAttributes(com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { if (eventAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1783,8 +1626,6 @@ public Builder setEventAttributes( return this; } /** - * - * *
            * Optional. Extra user event features to include in the recommendation
            * model.
      @@ -1794,9 +1635,7 @@ public Builder setEventAttributes(
            * search, and etc.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEventAttributes( com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder builderForValue) { @@ -1810,8 +1649,6 @@ public Builder setEventAttributes( return this; } /** - * - * *
            * Optional. Extra user event features to include in the recommendation
            * model.
      @@ -1821,18 +1658,13 @@ public Builder setEventAttributes(
            * search, and etc.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeEventAttributes( - com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { + public Builder mergeEventAttributes(com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { if (eventAttributesBuilder_ == null) { if (eventAttributes_ != null) { eventAttributes_ = - com.google.cloud.recommendationengine.v1beta1.FeatureMap.newBuilder(eventAttributes_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.recommendationengine.v1beta1.FeatureMap.newBuilder(eventAttributes_).mergeFrom(value).buildPartial(); } else { eventAttributes_ = value; } @@ -1844,8 +1676,6 @@ public Builder mergeEventAttributes( return this; } /** - * - * *
            * Optional. Extra user event features to include in the recommendation
            * model.
      @@ -1855,9 +1685,7 @@ public Builder mergeEventAttributes(
            * search, and etc.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearEventAttributes() { if (eventAttributesBuilder_ == null) { @@ -1871,8 +1699,6 @@ public Builder clearEventAttributes() { return this; } /** - * - * *
            * Optional. Extra user event features to include in the recommendation
            * model.
      @@ -1882,19 +1708,14 @@ public Builder clearEventAttributes() {
            * search, and etc.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder - getEventAttributesBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder getEventAttributesBuilder() { + onChanged(); return getEventAttributesFieldBuilder().getBuilder(); } /** - * - * *
            * Optional. Extra user event features to include in the recommendation
            * model.
      @@ -1904,23 +1725,17 @@ public Builder clearEventAttributes() {
            * search, and etc.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder - getEventAttributesOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getEventAttributesOrBuilder() { if (eventAttributesBuilder_ != null) { return eventAttributesBuilder_.getMessageOrBuilder(); } else { - return eventAttributes_ == null - ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() - : eventAttributes_; + return eventAttributes_ == null ? + com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() : eventAttributes_; } } /** - * - * *
            * Optional. Extra user event features to include in the recommendation
            * model.
      @@ -1930,29 +1745,24 @@ public Builder clearEventAttributes() {
            * search, and etc.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.FeatureMap, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, - com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> + com.google.cloud.recommendationengine.v1beta1.FeatureMap, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> getEventAttributesFieldBuilder() { if (eventAttributesBuilder_ == null) { - eventAttributesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.FeatureMap, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, - com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder>( - getEventAttributes(), getParentForChildren(), isClean()); + eventAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.FeatureMap, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder>( + getEventAttributes(), + getParentForChildren(), + isClean()); eventAttributes_ = null; } return eventAttributesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1962,12 +1772,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.EventDetail) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.EventDetail) private static final com.google.cloud.recommendationengine.v1beta1.EventDetail DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.EventDetail(); } @@ -1976,16 +1786,16 @@ public static com.google.cloud.recommendationengine.v1beta1.EventDetail getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventDetail(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventDetail(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2000,4 +1810,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.recommendationengine.v1beta1.EventDetail getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetailOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetailOrBuilder.java similarity index 83% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetailOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetailOrBuilder.java index 83f965f8..efa01dd3 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetailOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetailOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; -public interface EventDetailOrBuilder - extends +public interface EventDetailOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.EventDetail) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Optional. Complete url (window.location.href) of the user's current page.
          * When using the JavaScript pixel, this value is filled in automatically.
      @@ -33,13 +15,10 @@ public interface EventDetailOrBuilder
          * 
      * * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
          * Optional. Complete url (window.location.href) of the user's current page.
          * When using the JavaScript pixel, this value is filled in automatically.
      @@ -47,41 +26,34 @@ public interface EventDetailOrBuilder
          * 
      * * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
          * Optional. The referrer url of the current page. When using
          * the JavaScript pixel, this value is filled in automatically.
          * 
      * * string referrer_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The referrerUri. */ java.lang.String getReferrerUri(); /** - * - * *
          * Optional. The referrer url of the current page. When using
          * the JavaScript pixel, this value is filled in automatically.
          * 
      * * string referrer_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for referrerUri. */ - com.google.protobuf.ByteString getReferrerUriBytes(); + com.google.protobuf.ByteString + getReferrerUriBytes(); /** - * - * *
          * Optional. A unique id of a web page view.
          * This should be kept the same for all user events triggered from the same
      @@ -93,13 +65,10 @@ public interface EventDetailOrBuilder
          * 
      * * string page_view_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageViewId. */ java.lang.String getPageViewId(); /** - * - * *
          * Optional. A unique id of a web page view.
          * This should be kept the same for all user events triggered from the same
      @@ -111,14 +80,12 @@ public interface EventDetailOrBuilder
          * 
      * * string page_view_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageViewId. */ - com.google.protobuf.ByteString getPageViewIdBytes(); + com.google.protobuf.ByteString + getPageViewIdBytes(); /** - * - * *
          * Optional. A list of identifiers for the independent experiment groups
          * this user event belongs to. This is used to distinguish between user events
      @@ -127,13 +94,11 @@ public interface EventDetailOrBuilder
          * 
      * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the experimentIds. */ - java.util.List getExperimentIdsList(); + java.util.List + getExperimentIdsList(); /** - * - * *
          * Optional. A list of identifiers for the independent experiment groups
          * this user event belongs to. This is used to distinguish between user events
      @@ -142,13 +107,10 @@ public interface EventDetailOrBuilder
          * 
      * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of experimentIds. */ int getExperimentIdsCount(); /** - * - * *
          * Optional. A list of identifiers for the independent experiment groups
          * this user event belongs to. This is used to distinguish between user events
      @@ -157,14 +119,11 @@ public interface EventDetailOrBuilder
          * 
      * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The experimentIds at the given index. */ java.lang.String getExperimentIds(int index); /** - * - * *
          * Optional. A list of identifiers for the independent experiment groups
          * this user event belongs to. This is used to distinguish between user events
      @@ -173,15 +132,13 @@ public interface EventDetailOrBuilder
          * 
      * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the experimentIds at the given index. */ - com.google.protobuf.ByteString getExperimentIdsBytes(int index); + com.google.protobuf.ByteString + getExperimentIdsBytes(int index); /** - * - * *
          * Optional. Recommendation token included in the recommendation prediction
          * response.
      @@ -198,13 +155,10 @@ public interface EventDetailOrBuilder
          * 
      * * string recommendation_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The recommendationToken. */ java.lang.String getRecommendationToken(); /** - * - * *
          * Optional. Recommendation token included in the recommendation prediction
          * response.
      @@ -221,14 +175,12 @@ public interface EventDetailOrBuilder
          * 
      * * string recommendation_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for recommendationToken. */ - com.google.protobuf.ByteString getRecommendationTokenBytes(); + com.google.protobuf.ByteString + getRecommendationTokenBytes(); /** - * - * *
          * Optional. Extra user event features to include in the recommendation
          * model.
      @@ -238,16 +190,11 @@ public interface EventDetailOrBuilder
          * search, and etc.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the eventAttributes field is set. */ boolean hasEventAttributes(); /** - * - * *
          * Optional. Extra user event features to include in the recommendation
          * model.
      @@ -257,16 +204,11 @@ public interface EventDetailOrBuilder
          * search, and etc.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventAttributes. */ com.google.cloud.recommendationengine.v1beta1.FeatureMap getEventAttributes(); /** - * - * *
          * Optional. Extra user event features to include in the recommendation
          * model.
      @@ -276,9 +218,7 @@ public interface EventDetailOrBuilder
          * search, and etc.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getEventAttributesOrBuilder(); } diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventStoreName.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventStoreName.java similarity index 100% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventStoreName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventStoreName.java diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMap.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMap.java similarity index 62% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMap.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMap.java index ec777599..da78ca19 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMap.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMap.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/common.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * FeatureMap represents extra features that customers want to include in the
        * recommendation model for catalogs/user events as categorical/numerical
      @@ -29,29 +12,30 @@
        *
        * Protobuf type {@code google.cloud.recommendationengine.v1beta1.FeatureMap}
        */
      -public final class FeatureMap extends com.google.protobuf.GeneratedMessageV3
      -    implements
      +public final class FeatureMap extends
      +    com.google.protobuf.GeneratedMessageV3 implements
           // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.FeatureMap)
           FeatureMapOrBuilder {
      -  private static final long serialVersionUID = 0L;
      +private static final long serialVersionUID = 0L;
         // Use FeatureMap.newBuilder() to construct.
         private FeatureMap(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
      -
      -  private FeatureMap() {}
      +  private FeatureMap() {
      +  }
       
         @java.lang.Override
         @SuppressWarnings({"unused"})
      -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      +  protected java.lang.Object newInstance(
      +      UnusedPrivateParameter unused) {
           return new FeatureMap();
         }
       
         @java.lang.Override
      -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      +  public final com.google.protobuf.UnknownFieldSet
      +  getUnknownFields() {
           return this.unknownFields;
         }
      -
         private FeatureMap(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      @@ -71,53 +55,39 @@ private FeatureMap(
                 case 0:
                   done = true;
                   break;
      -          case 10:
      -            {
      -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
      -                categoricalFeatures_ =
      -                    com.google.protobuf.MapField.newMapField(
      -                        CategoricalFeaturesDefaultEntryHolder.defaultEntry);
      -                mutable_bitField0_ |= 0x00000001;
      -              }
      -              com.google.protobuf.MapEntry<
      -                      java.lang.String,
      -                      com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList>
      -                  categoricalFeatures__ =
      -                      input.readMessage(
      -                          CategoricalFeaturesDefaultEntryHolder.defaultEntry.getParserForType(),
      -                          extensionRegistry);
      -              categoricalFeatures_
      -                  .getMutableMap()
      -                  .put(categoricalFeatures__.getKey(), categoricalFeatures__.getValue());
      -              break;
      +          case 10: {
      +            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
      +              categoricalFeatures_ = com.google.protobuf.MapField.newMapField(
      +                  CategoricalFeaturesDefaultEntryHolder.defaultEntry);
      +              mutable_bitField0_ |= 0x00000001;
                   }
      -          case 18:
      -            {
      -              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
      -                numericalFeatures_ =
      -                    com.google.protobuf.MapField.newMapField(
      -                        NumericalFeaturesDefaultEntryHolder.defaultEntry);
      -                mutable_bitField0_ |= 0x00000002;
      -              }
      -              com.google.protobuf.MapEntry<
      -                      java.lang.String,
      -                      com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList>
      -                  numericalFeatures__ =
      -                      input.readMessage(
      -                          NumericalFeaturesDefaultEntryHolder.defaultEntry.getParserForType(),
      -                          extensionRegistry);
      -              numericalFeatures_
      -                  .getMutableMap()
      -                  .put(numericalFeatures__.getKey(), numericalFeatures__.getValue());
      -              break;
      +            com.google.protobuf.MapEntry
      +            categoricalFeatures__ = input.readMessage(
      +                CategoricalFeaturesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
      +            categoricalFeatures_.getMutableMap().put(
      +                categoricalFeatures__.getKey(), categoricalFeatures__.getValue());
      +            break;
      +          }
      +          case 18: {
      +            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
      +              numericalFeatures_ = com.google.protobuf.MapField.newMapField(
      +                  NumericalFeaturesDefaultEntryHolder.defaultEntry);
      +              mutable_bitField0_ |= 0x00000002;
                   }
      -          default:
      -            {
      -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
      -                done = true;
      -              }
      -              break;
      +            com.google.protobuf.MapEntry
      +            numericalFeatures__ = input.readMessage(
      +                NumericalFeaturesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
      +            numericalFeatures_.getMutableMap().put(
      +                numericalFeatures__.getKey(), numericalFeatures__.getValue());
      +            break;
      +          }
      +          default: {
      +            if (!parseUnknownField(
      +                input, unknownFields, extensionRegistry, tag)) {
      +              done = true;
                   }
      +            break;
      +          }
               }
             }
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      @@ -125,131 +95,117 @@ private FeatureMap(
           } catch (com.google.protobuf.UninitializedMessageException e) {
             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
           } catch (java.io.IOException e) {
      -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      +      throw new com.google.protobuf.InvalidProtocolBufferException(
      +          e).setUnfinishedMessage(this);
           } finally {
             this.unknownFields = unknownFields.build();
             makeExtensionsImmutable();
           }
         }
      -
      -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -    return com.google.cloud.recommendationengine.v1beta1.Common
      -        .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor;
      +  public static final com.google.protobuf.Descriptors.Descriptor
      +      getDescriptor() {
      +    return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor;
         }
       
         @SuppressWarnings({"rawtypes"})
         @java.lang.Override
      -  protected com.google.protobuf.MapField internalGetMapField(int number) {
      +  protected com.google.protobuf.MapField internalGetMapField(
      +      int number) {
           switch (number) {
             case 1:
               return internalGetCategoricalFeatures();
             case 2:
               return internalGetNumericalFeatures();
             default:
      -        throw new RuntimeException("Invalid map field number: " + number);
      +        throw new RuntimeException(
      +            "Invalid map field number: " + number);
           }
         }
      -
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
      -    return com.google.cloud.recommendationengine.v1beta1.Common
      -        .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_fieldAccessorTable
      +    return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
      -            com.google.cloud.recommendationengine.v1beta1.FeatureMap.class,
      -            com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder.class);
      +            com.google.cloud.recommendationengine.v1beta1.FeatureMap.class, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder.class);
         }
       
      -  public interface StringListOrBuilder
      -      extends
      +  public interface StringListOrBuilder extends
             // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.FeatureMap.StringList)
             com.google.protobuf.MessageOrBuilder {
       
           /**
      -     *
      -     *
            * 
            * String feature value with a length limit of 128 bytes.
            * 
      * * repeated string value = 1; - * * @return A list containing the value. */ - java.util.List getValueList(); + java.util.List + getValueList(); /** - * - * *
            * String feature value with a length limit of 128 bytes.
            * 
      * * repeated string value = 1; - * * @return The count of value. */ int getValueCount(); /** - * - * *
            * String feature value with a length limit of 128 bytes.
            * 
      * * repeated string value = 1; - * * @param index The index of the element to return. * @return The value at the given index. */ java.lang.String getValue(int index); /** - * - * *
            * String feature value with a length limit of 128 bytes.
            * 
      * * repeated string value = 1; - * * @param index The index of the value to return. * @return The bytes of the value at the given index. */ - com.google.protobuf.ByteString getValueBytes(int index); + com.google.protobuf.ByteString + getValueBytes(int index); } /** - * - * *
          * A list of string features.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.FeatureMap.StringList} */ - public static final class StringList extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class StringList extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.FeatureMap.StringList) StringListOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StringList.newBuilder() to construct. private StringList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StringList() { value_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StringList(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StringList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -269,23 +225,22 @@ private StringList( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - value_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - value_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + value_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + value_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -293,7 +248,8 @@ private StringList( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { value_ = value_.getUnmodifiableView(); @@ -302,61 +258,50 @@ private StringList( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Common - .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Common - .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.class, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.Builder.class); + com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.class, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList value_; /** - * - * *
            * String feature value with a length limit of 128 bytes.
            * 
      * * repeated string value = 1; - * * @return A list containing the value. */ - public com.google.protobuf.ProtocolStringList getValueList() { + public com.google.protobuf.ProtocolStringList + getValueList() { return value_; } /** - * - * *
            * String feature value with a length limit of 128 bytes.
            * 
      * * repeated string value = 1; - * * @return The count of value. */ public int getValueCount() { return value_.size(); } /** - * - * *
            * String feature value with a length limit of 128 bytes.
            * 
      * * repeated string value = 1; - * * @param index The index of the element to return. * @return The value at the given index. */ @@ -364,23 +309,20 @@ public java.lang.String getValue(int index) { return value_.get(index); } /** - * - * *
            * String feature value with a length limit of 128 bytes.
            * 
      * * repeated string value = 1; - * * @param index The index of the value to return. * @return The bytes of the value at the given index. */ - public com.google.protobuf.ByteString getValueBytes(int index) { + public com.google.protobuf.ByteString + getValueBytes(int index) { return value_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -392,7 +334,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < value_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_.getRaw(i)); } @@ -421,15 +364,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList other = - (com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList) obj; + com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList other = (com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList) obj; - if (!getValueList().equals(other.getValueList())) return false; + if (!getValueList() + .equals(other.getValueList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -451,95 +394,87 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -549,49 +484,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
            * A list of string features.
            * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.FeatureMap.StringList} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.FeatureMap.StringList) com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Common - .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Common - .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.class, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.Builder.class); + com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.class, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -601,16 +531,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Common - .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.getDefaultInstance(); } @java.lang.Override @@ -624,8 +552,7 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList build @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList buildPartial() { - com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList result = - new com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList(this); + com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList result = new com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { value_ = value_.getUnmodifiableView(); @@ -640,53 +567,46 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList other) { + if (other == com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.getDefaultInstance()) return this; if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; @@ -716,9 +636,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -727,55 +645,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList value_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList value_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { value_ = new com.google.protobuf.LazyStringArrayList(value_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
              * String feature value with a length limit of 128 bytes.
              * 
      * * repeated string value = 1; - * * @return A list containing the value. */ - public com.google.protobuf.ProtocolStringList getValueList() { + public com.google.protobuf.ProtocolStringList + getValueList() { return value_.getUnmodifiableView(); } /** - * - * *
              * String feature value with a length limit of 128 bytes.
              * 
      * * repeated string value = 1; - * * @return The count of value. */ public int getValueCount() { return value_.size(); } /** - * - * *
              * String feature value with a length limit of 128 bytes.
              * 
      * * repeated string value = 1; - * * @param index The index of the element to return. * @return The value at the given index. */ @@ -783,90 +690,80 @@ public java.lang.String getValue(int index) { return value_.get(index); } /** - * - * *
              * String feature value with a length limit of 128 bytes.
              * 
      * * repeated string value = 1; - * * @param index The index of the value to return. * @return The bytes of the value at the given index. */ - public com.google.protobuf.ByteString getValueBytes(int index) { + public com.google.protobuf.ByteString + getValueBytes(int index) { return value_.getByteString(index); } /** - * - * *
              * String feature value with a length limit of 128 bytes.
              * 
      * * repeated string value = 1; - * * @param index The index to set the value at. * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(int index, java.lang.String value) { + public Builder setValue( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValueIsMutable(); + throw new NullPointerException(); + } + ensureValueIsMutable(); value_.set(index, value); onChanged(); return this; } /** - * - * *
              * String feature value with a length limit of 128 bytes.
              * 
      * * repeated string value = 1; - * * @param value The value to add. * @return This builder for chaining. */ - public Builder addValue(java.lang.String value) { + public Builder addValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValueIsMutable(); + throw new NullPointerException(); + } + ensureValueIsMutable(); value_.add(value); onChanged(); return this; } /** - * - * *
              * String feature value with a length limit of 128 bytes.
              * 
      * * repeated string value = 1; - * * @param values The value to add. * @return This builder for chaining. */ - public Builder addAllValue(java.lang.Iterable values) { + public Builder addAllValue( + java.lang.Iterable values) { ensureValueIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, value_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, value_); onChanged(); return this; } /** - * - * *
              * String feature value with a length limit of 128 bytes.
              * 
      * * repeated string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -876,28 +773,25 @@ public Builder clearValue() { return this; } /** - * - * *
              * String feature value with a length limit of 128 bytes.
              * 
      * * repeated string value = 1; - * * @param value The bytes of the value to add. * @return This builder for chaining. */ - public Builder addValueBytes(com.google.protobuf.ByteString value) { + public Builder addValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureValueIsMutable(); value_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -910,32 +804,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.FeatureMap.StringList) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.FeatureMap.StringList) - private static final com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList(); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StringList(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StringList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StringList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -947,89 +839,77 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface FloatListOrBuilder - extends + public interface FloatListOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) com.google.protobuf.MessageOrBuilder { /** - * - * *
            * Float feature value.
            * 
      * * repeated float value = 1; - * * @return A list containing the value. */ java.util.List getValueList(); /** - * - * *
            * Float feature value.
            * 
      * * repeated float value = 1; - * * @return The count of value. */ int getValueCount(); /** - * - * *
            * Float feature value.
            * 
      * * repeated float value = 1; - * * @param index The index of the element to return. * @return The value at the given index. */ float getValue(int index); } /** - * - * *
          * A list of float features.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList} */ - public static final class FloatList extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class FloatList extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) FloatListOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FloatList.newBuilder() to construct. private FloatList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FloatList() { value_ = emptyFloatList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FloatList(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private FloatList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1049,36 +929,34 @@ private FloatList( case 0: done = true; break; - case 13: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - value_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - value_.addFloat(input.readFloat()); - break; + case 13: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + value_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; + } + value_.addFloat(input.readFloat()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + value_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; } - case 10: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - value_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - value_.addFloat(input.readFloat()); - } - input.popLimit(limit); - break; + while (input.getBytesUntilLimit() > 0) { + value_.addFloat(input.readFloat()); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + input.popLimit(limit); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1086,7 +964,8 @@ private FloatList( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { value_.makeImmutable(); // C @@ -1095,73 +974,60 @@ private FloatList( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Common - .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Common - .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.class, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.Builder.class); + com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.class, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private com.google.protobuf.Internal.FloatList value_; /** - * - * *
            * Float feature value.
            * 
      * * repeated float value = 1; - * * @return A list containing the value. */ @java.lang.Override - public java.util.List getValueList() { + public java.util.List + getValueList() { return value_; } /** - * - * *
            * Float feature value.
            * 
      * * repeated float value = 1; - * * @return The count of value. */ public int getValueCount() { return value_.size(); } /** - * - * *
            * Float feature value.
            * 
      * * repeated float value = 1; - * * @param index The index of the element to return. * @return The value at the given index. */ public float getValue(int index) { return value_.getFloat(index); } - private int valueMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1173,7 +1039,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (getValueList().size() > 0) { output.writeUInt32NoTag(10); @@ -1197,7 +1064,8 @@ public int getSerializedSize() { size += dataSize; if (!getValueList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } valueMemoizedSerializedSize = dataSize; } @@ -1209,15 +1077,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList other = - (com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) obj; + com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList other = (com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) obj; - if (!getValueList().equals(other.getValueList())) return false; + if (!getValueList() + .equals(other.getValueList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1239,95 +1107,87 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1337,49 +1197,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
            * A list of float features.
            * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Common - .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Common - .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.class, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.Builder.class); + com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.class, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1389,16 +1244,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Common - .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.getDefaultInstance(); } @java.lang.Override @@ -1412,8 +1265,7 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList build( @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList buildPartial() { - com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList result = - new com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList(this); + com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList result = new com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { value_.makeImmutable(); @@ -1428,53 +1280,46 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList other) { + if (other == com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.getDefaultInstance()) return this; if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; @@ -1504,9 +1349,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1515,56 +1358,45 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.Internal.FloatList value_ = emptyFloatList(); - private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { value_ = mutableCopy(value_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
              * Float feature value.
              * 
      * * repeated float value = 1; - * * @return A list containing the value. */ - public java.util.List getValueList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(value_) - : value_; + public java.util.List + getValueList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(value_) : value_; } /** - * - * *
              * Float feature value.
              * 
      * * repeated float value = 1; - * * @return The count of value. */ public int getValueCount() { return value_.size(); } /** - * - * *
              * Float feature value.
              * 
      * * repeated float value = 1; - * * @param index The index of the element to return. * @return The value at the given index. */ @@ -1572,33 +1404,28 @@ public float getValue(int index) { return value_.getFloat(index); } /** - * - * *
              * Float feature value.
              * 
      * * repeated float value = 1; - * * @param index The index to set the value at. * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(int index, float value) { + public Builder setValue( + int index, float value) { ensureValueIsMutable(); value_.setFloat(index, value); onChanged(); return this; } /** - * - * *
              * Float feature value.
              * 
      * * repeated float value = 1; - * * @param value The value to add. * @return This builder for chaining. */ @@ -1609,32 +1436,28 @@ public Builder addValue(float value) { return this; } /** - * - * *
              * Float feature value.
              * 
      * * repeated float value = 1; - * * @param values The value to add. * @return This builder for chaining. */ - public Builder addAllValue(java.lang.Iterable values) { + public Builder addAllValue( + java.lang.Iterable values) { ensureValueIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, value_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, value_); onChanged(); return this; } /** - * - * *
              * Float feature value.
              * 
      * * repeated float value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -1643,7 +1466,6 @@ public Builder clearValue() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1656,32 +1478,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) - private static final com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList(); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FloatList(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FloatList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FloatList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1693,38 +1513,28 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int CATEGORICAL_FEATURES_FIELD_NUMBER = 1; - private static final class CategoricalFeaturesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> - defaultEntry = + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.recommendationengine.v1beta1.Common - .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList - .getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.getDefaultInstance()); } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> - categoricalFeatures_; - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> - internalGetCategoricalFeatures() { + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categoricalFeatures_; + private com.google.protobuf.MapField + internalGetCategoricalFeatures() { if (categoricalFeatures_ == null) { return com.google.protobuf.MapField.emptyMapField( CategoricalFeaturesDefaultEntryHolder.defaultEntry); @@ -1736,8 +1546,6 @@ public int getCategoricalFeaturesCount() { return internalGetCategoricalFeatures().getMap().size(); } /** - * - * *
          * Categorical features that can take on one of a limited number of possible
          * values. Some examples would be the brand/maker of a product, or country of
      @@ -1747,28 +1555,24 @@ public int getCategoricalFeaturesCount() {
          *                 "sizes": {"value":["S", "M"]}`
          * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; */ + @java.lang.Override - public boolean containsCategoricalFeatures(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsCategoricalFeatures( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetCategoricalFeatures().getMap().containsKey(key); } - /** Use {@link #getCategoricalFeaturesMap()} instead. */ + /** + * Use {@link #getCategoricalFeaturesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> - getCategoricalFeatures() { + public java.util.Map getCategoricalFeatures() { return getCategoricalFeaturesMap(); } /** - * - * *
          * Categorical features that can take on one of a limited number of possible
          * values. Some examples would be the brand/maker of a product, or country of
      @@ -1778,19 +1582,14 @@ public boolean containsCategoricalFeatures(java.lang.String key) {
          *                 "sizes": {"value":["S", "M"]}`
          * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> - getCategoricalFeaturesMap() { + + public java.util.Map getCategoricalFeaturesMap() { return internalGetCategoricalFeatures().getMap(); } /** - * - * *
          * Categorical features that can take on one of a limited number of possible
          * values. Some examples would be the brand/maker of a product, or country of
      @@ -1800,26 +1599,19 @@ public boolean containsCategoricalFeatures(java.lang.String key) {
          *                 "sizes": {"value":["S", "M"]}`
          * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList - getCategoricalFeaturesOrDefault( - java.lang.String key, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> - map = internalGetCategoricalFeatures().getMap(); + + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCategoricalFeaturesOrDefault( + java.lang.String key, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCategoricalFeatures().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
          * Categorical features that can take on one of a limited number of possible
          * values. Some examples would be the brand/maker of a product, or country of
      @@ -1829,19 +1621,15 @@ public boolean containsCategoricalFeatures(java.lang.String key) {
          *                 "sizes": {"value":["S", "M"]}`
          * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList - getCategoricalFeaturesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> - map = internalGetCategoricalFeatures().getMap(); + + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCategoricalFeaturesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCategoricalFeatures().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1849,31 +1637,21 @@ public boolean containsCategoricalFeatures(java.lang.String key) { } public static final int NUMERICAL_FEATURES_FIELD_NUMBER = 2; - private static final class NumericalFeaturesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> - defaultEntry = + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.recommendationengine.v1beta1.Common - .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList - .getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.getDefaultInstance()); } - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> - numericalFeatures_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> - internalGetNumericalFeatures() { + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numericalFeatures_; + private com.google.protobuf.MapField + internalGetNumericalFeatures() { if (numericalFeatures_ == null) { return com.google.protobuf.MapField.emptyMapField( NumericalFeaturesDefaultEntryHolder.defaultEntry); @@ -1885,8 +1663,6 @@ public int getNumericalFeaturesCount() { return internalGetNumericalFeatures().getMap().size(); } /** - * - * *
          * Numerical features. Some examples would be the height/weight of a product,
          * or age of a customer.
      @@ -1895,28 +1671,24 @@ public int getNumericalFeaturesCount() {
          *                 "heights_cm": {"value":[8.1, 6.4]} }`
          * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; */ + @java.lang.Override - public boolean containsNumericalFeatures(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsNumericalFeatures( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetNumericalFeatures().getMap().containsKey(key); } - /** Use {@link #getNumericalFeaturesMap()} instead. */ + /** + * Use {@link #getNumericalFeaturesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> - getNumericalFeatures() { + public java.util.Map getNumericalFeatures() { return getNumericalFeaturesMap(); } /** - * - * *
          * Numerical features. Some examples would be the height/weight of a product,
          * or age of a customer.
      @@ -1925,19 +1697,14 @@ public boolean containsNumericalFeatures(java.lang.String key) {
          *                 "heights_cm": {"value":[8.1, 6.4]} }`
          * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> - getNumericalFeaturesMap() { + + public java.util.Map getNumericalFeaturesMap() { return internalGetNumericalFeatures().getMap(); } /** - * - * *
          * Numerical features. Some examples would be the height/weight of a product,
          * or age of a customer.
      @@ -1946,26 +1713,19 @@ public boolean containsNumericalFeatures(java.lang.String key) {
          *                 "heights_cm": {"value":[8.1, 6.4]} }`
          * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList - getNumericalFeaturesOrDefault( - java.lang.String key, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> - map = internalGetNumericalFeatures().getMap(); + + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getNumericalFeaturesOrDefault( + java.lang.String key, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetNumericalFeatures().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
          * Numerical features. Some examples would be the height/weight of a product,
          * or age of a customer.
      @@ -1974,19 +1734,15 @@ public boolean containsNumericalFeatures(java.lang.String key) {
          *                 "heights_cm": {"value":[8.1, 6.4]} }`
          * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList - getNumericalFeaturesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> - map = internalGetNumericalFeatures().getMap(); + + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getNumericalFeaturesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetNumericalFeatures().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1994,7 +1750,6 @@ public boolean containsNumericalFeatures(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2006,13 +1761,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetCategoricalFeatures(), CategoricalFeaturesDefaultEntryHolder.defaultEntry, 1); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetNumericalFeatures(), NumericalFeaturesDefaultEntryHolder.defaultEntry, @@ -2026,31 +1784,25 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> - entry : internalGetCategoricalFeatures().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> - categoricalFeatures__ = - CategoricalFeaturesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, categoricalFeatures__); - } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> - entry : internalGetNumericalFeatures().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> - numericalFeatures__ = - NumericalFeaturesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, numericalFeatures__); + for (java.util.Map.Entry entry + : internalGetCategoricalFeatures().getMap().entrySet()) { + com.google.protobuf.MapEntry + categoricalFeatures__ = CategoricalFeaturesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, categoricalFeatures__); + } + for (java.util.Map.Entry entry + : internalGetNumericalFeatures().getMap().entrySet()) { + com.google.protobuf.MapEntry + numericalFeatures__ = NumericalFeaturesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, numericalFeatures__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2060,17 +1812,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.FeatureMap)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.FeatureMap other = - (com.google.cloud.recommendationengine.v1beta1.FeatureMap) obj; + com.google.cloud.recommendationengine.v1beta1.FeatureMap other = (com.google.cloud.recommendationengine.v1beta1.FeatureMap) obj; - if (!internalGetCategoricalFeatures().equals(other.internalGetCategoricalFeatures())) - return false; - if (!internalGetNumericalFeatures().equals(other.internalGetNumericalFeatures())) return false; + if (!internalGetCategoricalFeatures().equals( + other.internalGetCategoricalFeatures())) return false; + if (!internalGetNumericalFeatures().equals( + other.internalGetNumericalFeatures())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2096,104 +1848,96 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.FeatureMap prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.FeatureMap prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * FeatureMap represents extra features that customers want to include in the
          * recommendation model for catalogs/user events as categorical/numerical
      @@ -2202,47 +1946,47 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *
          * Protobuf type {@code google.cloud.recommendationengine.v1beta1.FeatureMap}
          */
      -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
      -      implements
      +  public static final class Builder extends
      +      com.google.protobuf.GeneratedMessageV3.Builder implements
             // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.FeatureMap)
             com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder {
      -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -      return com.google.cloud.recommendationengine.v1beta1.Common
      -          .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor;
      +    public static final com.google.protobuf.Descriptors.Descriptor
      +        getDescriptor() {
      +      return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor;
           }
       
           @SuppressWarnings({"rawtypes"})
      -    protected com.google.protobuf.MapField internalGetMapField(int number) {
      +    protected com.google.protobuf.MapField internalGetMapField(
      +        int number) {
             switch (number) {
               case 1:
                 return internalGetCategoricalFeatures();
               case 2:
                 return internalGetNumericalFeatures();
               default:
      -          throw new RuntimeException("Invalid map field number: " + number);
      +          throw new RuntimeException(
      +              "Invalid map field number: " + number);
             }
           }
      -
           @SuppressWarnings({"rawtypes"})
      -    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
      +    protected com.google.protobuf.MapField internalGetMutableMapField(
      +        int number) {
             switch (number) {
               case 1:
                 return internalGetMutableCategoricalFeatures();
               case 2:
                 return internalGetMutableNumericalFeatures();
               default:
      -          throw new RuntimeException("Invalid map field number: " + number);
      +          throw new RuntimeException(
      +              "Invalid map field number: " + number);
             }
           }
      -
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
      -      return com.google.cloud.recommendationengine.v1beta1.Common
      -          .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_fieldAccessorTable
      +      return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
      -              com.google.cloud.recommendationengine.v1beta1.FeatureMap.class,
      -              com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder.class);
      +              com.google.cloud.recommendationengine.v1beta1.FeatureMap.class, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder.class);
           }
       
           // Construct using com.google.cloud.recommendationengine.v1beta1.FeatureMap.newBuilder()
      @@ -2250,15 +1994,16 @@ private Builder() {
             maybeForceBuilderInitialization();
           }
       
      -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +    private Builder(
      +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
             maybeForceBuilderInitialization();
           }
      -
           private void maybeForceBuilderInitialization() {
      -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
      +      if (com.google.protobuf.GeneratedMessageV3
      +              .alwaysUseFieldBuilders) {
      +      }
           }
      -
           @java.lang.Override
           public Builder clear() {
             super.clear();
      @@ -2268,9 +2013,9 @@ public Builder clear() {
           }
       
           @java.lang.Override
      -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      -      return com.google.cloud.recommendationengine.v1beta1.Common
      -          .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor;
      +    public com.google.protobuf.Descriptors.Descriptor
      +        getDescriptorForType() {
      +      return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor;
           }
       
           @java.lang.Override
      @@ -2289,8 +2034,7 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap build() {
       
           @java.lang.Override
           public com.google.cloud.recommendationengine.v1beta1.FeatureMap buildPartial() {
      -      com.google.cloud.recommendationengine.v1beta1.FeatureMap result =
      -          new com.google.cloud.recommendationengine.v1beta1.FeatureMap(this);
      +      com.google.cloud.recommendationengine.v1beta1.FeatureMap result = new com.google.cloud.recommendationengine.v1beta1.FeatureMap(this);
             int from_bitField0_ = bitField0_;
             result.categoricalFeatures_ = internalGetCategoricalFeatures();
             result.categoricalFeatures_.makeImmutable();
      @@ -2304,39 +2048,38 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap buildPartial() {
           public Builder clone() {
             return super.clone();
           }
      -
           @java.lang.Override
           public Builder setField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        java.lang.Object value) {
             return super.setField(field, value);
           }
      -
           @java.lang.Override
      -    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      +    public Builder clearField(
      +        com.google.protobuf.Descriptors.FieldDescriptor field) {
             return super.clearField(field);
           }
      -
           @java.lang.Override
      -    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      +    public Builder clearOneof(
      +        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
             return super.clearOneof(oneof);
           }
      -
           @java.lang.Override
           public Builder setRepeatedField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        int index, java.lang.Object value) {
             return super.setRepeatedField(field, index, value);
           }
      -
           @java.lang.Override
           public Builder addRepeatedField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        java.lang.Object value) {
             return super.addRepeatedField(field, value);
           }
      -
           @java.lang.Override
           public Builder mergeFrom(com.google.protobuf.Message other) {
             if (other instanceof com.google.cloud.recommendationengine.v1beta1.FeatureMap) {
      -        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.FeatureMap) other);
      +        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.FeatureMap)other);
             } else {
               super.mergeFrom(other);
               return this;
      @@ -2344,10 +2087,11 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
           }
       
           public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.FeatureMap other) {
      -      if (other == com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance())
      -        return this;
      -      internalGetMutableCategoricalFeatures().mergeFrom(other.internalGetCategoricalFeatures());
      -      internalGetMutableNumericalFeatures().mergeFrom(other.internalGetNumericalFeatures());
      +      if (other == com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance()) return this;
      +      internalGetMutableCategoricalFeatures().mergeFrom(
      +          other.internalGetCategoricalFeatures());
      +      internalGetMutableNumericalFeatures().mergeFrom(
      +          other.internalGetNumericalFeatures());
             this.mergeUnknownFields(other.unknownFields);
             onChanged();
             return this;
      @@ -2367,8 +2111,7 @@ public Builder mergeFrom(
             try {
               parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      -        parsedMessage =
      -            (com.google.cloud.recommendationengine.v1beta1.FeatureMap) e.getUnfinishedMessage();
      +        parsedMessage = (com.google.cloud.recommendationengine.v1beta1.FeatureMap) e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
               if (parsedMessage != null) {
      @@ -2377,32 +2120,24 @@ public Builder mergeFrom(
             }
             return this;
           }
      -
           private int bitField0_;
       
           private com.google.protobuf.MapField<
      -            java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList>
      -        categoricalFeatures_;
      -
      -    private com.google.protobuf.MapField<
      -            java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList>
      -        internalGetCategoricalFeatures() {
      +        java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categoricalFeatures_;
      +    private com.google.protobuf.MapField
      +    internalGetCategoricalFeatures() {
             if (categoricalFeatures_ == null) {
               return com.google.protobuf.MapField.emptyMapField(
                   CategoricalFeaturesDefaultEntryHolder.defaultEntry);
             }
             return categoricalFeatures_;
           }
      -
      -    private com.google.protobuf.MapField<
      -            java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList>
      -        internalGetMutableCategoricalFeatures() {
      -      onChanged();
      -      ;
      +    private com.google.protobuf.MapField
      +    internalGetMutableCategoricalFeatures() {
      +      onChanged();;
             if (categoricalFeatures_ == null) {
      -        categoricalFeatures_ =
      -            com.google.protobuf.MapField.newMapField(
      -                CategoricalFeaturesDefaultEntryHolder.defaultEntry);
      +        categoricalFeatures_ = com.google.protobuf.MapField.newMapField(
      +            CategoricalFeaturesDefaultEntryHolder.defaultEntry);
             }
             if (!categoricalFeatures_.isMutable()) {
               categoricalFeatures_ = categoricalFeatures_.copy();
      @@ -2414,8 +2149,6 @@ public int getCategoricalFeaturesCount() {
             return internalGetCategoricalFeatures().getMap().size();
           }
           /**
      -     *
      -     *
            * 
            * Categorical features that can take on one of a limited number of possible
            * values. Some examples would be the brand/maker of a product, or country of
      @@ -2425,28 +2158,24 @@ public int getCategoricalFeaturesCount() {
            *                 "sizes": {"value":["S", "M"]}`
            * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; */ + @java.lang.Override - public boolean containsCategoricalFeatures(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsCategoricalFeatures( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetCategoricalFeatures().getMap().containsKey(key); } - /** Use {@link #getCategoricalFeaturesMap()} instead. */ + /** + * Use {@link #getCategoricalFeaturesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> - getCategoricalFeatures() { + public java.util.Map getCategoricalFeatures() { return getCategoricalFeaturesMap(); } /** - * - * *
            * Categorical features that can take on one of a limited number of possible
            * values. Some examples would be the brand/maker of a product, or country of
      @@ -2456,19 +2185,14 @@ public boolean containsCategoricalFeatures(java.lang.String key) {
            *                 "sizes": {"value":["S", "M"]}`
            * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> - getCategoricalFeaturesMap() { + + public java.util.Map getCategoricalFeaturesMap() { return internalGetCategoricalFeatures().getMap(); } /** - * - * *
            * Categorical features that can take on one of a limited number of possible
            * values. Some examples would be the brand/maker of a product, or country of
      @@ -2478,26 +2202,19 @@ public boolean containsCategoricalFeatures(java.lang.String key) {
            *                 "sizes": {"value":["S", "M"]}`
            * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList - getCategoricalFeaturesOrDefault( - java.lang.String key, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> - map = internalGetCategoricalFeatures().getMap(); + + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCategoricalFeaturesOrDefault( + java.lang.String key, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCategoricalFeatures().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
            * Categorical features that can take on one of a limited number of possible
            * values. Some examples would be the brand/maker of a product, or country of
      @@ -2507,19 +2224,15 @@ public boolean containsCategoricalFeatures(java.lang.String key) {
            *                 "sizes": {"value":["S", "M"]}`
            * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList - getCategoricalFeaturesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> - map = internalGetCategoricalFeatures().getMap(); + + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCategoricalFeaturesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetCategoricalFeatures().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2527,12 +2240,11 @@ public boolean containsCategoricalFeatures(java.lang.String key) { } public Builder clearCategoricalFeatures() { - internalGetMutableCategoricalFeatures().getMutableMap().clear(); + internalGetMutableCategoricalFeatures().getMutableMap() + .clear(); return this; } /** - * - * *
            * Categorical features that can take on one of a limited number of possible
            * values. Some examples would be the brand/maker of a product, or country of
      @@ -2542,27 +2254,25 @@ public Builder clearCategoricalFeatures() {
            *                 "sizes": {"value":["S", "M"]}`
            * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; */ - public Builder removeCategoricalFeatures(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableCategoricalFeatures().getMutableMap().remove(key); + + public Builder removeCategoricalFeatures( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableCategoricalFeatures().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> - getMutableCategoricalFeatures() { + public java.util.Map + getMutableCategoricalFeatures() { return internalGetMutableCategoricalFeatures().getMutableMap(); } /** - * - * *
            * Categorical features that can take on one of a limited number of possible
            * values. Some examples would be the brand/maker of a product, or country of
      @@ -2572,26 +2282,21 @@ public Builder removeCategoricalFeatures(java.lang.String key) {
            *                 "sizes": {"value":["S", "M"]}`
            * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; */ public Builder putCategoricalFeatures( java.lang.String key, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList value) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableCategoricalFeatures().getMutableMap().put(key, value); + internalGetMutableCategoricalFeatures().getMutableMap() + .put(key, value); return this; } /** - * - * *
            * Categorical features that can take on one of a limited number of possible
            * values. Some examples would be the brand/maker of a product, or country of
      @@ -2601,42 +2306,32 @@ public Builder putCategoricalFeatures(
            *                 "sizes": {"value":["S", "M"]}`
            * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; */ + public Builder putAllCategoricalFeatures( - java.util.Map< - java.lang.String, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> - values) { - internalGetMutableCategoricalFeatures().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableCategoricalFeatures().getMutableMap() + .putAll(values); return this; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> - numericalFeatures_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> - internalGetNumericalFeatures() { + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numericalFeatures_; + private com.google.protobuf.MapField + internalGetNumericalFeatures() { if (numericalFeatures_ == null) { return com.google.protobuf.MapField.emptyMapField( NumericalFeaturesDefaultEntryHolder.defaultEntry); } return numericalFeatures_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> - internalGetMutableNumericalFeatures() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableNumericalFeatures() { + onChanged();; if (numericalFeatures_ == null) { - numericalFeatures_ = - com.google.protobuf.MapField.newMapField( - NumericalFeaturesDefaultEntryHolder.defaultEntry); + numericalFeatures_ = com.google.protobuf.MapField.newMapField( + NumericalFeaturesDefaultEntryHolder.defaultEntry); } if (!numericalFeatures_.isMutable()) { numericalFeatures_ = numericalFeatures_.copy(); @@ -2648,8 +2343,6 @@ public int getNumericalFeaturesCount() { return internalGetNumericalFeatures().getMap().size(); } /** - * - * *
            * Numerical features. Some examples would be the height/weight of a product,
            * or age of a customer.
      @@ -2658,28 +2351,24 @@ public int getNumericalFeaturesCount() {
            *                 "heights_cm": {"value":[8.1, 6.4]} }`
            * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; */ + @java.lang.Override - public boolean containsNumericalFeatures(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsNumericalFeatures( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetNumericalFeatures().getMap().containsKey(key); } - /** Use {@link #getNumericalFeaturesMap()} instead. */ + /** + * Use {@link #getNumericalFeaturesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> - getNumericalFeatures() { + public java.util.Map getNumericalFeatures() { return getNumericalFeaturesMap(); } /** - * - * *
            * Numerical features. Some examples would be the height/weight of a product,
            * or age of a customer.
      @@ -2688,19 +2377,14 @@ public boolean containsNumericalFeatures(java.lang.String key) {
            *                 "heights_cm": {"value":[8.1, 6.4]} }`
            * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> - getNumericalFeaturesMap() { + + public java.util.Map getNumericalFeaturesMap() { return internalGetNumericalFeatures().getMap(); } /** - * - * *
            * Numerical features. Some examples would be the height/weight of a product,
            * or age of a customer.
      @@ -2709,26 +2393,19 @@ public boolean containsNumericalFeatures(java.lang.String key) {
            *                 "heights_cm": {"value":[8.1, 6.4]} }`
            * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList - getNumericalFeaturesOrDefault( - java.lang.String key, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> - map = internalGetNumericalFeatures().getMap(); + + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getNumericalFeaturesOrDefault( + java.lang.String key, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetNumericalFeatures().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
            * Numerical features. Some examples would be the height/weight of a product,
            * or age of a customer.
      @@ -2737,19 +2414,15 @@ public boolean containsNumericalFeatures(java.lang.String key) {
            *                 "heights_cm": {"value":[8.1, 6.4]} }`
            * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList - getNumericalFeaturesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> - map = internalGetNumericalFeatures().getMap(); + + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getNumericalFeaturesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetNumericalFeatures().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2757,12 +2430,11 @@ public boolean containsNumericalFeatures(java.lang.String key) { } public Builder clearNumericalFeatures() { - internalGetMutableNumericalFeatures().getMutableMap().clear(); + internalGetMutableNumericalFeatures().getMutableMap() + .clear(); return this; } /** - * - * *
            * Numerical features. Some examples would be the height/weight of a product,
            * or age of a customer.
      @@ -2771,27 +2443,25 @@ public Builder clearNumericalFeatures() {
            *                 "heights_cm": {"value":[8.1, 6.4]} }`
            * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; */ - public Builder removeNumericalFeatures(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableNumericalFeatures().getMutableMap().remove(key); + + public Builder removeNumericalFeatures( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableNumericalFeatures().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> - getMutableNumericalFeatures() { + public java.util.Map + getMutableNumericalFeatures() { return internalGetMutableNumericalFeatures().getMutableMap(); } /** - * - * *
            * Numerical features. Some examples would be the height/weight of a product,
            * or age of a customer.
      @@ -2800,26 +2470,21 @@ public Builder removeNumericalFeatures(java.lang.String key) {
            *                 "heights_cm": {"value":[8.1, 6.4]} }`
            * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; */ public Builder putNumericalFeatures( java.lang.String key, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList value) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableNumericalFeatures().getMutableMap().put(key, value); + internalGetMutableNumericalFeatures().getMutableMap() + .put(key, value); return this; } /** - * - * *
            * Numerical features. Some examples would be the height/weight of a product,
            * or age of a customer.
      @@ -2828,21 +2493,18 @@ public Builder putNumericalFeatures(
            *                 "heights_cm": {"value":[8.1, 6.4]} }`
            * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; */ + public Builder putAllNumericalFeatures( - java.util.Map< - java.lang.String, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> - values) { - internalGetMutableNumericalFeatures().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableNumericalFeatures().getMutableMap() + .putAll(values); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2852,12 +2514,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.FeatureMap) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.FeatureMap) private static final com.google.cloud.recommendationengine.v1beta1.FeatureMap DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.FeatureMap(); } @@ -2866,16 +2528,16 @@ public static com.google.cloud.recommendationengine.v1beta1.FeatureMap getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureMap parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureMap(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureMap(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2890,4 +2552,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.recommendationengine.v1beta1.FeatureMap getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMapOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMapOrBuilder.java similarity index 56% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMapOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMapOrBuilder.java index 44132bc2..1131383b 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMapOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMapOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/common.proto package com.google.cloud.recommendationengine.v1beta1; -public interface FeatureMapOrBuilder - extends +public interface FeatureMapOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.FeatureMap) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Categorical features that can take on one of a limited number of possible
          * values. Some examples would be the brand/maker of a product, or country of
      @@ -35,14 +17,10 @@ public interface FeatureMapOrBuilder
          *                 "sizes": {"value":["S", "M"]}`
          * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; */ int getCategoricalFeaturesCount(); /** - * - * *
          * Categorical features that can take on one of a limited number of possible
          * values. Some examples would be the brand/maker of a product, or country of
      @@ -52,19 +30,17 @@ public interface FeatureMapOrBuilder
          *                 "sizes": {"value":["S", "M"]}`
          * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + */ + boolean containsCategoricalFeatures( + java.lang.String key); + /** + * Use {@link #getCategoricalFeaturesMap()} instead. */ - boolean containsCategoricalFeatures(java.lang.String key); - /** Use {@link #getCategoricalFeaturesMap()} instead. */ @java.lang.Deprecated - java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> - getCategoricalFeatures(); + java.util.Map + getCategoricalFeatures(); /** - * - * *
          * Categorical features that can take on one of a limited number of possible
          * values. Some examples would be the brand/maker of a product, or country of
      @@ -74,16 +50,11 @@ public interface FeatureMapOrBuilder
          *                 "sizes": {"value":["S", "M"]}`
          * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; */ - java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> - getCategoricalFeaturesMap(); + java.util.Map + getCategoricalFeaturesMap(); /** - * - * *
          * Categorical features that can take on one of a limited number of possible
          * values. Some examples would be the brand/maker of a product, or country of
      @@ -93,20 +64,15 @@ public interface FeatureMapOrBuilder
          *                 "sizes": {"value":["S", "M"]}`
          * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; */ /* nullable */ - com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList - getCategoricalFeaturesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList defaultValue); +com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCategoricalFeaturesOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList defaultValue); /** - * - * *
          * Categorical features that can take on one of a limited number of possible
          * values. Some examples would be the brand/maker of a product, or country of
      @@ -116,16 +82,13 @@ public interface FeatureMapOrBuilder
          *                 "sizes": {"value":["S", "M"]}`
          * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; */ + com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCategoricalFeaturesOrThrow( java.lang.String key); /** - * - * *
          * Numerical features. Some examples would be the height/weight of a product,
          * or age of a customer.
      @@ -134,14 +97,10 @@ com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCategoric
          *                 "heights_cm": {"value":[8.1, 6.4]} }`
          * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; */ int getNumericalFeaturesCount(); /** - * - * *
          * Numerical features. Some examples would be the height/weight of a product,
          * or age of a customer.
      @@ -150,19 +109,17 @@ com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCategoric
          *                 "heights_cm": {"value":[8.1, 6.4]} }`
          * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + */ + boolean containsNumericalFeatures( + java.lang.String key); + /** + * Use {@link #getNumericalFeaturesMap()} instead. */ - boolean containsNumericalFeatures(java.lang.String key); - /** Use {@link #getNumericalFeaturesMap()} instead. */ @java.lang.Deprecated - java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> - getNumericalFeatures(); + java.util.Map + getNumericalFeatures(); /** - * - * *
          * Numerical features. Some examples would be the height/weight of a product,
          * or age of a customer.
      @@ -171,16 +128,11 @@ com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCategoric
          *                 "heights_cm": {"value":[8.1, 6.4]} }`
          * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; */ - java.util.Map< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> - getNumericalFeaturesMap(); + java.util.Map + getNumericalFeaturesMap(); /** - * - * *
          * Numerical features. Some examples would be the height/weight of a product,
          * or age of a customer.
      @@ -189,19 +141,15 @@ com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCategoric
          *                 "heights_cm": {"value":[8.1, 6.4]} }`
          * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; */ /* nullable */ - com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getNumericalFeaturesOrDefault( +com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getNumericalFeaturesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList defaultValue); +com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList defaultValue); /** - * - * *
          * Numerical features. Some examples would be the height/weight of a product,
          * or age of a customer.
      @@ -210,10 +158,9 @@ com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getNumericalF
          *                 "heights_cm": {"value":[8.1, 6.4]} }`
          * 
      * - * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; - * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; */ + com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getNumericalFeaturesOrThrow( java.lang.String key); } diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSource.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSource.java similarity index 76% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSource.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSource.java index 758f466f..34e1c79f 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSource.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSource.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Google Cloud Storage location for input content.
        * format.
      @@ -28,31 +11,31 @@
        *
        * Protobuf type {@code google.cloud.recommendationengine.v1beta1.GcsSource}
        */
      -public final class GcsSource extends com.google.protobuf.GeneratedMessageV3
      -    implements
      +public final class GcsSource extends
      +    com.google.protobuf.GeneratedMessageV3 implements
           // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.GcsSource)
           GcsSourceOrBuilder {
      -  private static final long serialVersionUID = 0L;
      +private static final long serialVersionUID = 0L;
         // Use GcsSource.newBuilder() to construct.
         private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
      -
         private GcsSource() {
           inputUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
         }
       
         @java.lang.Override
         @SuppressWarnings({"unused"})
      -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      +  protected java.lang.Object newInstance(
      +      UnusedPrivateParameter unused) {
           return new GcsSource();
         }
       
         @java.lang.Override
      -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      +  public final com.google.protobuf.UnknownFieldSet
      +  getUnknownFields() {
           return this.unknownFields;
         }
      -
         private GcsSource(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      @@ -72,23 +55,22 @@ private GcsSource(
                 case 0:
                   done = true;
                   break;
      -          case 10:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
      -                inputUris_ = new com.google.protobuf.LazyStringArrayList();
      -                mutable_bitField0_ |= 0x00000001;
      -              }
      -              inputUris_.add(s);
      -              break;
      +          case 10: {
      +            java.lang.String s = input.readStringRequireUtf8();
      +            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
      +              inputUris_ = new com.google.protobuf.LazyStringArrayList();
      +              mutable_bitField0_ |= 0x00000001;
                   }
      -          default:
      -            {
      -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
      -                done = true;
      -              }
      -              break;
      +            inputUris_.add(s);
      +            break;
      +          }
      +          default: {
      +            if (!parseUnknownField(
      +                input, unknownFields, extensionRegistry, tag)) {
      +              done = true;
                   }
      +            break;
      +          }
               }
             }
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      @@ -96,7 +78,8 @@ private GcsSource(
           } catch (com.google.protobuf.UninitializedMessageException e) {
             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
           } catch (java.io.IOException e) {
      -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      +      throw new com.google.protobuf.InvalidProtocolBufferException(
      +          e).setUnfinishedMessage(this);
           } finally {
             if (((mutable_bitField0_ & 0x00000001) != 0)) {
               inputUris_ = inputUris_.getUnmodifiableView();
      @@ -105,27 +88,22 @@ private GcsSource(
             makeExtensionsImmutable();
           }
         }
      -
      -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -    return com.google.cloud.recommendationengine.v1beta1.Import
      -        .internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor;
      +  public static final com.google.protobuf.Descriptors.Descriptor
      +      getDescriptor() {
      +    return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor;
         }
       
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
      -    return com.google.cloud.recommendationengine.v1beta1.Import
      -        .internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_fieldAccessorTable
      +    return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
      -            com.google.cloud.recommendationengine.v1beta1.GcsSource.class,
      -            com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder.class);
      +            com.google.cloud.recommendationengine.v1beta1.GcsSource.class, com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder.class);
         }
       
         public static final int INPUT_URIS_FIELD_NUMBER = 1;
         private com.google.protobuf.LazyStringList inputUris_;
         /**
      -   *
      -   *
          * 
          * Required. Google Cloud Storage URIs to input files. URI can be up to
          * 2000 characters long. URIs can match the full object path (for example,
      @@ -137,15 +115,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * 
      * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the inputUris. */ - public com.google.protobuf.ProtocolStringList getInputUrisList() { + public com.google.protobuf.ProtocolStringList + getInputUrisList() { return inputUris_; } /** - * - * *
          * Required. Google Cloud Storage URIs to input files. URI can be up to
          * 2000 characters long. URIs can match the full object path (for example,
      @@ -157,15 +133,12 @@ public com.google.protobuf.ProtocolStringList getInputUrisList() {
          * 
      * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of inputUris. */ public int getInputUrisCount() { return inputUris_.size(); } /** - * - * *
          * Required. Google Cloud Storage URIs to input files. URI can be up to
          * 2000 characters long. URIs can match the full object path (for example,
      @@ -177,7 +150,6 @@ public int getInputUrisCount() {
          * 
      * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The inputUris at the given index. */ @@ -185,8 +157,6 @@ public java.lang.String getInputUris(int index) { return inputUris_.get(index); } /** - * - * *
          * Required. Google Cloud Storage URIs to input files. URI can be up to
          * 2000 characters long. URIs can match the full object path (for example,
      @@ -198,16 +168,15 @@ public java.lang.String getInputUris(int index) {
          * 
      * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the inputUris at the given index. */ - public com.google.protobuf.ByteString getInputUrisBytes(int index) { + public com.google.protobuf.ByteString + getInputUrisBytes(int index) { return inputUris_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,7 +188,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < inputUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUris_.getRaw(i)); } @@ -248,15 +218,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.GcsSource)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.GcsSource other = - (com.google.cloud.recommendationengine.v1beta1.GcsSource) obj; + com.google.cloud.recommendationengine.v1beta1.GcsSource other = (com.google.cloud.recommendationengine.v1beta1.GcsSource) obj; - if (!getInputUrisList().equals(other.getInputUrisList())) return false; + if (!getInputUrisList() + .equals(other.getInputUrisList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -278,104 +248,96 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.GcsSource prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Google Cloud Storage location for input content.
          * format.
      @@ -383,23 +345,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *
          * Protobuf type {@code google.cloud.recommendationengine.v1beta1.GcsSource}
          */
      -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
      -      implements
      +  public static final class Builder extends
      +      com.google.protobuf.GeneratedMessageV3.Builder implements
             // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.GcsSource)
             com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder {
      -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -      return com.google.cloud.recommendationengine.v1beta1.Import
      -          .internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor;
      +    public static final com.google.protobuf.Descriptors.Descriptor
      +        getDescriptor() {
      +      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor;
           }
       
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
      -      return com.google.cloud.recommendationengine.v1beta1.Import
      -          .internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_fieldAccessorTable
      +      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
      -              com.google.cloud.recommendationengine.v1beta1.GcsSource.class,
      -              com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder.class);
      +              com.google.cloud.recommendationengine.v1beta1.GcsSource.class, com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder.class);
           }
       
           // Construct using com.google.cloud.recommendationengine.v1beta1.GcsSource.newBuilder()
      @@ -407,15 +367,16 @@ private Builder() {
             maybeForceBuilderInitialization();
           }
       
      -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +    private Builder(
      +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
             maybeForceBuilderInitialization();
           }
      -
           private void maybeForceBuilderInitialization() {
      -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
      +      if (com.google.protobuf.GeneratedMessageV3
      +              .alwaysUseFieldBuilders) {
      +      }
           }
      -
           @java.lang.Override
           public Builder clear() {
             super.clear();
      @@ -425,9 +386,9 @@ public Builder clear() {
           }
       
           @java.lang.Override
      -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      -      return com.google.cloud.recommendationengine.v1beta1.Import
      -          .internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor;
      +    public com.google.protobuf.Descriptors.Descriptor
      +        getDescriptorForType() {
      +      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor;
           }
       
           @java.lang.Override
      @@ -446,8 +407,7 @@ public com.google.cloud.recommendationengine.v1beta1.GcsSource build() {
       
           @java.lang.Override
           public com.google.cloud.recommendationengine.v1beta1.GcsSource buildPartial() {
      -      com.google.cloud.recommendationengine.v1beta1.GcsSource result =
      -          new com.google.cloud.recommendationengine.v1beta1.GcsSource(this);
      +      com.google.cloud.recommendationengine.v1beta1.GcsSource result = new com.google.cloud.recommendationengine.v1beta1.GcsSource(this);
             int from_bitField0_ = bitField0_;
             if (((bitField0_ & 0x00000001) != 0)) {
               inputUris_ = inputUris_.getUnmodifiableView();
      @@ -462,39 +422,38 @@ public com.google.cloud.recommendationengine.v1beta1.GcsSource buildPartial() {
           public Builder clone() {
             return super.clone();
           }
      -
           @java.lang.Override
           public Builder setField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        java.lang.Object value) {
             return super.setField(field, value);
           }
      -
           @java.lang.Override
      -    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      +    public Builder clearField(
      +        com.google.protobuf.Descriptors.FieldDescriptor field) {
             return super.clearField(field);
           }
      -
           @java.lang.Override
      -    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      +    public Builder clearOneof(
      +        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
             return super.clearOneof(oneof);
           }
      -
           @java.lang.Override
           public Builder setRepeatedField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        int index, java.lang.Object value) {
             return super.setRepeatedField(field, index, value);
           }
      -
           @java.lang.Override
           public Builder addRepeatedField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        java.lang.Object value) {
             return super.addRepeatedField(field, value);
           }
      -
           @java.lang.Override
           public Builder mergeFrom(com.google.protobuf.Message other) {
             if (other instanceof com.google.cloud.recommendationengine.v1beta1.GcsSource) {
      -        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.GcsSource) other);
      +        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.GcsSource)other);
             } else {
               super.mergeFrom(other);
               return this;
      @@ -502,8 +461,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
           }
       
           public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.GcsSource other) {
      -      if (other == com.google.cloud.recommendationengine.v1beta1.GcsSource.getDefaultInstance())
      -        return this;
      +      if (other == com.google.cloud.recommendationengine.v1beta1.GcsSource.getDefaultInstance()) return this;
             if (!other.inputUris_.isEmpty()) {
               if (inputUris_.isEmpty()) {
                 inputUris_ = other.inputUris_;
      @@ -533,8 +491,7 @@ public Builder mergeFrom(
             try {
               parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      -        parsedMessage =
      -            (com.google.cloud.recommendationengine.v1beta1.GcsSource) e.getUnfinishedMessage();
      +        parsedMessage = (com.google.cloud.recommendationengine.v1beta1.GcsSource) e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
               if (parsedMessage != null) {
      @@ -543,21 +500,16 @@ public Builder mergeFrom(
             }
             return this;
           }
      -
           private int bitField0_;
       
      -    private com.google.protobuf.LazyStringList inputUris_ =
      -        com.google.protobuf.LazyStringArrayList.EMPTY;
      -
      +    private com.google.protobuf.LazyStringList inputUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
           private void ensureInputUrisIsMutable() {
             if (!((bitField0_ & 0x00000001) != 0)) {
               inputUris_ = new com.google.protobuf.LazyStringArrayList(inputUris_);
               bitField0_ |= 0x00000001;
      -      }
      +       }
           }
           /**
      -     *
      -     *
            * 
            * Required. Google Cloud Storage URIs to input files. URI can be up to
            * 2000 characters long. URIs can match the full object path (for example,
      @@ -569,15 +521,13 @@ private void ensureInputUrisIsMutable() {
            * 
      * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the inputUris. */ - public com.google.protobuf.ProtocolStringList getInputUrisList() { + public com.google.protobuf.ProtocolStringList + getInputUrisList() { return inputUris_.getUnmodifiableView(); } /** - * - * *
            * Required. Google Cloud Storage URIs to input files. URI can be up to
            * 2000 characters long. URIs can match the full object path (for example,
      @@ -589,15 +539,12 @@ public com.google.protobuf.ProtocolStringList getInputUrisList() {
            * 
      * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of inputUris. */ public int getInputUrisCount() { return inputUris_.size(); } /** - * - * *
            * Required. Google Cloud Storage URIs to input files. URI can be up to
            * 2000 characters long. URIs can match the full object path (for example,
      @@ -609,7 +556,6 @@ public int getInputUrisCount() {
            * 
      * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The inputUris at the given index. */ @@ -617,8 +563,6 @@ public java.lang.String getInputUris(int index) { return inputUris_.get(index); } /** - * - * *
            * Required. Google Cloud Storage URIs to input files. URI can be up to
            * 2000 characters long. URIs can match the full object path (for example,
      @@ -630,16 +574,14 @@ public java.lang.String getInputUris(int index) {
            * 
      * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the inputUris at the given index. */ - public com.google.protobuf.ByteString getInputUrisBytes(int index) { + public com.google.protobuf.ByteString + getInputUrisBytes(int index) { return inputUris_.getByteString(index); } /** - * - * *
            * Required. Google Cloud Storage URIs to input files. URI can be up to
            * 2000 characters long. URIs can match the full object path (for example,
      @@ -651,23 +593,21 @@ public com.google.protobuf.ByteString getInputUrisBytes(int index) {
            * 
      * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The inputUris to set. * @return This builder for chaining. */ - public Builder setInputUris(int index, java.lang.String value) { + public Builder setInputUris( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInputUrisIsMutable(); + throw new NullPointerException(); + } + ensureInputUrisIsMutable(); inputUris_.set(index, value); onChanged(); return this; } /** - * - * *
            * Required. Google Cloud Storage URIs to input files. URI can be up to
            * 2000 characters long. URIs can match the full object path (for example,
      @@ -679,22 +619,20 @@ public Builder setInputUris(int index, java.lang.String value) {
            * 
      * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The inputUris to add. * @return This builder for chaining. */ - public Builder addInputUris(java.lang.String value) { + public Builder addInputUris( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInputUrisIsMutable(); + throw new NullPointerException(); + } + ensureInputUrisIsMutable(); inputUris_.add(value); onChanged(); return this; } /** - * - * *
            * Required. Google Cloud Storage URIs to input files. URI can be up to
            * 2000 characters long. URIs can match the full object path (for example,
      @@ -706,19 +644,18 @@ public Builder addInputUris(java.lang.String value) {
            * 
      * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The inputUris to add. * @return This builder for chaining. */ - public Builder addAllInputUris(java.lang.Iterable values) { + public Builder addAllInputUris( + java.lang.Iterable values) { ensureInputUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputUris_); onChanged(); return this; } /** - * - * *
            * Required. Google Cloud Storage URIs to input files. URI can be up to
            * 2000 characters long. URIs can match the full object path (for example,
      @@ -730,7 +667,6 @@ public Builder addAllInputUris(java.lang.Iterable values) {
            * 
      * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearInputUris() { @@ -740,8 +676,6 @@ public Builder clearInputUris() { return this; } /** - * - * *
            * Required. Google Cloud Storage URIs to input files. URI can be up to
            * 2000 characters long. URIs can match the full object path (for example,
      @@ -753,23 +687,23 @@ public Builder clearInputUris() {
            * 
      * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the inputUris to add. * @return This builder for chaining. */ - public Builder addInputUrisBytes(com.google.protobuf.ByteString value) { + public Builder addInputUrisBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureInputUrisIsMutable(); inputUris_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -779,12 +713,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.GcsSource) private static final com.google.cloud.recommendationengine.v1beta1.GcsSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.GcsSource(); } @@ -793,16 +727,16 @@ public static com.google.cloud.recommendationengine.v1beta1.GcsSource getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -817,4 +751,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.recommendationengine.v1beta1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSourceOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSourceOrBuilder.java similarity index 79% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSourceOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSourceOrBuilder.java index 692c096c..41a4ab40 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSourceOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; -public interface GcsSourceOrBuilder - extends +public interface GcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.GcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required. Google Cloud Storage URIs to input files. URI can be up to
          * 2000 characters long. URIs can match the full object path (for example,
      @@ -37,13 +19,11 @@ public interface GcsSourceOrBuilder
          * 
      * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the inputUris. */ - java.util.List getInputUrisList(); + java.util.List + getInputUrisList(); /** - * - * *
          * Required. Google Cloud Storage URIs to input files. URI can be up to
          * 2000 characters long. URIs can match the full object path (for example,
      @@ -55,13 +35,10 @@ public interface GcsSourceOrBuilder
          * 
      * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of inputUris. */ int getInputUrisCount(); /** - * - * *
          * Required. Google Cloud Storage URIs to input files. URI can be up to
          * 2000 characters long. URIs can match the full object path (for example,
      @@ -73,14 +50,11 @@ public interface GcsSourceOrBuilder
          * 
      * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The inputUris at the given index. */ java.lang.String getInputUris(int index); /** - * - * *
          * Required. Google Cloud Storage URIs to input files. URI can be up to
          * 2000 characters long. URIs can match the full object path (for example,
      @@ -92,9 +66,9 @@ public interface GcsSourceOrBuilder
          * 
      * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the inputUris at the given index. */ - com.google.protobuf.ByteString getInputUrisBytes(int index); + com.google.protobuf.ByteString + getInputUrisBytes(int index); } diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequest.java similarity index 63% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequest.java index 6ae45a3d..e0f96bd2 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog_service.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Request message for GetCatalogItem method.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest} */ -public final class GetCatalogItemRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetCatalogItemRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) GetCatalogItemRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetCatalogItemRequest.newBuilder() to construct. private GetCatalogItemRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetCatalogItemRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetCatalogItemRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetCatalogItemRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetCatalogItemRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetCatalogItemRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.class, - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.class, com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
          * Required. Full resource name of catalog item, such as
          * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
          * Required. Full resource name of catalog item, such as
          * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest other = - (com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) obj; + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest other = (com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Request message for GetCatalogItem method.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.class, - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.class, com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,16 +343,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.getDefaultInstance(); } @java.lang.Override @@ -404,8 +364,7 @@ public com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest build @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest result = - new com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest(this); + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest result = new com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,51 +374,46 @@ public com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest other) { + if (other == com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -483,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -497,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
            * Required. Full resource name of catalog item, such as
            * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -522,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
            * Required. Full resource name of catalog item, such as
            * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -547,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
            * Required. Full resource name of catalog item, such as
            * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
            * Required. Full resource name of catalog item, such as
            * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
            * Required. Full resource name of catalog item, such as
            * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) - private static final com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCatalogItemRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCatalogItemRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCatalogItemRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCatalogItemRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequestOrBuilder.java new file mode 100644 index 00000000..a40133e7 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/catalog_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public interface GetCatalogItemRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * Required. Full resource name of catalog item, such as
      +   * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
      +   * Required. Full resource name of catalog item, such as
      +   * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
      +   * 
      + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Image.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Image.java similarity index 71% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Image.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Image.java index dba86e39..5980625e 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Image.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Image.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Catalog item thumbnail/detail image.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.Image} */ -public final class Image extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Image extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.Image) ImageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Image.newBuilder() to construct. private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Image() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Image(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Image( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,30 +53,29 @@ private Image( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - case 16: - { - height_ = input.readInt32(); - break; - } - case 24: - { - width_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + uri_ = s; + break; + } + case 16: { + + height_ = input.readInt32(); + break; + } + case 24: { + + width_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,39 +83,34 @@ private Image( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_Image_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.Image.class, - com.google.cloud.recommendationengine.v1beta1.Image.Builder.class); + com.google.cloud.recommendationengine.v1beta1.Image.class, com.google.cloud.recommendationengine.v1beta1.Image.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** - * - * *
          * Required. URL of the image with a length limit of 5 KiB.
          * 
      * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ @java.lang.Override @@ -142,29 +119,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
          * Required. URL of the image with a length limit of 5 KiB.
          * 
      * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -175,14 +152,11 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int HEIGHT_FIELD_NUMBER = 2; private int height_; /** - * - * *
          * Optional. Height of the image in number of pixels.
          * 
      * * int32 height = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The height. */ @java.lang.Override @@ -193,14 +167,11 @@ public int getHeight() { public static final int WIDTH_FIELD_NUMBER = 3; private int width_; /** - * - * *
          * Optional. Width of the image in number of pixels.
          * 
      * * int32 width = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The width. */ @java.lang.Override @@ -209,7 +180,6 @@ public int getWidth() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,7 +191,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -244,10 +215,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (height_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, height_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, height_); } if (width_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, width_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, width_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -257,17 +230,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.Image)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.Image other = - (com.google.cloud.recommendationengine.v1beta1.Image) obj; + com.google.cloud.recommendationengine.v1beta1.Image other = (com.google.cloud.recommendationengine.v1beta1.Image) obj; - if (!getUri().equals(other.getUri())) return false; - if (getHeight() != other.getHeight()) return false; - if (getWidth() != other.getWidth()) return false; + if (!getUri() + .equals(other.getUri())) return false; + if (getHeight() + != other.getHeight()) return false; + if (getWidth() + != other.getWidth()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,126 +266,117 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.Image parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.Image parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.Image parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.Image prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Catalog item thumbnail/detail image.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.Image} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.Image) com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_Image_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.Image.class, - com.google.cloud.recommendationengine.v1beta1.Image.Builder.class); + com.google.cloud.recommendationengine.v1beta1.Image.class, com.google.cloud.recommendationengine.v1beta1.Image.Builder.class); } // Construct using com.google.cloud.recommendationengine.v1beta1.Image.newBuilder() @@ -418,15 +384,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -440,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor; } @java.lang.Override @@ -461,8 +428,7 @@ public com.google.cloud.recommendationengine.v1beta1.Image build() { @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.Image buildPartial() { - com.google.cloud.recommendationengine.v1beta1.Image result = - new com.google.cloud.recommendationengine.v1beta1.Image(this); + com.google.cloud.recommendationengine.v1beta1.Image result = new com.google.cloud.recommendationengine.v1beta1.Image(this); result.uri_ = uri_; result.height_ = height_; result.width_ = width_; @@ -474,39 +440,38 @@ public com.google.cloud.recommendationengine.v1beta1.Image buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.Image) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.Image) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.Image)other); } else { super.mergeFrom(other); return this; @@ -514,8 +479,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.Image other) { - if (other == com.google.cloud.recommendationengine.v1beta1.Image.getDefaultInstance()) - return this; + if (other == com.google.cloud.recommendationengine.v1beta1.Image.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); @@ -545,8 +509,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.Image) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.Image) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -558,20 +521,18 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** - * - * *
            * Required. URL of the image with a length limit of 5 KiB.
            * 
      * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -580,21 +541,20 @@ public java.lang.String getUri() { } } /** - * - * *
            * Required. URL of the image with a length limit of 5 KiB.
            * 
      * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -602,76 +562,66 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
            * Required. URL of the image with a length limit of 5 KiB.
            * 
      * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
            * Required. URL of the image with a length limit of 5 KiB.
            * 
      * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
            * Required. URL of the image with a length limit of 5 KiB.
            * 
      * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - private int height_; + private int height_ ; /** - * - * *
            * Optional. Height of the image in number of pixels.
            * 
      * * int32 height = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The height. */ @java.lang.Override @@ -679,51 +629,42 @@ public int getHeight() { return height_; } /** - * - * *
            * Optional. Height of the image in number of pixels.
            * 
      * * int32 height = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(int value) { - + height_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Height of the image in number of pixels.
            * 
      * * int32 height = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearHeight() { - + height_ = 0; onChanged(); return this; } - private int width_; + private int width_ ; /** - * - * *
            * Optional. Width of the image in number of pixels.
            * 
      * * int32 width = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The width. */ @java.lang.Override @@ -731,43 +672,37 @@ public int getWidth() { return width_; } /** - * - * *
            * Optional. Width of the image in number of pixels.
            * 
      * * int32 width = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The width to set. * @return This builder for chaining. */ public Builder setWidth(int value) { - + width_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Width of the image in number of pixels.
            * 
      * * int32 width = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearWidth() { - + width_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -777,12 +712,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.Image) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.Image) private static final com.google.cloud.recommendationengine.v1beta1.Image DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.Image(); } @@ -791,16 +726,16 @@ public static com.google.cloud.recommendationengine.v1beta1.Image getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Image parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Image(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Image parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Image(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -815,4 +750,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.recommendationengine.v1beta1.Image getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImageOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImageOrBuilder.java similarity index 61% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImageOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImageOrBuilder.java index 42c2d31e..dd659da3 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImageOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImageOrBuilder.java @@ -1,75 +1,48 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ImageOrBuilder - extends +public interface ImageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.Image) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required. URL of the image with a length limit of 5 KiB.
          * 
      * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
          * Required. URL of the image with a length limit of 5 KiB.
          * 
      * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
          * Optional. Height of the image in number of pixels.
          * 
      * * int32 height = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The height. */ int getHeight(); /** - * - * *
          * Optional. Width of the image in number of pixels.
          * 
      * * int32 width = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The width. */ int getWidth(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Import.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Import.java new file mode 100644 index 00000000..37f0297e --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Import.java @@ -0,0 +1,244 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/import.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public final class Import { + private Import() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/recommendationengine/v1be" + + "ta1/import.proto\022)google.cloud.recommend" + + "ationengine.v1beta1\032\037google/api/field_be" + + "havior.proto\032\031google/api/resource.proto\032" + + "7google/cloud/recommendationengine/v1bet" + + "a1/catalog.proto\032:google/cloud/recommend" + + "ationengine/v1beta1/user_event.proto\032Ngo" + + "ogle/cloud/recommendationengine/v1beta1/" + + "recommendationengine_resources.proto\032\037go" + + "ogle/protobuf/timestamp.proto\032\027google/rp" + + "c/status.proto\032\034google/api/annotations.p" + + "roto\"$\n\tGcsSource\022\027\n\ninput_uris\030\001 \003(\tB\003\340" + + "A\002\"i\n\023CatalogInlineSource\022R\n\rcatalog_ite" + + "ms\030\001 \003(\01326.google.cloud.recommendationen" + + "gine.v1beta1.CatalogItemB\003\340A\001\"g\n\025UserEve" + + "ntInlineSource\022N\n\013user_events\030\001 \003(\01324.go" + + "ogle.cloud.recommendationengine.v1beta1." + + "UserEventB\003\340A\001\"9\n\022ImportErrorsConfig\022\024\n\n" + + "gcs_prefix\030\001 \001(\tH\000B\r\n\013destination\"\247\002\n\031Im" + + "portCatalogItemsRequest\022C\n\006parent\030\001 \001(\tB" + + "3\340A\002\372A-\n+recommendationengine.googleapis" + + ".com/Catalog\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022Q\n" + + "\014input_config\030\003 \001(\01326.google.cloud.recom" + + "mendationengine.v1beta1.InputConfigB\003\340A\002" + + "\022Y\n\rerrors_config\030\004 \001(\0132=.google.cloud.r" + + "ecommendationengine.v1beta1.ImportErrors" + + "ConfigB\003\340A\001\"\250\002\n\027ImportUserEventsRequest\022" + + "F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.recommendatione" + + "ngine.googleapis.com/EventStore\022\027\n\nreque" + + "st_id\030\002 \001(\tB\003\340A\001\022Q\n\014input_config\030\003 \001(\01326" + + ".google.cloud.recommendationengine.v1bet" + + "a1.InputConfigB\003\340A\002\022Y\n\rerrors_config\030\004 \001" + + "(\0132=.google.cloud.recommendationengine.v" + + "1beta1.ImportErrorsConfigB\003\340A\001\"\252\002\n\013Input" + + "Config\022_\n\025catalog_inline_source\030\001 \001(\0132>." + + "google.cloud.recommendationengine.v1beta" + + "1.CatalogInlineSourceH\000\022J\n\ngcs_source\030\002 " + + "\001(\01324.google.cloud.recommendationengine." + + "v1beta1.GcsSourceH\000\022d\n\030user_event_inline" + + "_source\030\003 \001(\0132@.google.cloud.recommendat" + + "ionengine.v1beta1.UserEventInlineSourceH" + + "\000B\010\n\006source\"\314\001\n\016ImportMetadata\022\026\n\016operat" + + "ion_name\030\005 \001(\t\022\022\n\nrequest_id\030\003 \001(\t\022/\n\013cr" + + "eate_time\030\004 \001(\0132\032.google.protobuf.Timest" + + "amp\022\025\n\rsuccess_count\030\001 \001(\003\022\025\n\rfailure_co" + + "unt\030\002 \001(\003\022/\n\013update_time\030\006 \001(\0132\032.google." + + "protobuf.Timestamp\"\235\001\n\032ImportCatalogItem" + + "sResponse\022)\n\rerror_samples\030\001 \003(\0132\022.googl" + + "e.rpc.Status\022T\n\rerrors_config\030\002 \001(\0132=.go" + + "ogle.cloud.recommendationengine.v1beta1." + + "ImportErrorsConfig\"\366\001\n\030ImportUserEventsR" + + "esponse\022)\n\rerror_samples\030\001 \003(\0132\022.google." + + "rpc.Status\022T\n\rerrors_config\030\002 \001(\0132=.goog" + + "le.cloud.recommendationengine.v1beta1.Im" + + "portErrorsConfig\022Y\n\016import_summary\030\003 \001(\013" + + "2A.google.cloud.recommendationengine.v1b" + + "eta1.UserEventImportSummary\"T\n\026UserEvent" + + "ImportSummary\022\033\n\023joined_events_count\030\001 \001" + + "(\003\022\035\n\025unjoined_events_count\030\002 \001(\003B\237\002\n-co" + + "m.google.cloud.recommendationengine.v1be" + + "ta1P\001Z]google.golang.org/genproto/google" + + "apis/cloud/recommendationengine/v1beta1;" + + "recommendationengine\242\002\005RECAI\252\002)Google.Cl" + + "oud.RecommendationEngine.V1Beta1\312\002)Googl" + + "e\\Cloud\\RecommendationEngine\\V1beta1\352\002,G" + + "oogle::Cloud::RecommendationEngine::V1be" + + "ta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor, + new java.lang.String[] { "InputUris", }); + internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor, + new java.lang.String[] { "CatalogItems", }); + internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor, + new java.lang.String[] { "UserEvents", }); + internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor, + new java.lang.String[] { "GcsPrefix", "Destination", }); + internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor, + new java.lang.String[] { "Parent", "RequestId", "InputConfig", "ErrorsConfig", }); + internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor, + new java.lang.String[] { "Parent", "RequestId", "InputConfig", "ErrorsConfig", }); + internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor, + new java.lang.String[] { "CatalogInlineSource", "GcsSource", "UserEventInlineSource", "Source", }); + internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor, + new java.lang.String[] { "OperationName", "RequestId", "CreateTime", "SuccessCount", "FailureCount", "UpdateTime", }); + internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor, + new java.lang.String[] { "ErrorSamples", "ErrorsConfig", }); + internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor, + new java.lang.String[] { "ErrorSamples", "ErrorsConfig", "ImportSummary", }); + internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor, + new java.lang.String[] { "JoinedEventsCount", "UnjoinedEventsCount", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequest.java similarity index 61% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequest.java index f5b73b69..70c86760 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Request message for Import methods.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest} */ -public final class ImportCatalogItemsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportCatalogItemsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) ImportCatalogItemsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportCatalogItemsRequest.newBuilder() to construct. private ImportCatalogItemsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImportCatalogItemsRequest() { parent_ = ""; requestId_ = ""; @@ -44,15 +26,16 @@ private ImportCatalogItemsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportCatalogItemsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImportCatalogItemsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,62 +54,51 @@ private ImportCatalogItemsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; + requestId_ = s; + break; + } + case 26: { + com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); } - case 26: - { - com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.InputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } - - break; + inputConfig_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder subBuilder = - null; - if (errorsConfig_ != null) { - subBuilder = errorsConfig_.toBuilder(); - } - errorsConfig_ = - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(errorsConfig_); - errorsConfig_ = subBuilder.buildPartial(); - } - break; + break; + } + case 34: { + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder subBuilder = null; + if (errorsConfig_ != null) { + subBuilder = errorsConfig_.toBuilder(); + } + errorsConfig_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(errorsConfig_); + errorsConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -134,41 +106,34 @@ private ImportCatalogItemsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.class, - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.class, com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
          * Required. `projects/1234/locations/global/catalogs/default_catalog`
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -177,31 +142,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
          * Required. `projects/1234/locations/global/catalogs/default_catalog`
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -212,8 +175,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** - * - * *
          * Optional. Unique identifier provided by client, within the ancestor
          * dataset scope. Ensures idempotency and used for request deduplication.
      @@ -222,7 +183,6 @@ public com.google.protobuf.ByteString getParentBytes() {
          * 
      * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -231,15 +191,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
          * Optional. Unique identifier provided by client, within the ancestor
          * dataset scope. Ensures idempotency and used for request deduplication.
      @@ -248,15 +207,16 @@ public java.lang.String getRequestId() {
          * 
      * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -267,16 +227,11 @@ public com.google.protobuf.ByteString getRequestIdBytes() { public static final int INPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.recommendationengine.v1beta1.InputConfig inputConfig_; /** - * - * *
          * Required. The desired input location of the data.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -284,54 +239,37 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
          * Required. The desired input location of the data.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.InputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
          * Required. The desired input location of the data.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder - getInputConfigOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { return getInputConfig(); } public static final int ERRORS_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errorsConfig_; /** - * - * *
          * Optional. The desired location of errors incurred during the Import.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the errorsConfig field is set. */ @java.lang.Override @@ -339,43 +277,30 @@ public boolean hasErrorsConfig() { return errorsConfig_ != null; } /** - * - * *
          * Optional. The desired location of errors incurred during the Import.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The errorsConfig. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig() { - return errorsConfig_ == null - ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() - : errorsConfig_; + return errorsConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; } /** - * - * *
          * Optional. The desired location of errors incurred during the Import.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder - getErrorsConfigOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder() { return getErrorsConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -387,7 +312,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -416,10 +342,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInputConfig()); } if (errorsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getErrorsConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getErrorsConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -429,23 +357,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest other = - (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) obj; + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest other = (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } if (hasErrorsConfig() != other.hasErrorsConfig()) return false; if (hasErrorsConfig()) { - if (!getErrorsConfig().equals(other.getErrorsConfig())) return false; + if (!getErrorsConfig() + .equals(other.getErrorsConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -476,146 +407,134 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Request message for Import methods.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.class, - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.Builder - .class); + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.class, com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -639,22 +558,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest build() { - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest result = - buildPartial(); + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -663,8 +579,7 @@ public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest b @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest result = - new com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest(this); + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest result = new com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest(this); result.parent_ = parent_; result.requestId_ = requestId_; if (inputConfigBuilder_ == null) { @@ -685,52 +600,46 @@ public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest b public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) other); + if (other instanceof com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) { + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest other) { + if (other == com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -764,9 +673,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -778,22 +685,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
            * Required. `projects/1234/locations/global/catalogs/default_catalog`
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -802,23 +705,20 @@ public java.lang.String getParent() { } } /** - * - * *
            * Required. `projects/1234/locations/global/catalogs/default_catalog`
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -826,67 +726,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
            * Required. `projects/1234/locations/global/catalogs/default_catalog`
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
            * Required. `projects/1234/locations/global/catalogs/default_catalog`
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
            * Required. `projects/1234/locations/global/catalogs/default_catalog`
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -894,8 +781,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
            * Optional. Unique identifier provided by client, within the ancestor
            * dataset scope. Ensures idempotency and used for request deduplication.
      @@ -904,13 +789,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
            * 
      * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -919,8 +804,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
            * Optional. Unique identifier provided by client, within the ancestor
            * dataset scope. Ensures idempotency and used for request deduplication.
      @@ -929,14 +812,15 @@ public java.lang.String getRequestId() {
            * 
      * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -944,8 +828,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
            * Optional. Unique identifier provided by client, within the ancestor
            * dataset scope. Ensures idempotency and used for request deduplication.
      @@ -954,22 +836,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
            * 
      * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Unique identifier provided by client, within the ancestor
            * dataset scope. Ensures idempotency and used for request deduplication.
      @@ -978,18 +858,15 @@ public Builder setRequestId(java.lang.String value) {
            * 
      * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
            * Optional. Unique identifier provided by client, within the ancestor
            * dataset scope. Ensures idempotency and used for request deduplication.
      @@ -998,16 +875,16 @@ public Builder clearRequestId() {
            * 
      * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; @@ -1015,58 +892,39 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.recommendationengine.v1beta1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.InputConfig, - com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, - com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.recommendationengine.v1beta1.InputConfig, com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
            * Required. The desired input location of the data.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
            * Required. The desired input location of the data.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ public com.google.cloud.recommendationengine.v1beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
            * Required. The desired input location of the data.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig(com.google.cloud.recommendationengine.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { @@ -1082,15 +940,11 @@ public Builder setInputConfig(com.google.cloud.recommendationengine.v1beta1.Inpu return this; } /** - * - * *
            * Required. The desired input location of the data.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig( com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder builderForValue) { @@ -1104,24 +958,17 @@ public Builder setInputConfig( return this; } /** - * - * *
            * Required. The desired input location of the data.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeInputConfig( - com.google.cloud.recommendationengine.v1beta1.InputConfig value) { + public Builder mergeInputConfig(com.google.cloud.recommendationengine.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.recommendationengine.v1beta1.InputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.recommendationengine.v1beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -1133,15 +980,11 @@ public Builder mergeInputConfig( return this; } /** - * - * *
            * Required. The desired input location of the data.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -1155,66 +998,48 @@ public Builder clearInputConfig() { return this; } /** - * - * *
            * Required. The desired input location of the data.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder - getInputConfigBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder getInputConfigBuilder() { + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
            * Required. The desired input location of the data.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder - getInputConfigOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
            * Required. The desired input location of the data.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.InputConfig, - com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, - com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder> + com.google.cloud.recommendationengine.v1beta1.InputConfig, com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.InputConfig, - com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, - com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.InputConfig, com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; @@ -1222,61 +1047,41 @@ public Builder clearInputConfig() { private com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errorsConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> - errorsConfigBuilder_; + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> errorsConfigBuilder_; /** - * - * *
            * Optional. The desired location of errors incurred during the Import.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the errorsConfig field is set. */ public boolean hasErrorsConfig() { return errorsConfigBuilder_ != null || errorsConfig_ != null; } /** - * - * *
            * Optional. The desired location of errors incurred during the Import.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The errorsConfig. */ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig() { if (errorsConfigBuilder_ == null) { - return errorsConfig_ == null - ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() - : errorsConfig_; + return errorsConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; } else { return errorsConfigBuilder_.getMessage(); } } /** - * - * *
            * Optional. The desired location of errors incurred during the Import.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setErrorsConfig( - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { + public Builder setErrorsConfig(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { if (errorsConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1290,15 +1095,11 @@ public Builder setErrorsConfig( return this; } /** - * - * *
            * Optional. The desired location of errors incurred during the Import.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setErrorsConfig( com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder builderForValue) { @@ -1312,25 +1113,17 @@ public Builder setErrorsConfig( return this; } /** - * - * *
            * Optional. The desired location of errors incurred during the Import.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeErrorsConfig( - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { + public Builder mergeErrorsConfig(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { if (errorsConfigBuilder_ == null) { if (errorsConfig_ != null) { errorsConfig_ = - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.newBuilder( - errorsConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.newBuilder(errorsConfig_).mergeFrom(value).buildPartial(); } else { errorsConfig_ = value; } @@ -1342,15 +1135,11 @@ public Builder mergeErrorsConfig( return this; } /** - * - * *
            * Optional. The desired location of errors incurred during the Import.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearErrorsConfig() { if (errorsConfigBuilder_ == null) { @@ -1364,73 +1153,55 @@ public Builder clearErrorsConfig() { return this; } /** - * - * *
            * Optional. The desired location of errors incurred during the Import.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder - getErrorsConfigBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder getErrorsConfigBuilder() { + onChanged(); return getErrorsConfigFieldBuilder().getBuilder(); } /** - * - * *
            * Optional. The desired location of errors incurred during the Import.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder - getErrorsConfigOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder() { if (errorsConfigBuilder_ != null) { return errorsConfigBuilder_.getMessageOrBuilder(); } else { - return errorsConfig_ == null - ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() - : errorsConfig_; + return errorsConfig_ == null ? + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; } } /** - * - * *
            * Optional. The desired location of errors incurred during the Import.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> getErrorsConfigFieldBuilder() { if (errorsConfigBuilder_ == null) { - errorsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder>( - getErrorsConfig(), getParentForChildren(), isClean()); + errorsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder>( + getErrorsConfig(), + getParentForChildren(), + isClean()); errorsConfig_ = null; } return errorsConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1440,33 +1211,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) - private static final com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest(); + DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportCatalogItemsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportCatalogItemsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportCatalogItemsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportCatalogItemsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1478,8 +1246,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequestOrBuilder.java index ac76d013..a092c2e5 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ImportCatalogItemsRequestOrBuilder - extends +public interface ImportCatalogItemsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required. `projects/1234/locations/global/catalogs/default_catalog`
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
          * Required. `projects/1234/locations/global/catalogs/default_catalog`
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
          * Optional. Unique identifier provided by client, within the ancestor
          * dataset scope. Ensures idempotency and used for request deduplication.
      @@ -63,13 +36,10 @@ public interface ImportCatalogItemsRequestOrBuilder
          * 
      * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
          * Optional. Unique identifier provided by client, within the ancestor
          * dataset scope. Ensures idempotency and used for request deduplication.
      @@ -78,91 +48,62 @@ public interface ImportCatalogItemsRequestOrBuilder
          * 
      * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); /** - * - * *
          * Required. The desired input location of the data.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
          * Required. The desired input location of the data.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ com.google.cloud.recommendationengine.v1beta1.InputConfig getInputConfig(); /** - * - * *
          * Required. The desired input location of the data.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** - * - * *
          * Optional. The desired location of errors incurred during the Import.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the errorsConfig field is set. */ boolean hasErrorsConfig(); /** - * - * *
          * Optional. The desired location of errors incurred during the Import.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The errorsConfig. */ com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig(); /** - * - * *
          * Optional. The desired location of errors incurred during the Import.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder - getErrorsConfigOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder(); } diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponse.java similarity index 70% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponse.java index 86be350c..2c12d2ea 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Response of the ImportCatalogItemsRequest. If the long running
        * operation is done, then this message is returned by the
      @@ -29,31 +12,31 @@
        *
        * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse}
        */
      -public final class ImportCatalogItemsResponse extends com.google.protobuf.GeneratedMessageV3
      -    implements
      +public final class ImportCatalogItemsResponse extends
      +    com.google.protobuf.GeneratedMessageV3 implements
           // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse)
           ImportCatalogItemsResponseOrBuilder {
      -  private static final long serialVersionUID = 0L;
      +private static final long serialVersionUID = 0L;
         // Use ImportCatalogItemsResponse.newBuilder() to construct.
         private ImportCatalogItemsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
      -
         private ImportCatalogItemsResponse() {
           errorSamples_ = java.util.Collections.emptyList();
         }
       
         @java.lang.Override
         @SuppressWarnings({"unused"})
      -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      +  protected java.lang.Object newInstance(
      +      UnusedPrivateParameter unused) {
           return new ImportCatalogItemsResponse();
         }
       
         @java.lang.Override
      -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      +  public final com.google.protobuf.UnknownFieldSet
      +  getUnknownFields() {
           return this.unknownFields;
         }
      -
         private ImportCatalogItemsResponse(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      @@ -73,41 +56,35 @@ private ImportCatalogItemsResponse(
                 case 0:
                   done = true;
                   break;
      -          case 10:
      -            {
      -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
      -                errorSamples_ = new java.util.ArrayList();
      -                mutable_bitField0_ |= 0x00000001;
      -              }
      -              errorSamples_.add(
      -                  input.readMessage(com.google.rpc.Status.parser(), extensionRegistry));
      -              break;
      +          case 10: {
      +            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
      +              errorSamples_ = new java.util.ArrayList();
      +              mutable_bitField0_ |= 0x00000001;
                   }
      -          case 18:
      -            {
      -              com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder subBuilder =
      -                  null;
      -              if (errorsConfig_ != null) {
      -                subBuilder = errorsConfig_.toBuilder();
      -              }
      -              errorsConfig_ =
      -                  input.readMessage(
      -                      com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.parser(),
      -                      extensionRegistry);
      -              if (subBuilder != null) {
      -                subBuilder.mergeFrom(errorsConfig_);
      -                errorsConfig_ = subBuilder.buildPartial();
      -              }
      -
      -              break;
      +            errorSamples_.add(
      +                input.readMessage(com.google.rpc.Status.parser(), extensionRegistry));
      +            break;
      +          }
      +          case 18: {
      +            com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder subBuilder = null;
      +            if (errorsConfig_ != null) {
      +              subBuilder = errorsConfig_.toBuilder();
      +            }
      +            errorsConfig_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.parser(), extensionRegistry);
      +            if (subBuilder != null) {
      +              subBuilder.mergeFrom(errorsConfig_);
      +              errorsConfig_ = subBuilder.buildPartial();
                   }
      -          default:
      -            {
      -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
      -                done = true;
      -              }
      -              break;
      +
      +            break;
      +          }
      +          default: {
      +            if (!parseUnknownField(
      +                input, unknownFields, extensionRegistry, tag)) {
      +              done = true;
                   }
      +            break;
      +          }
               }
             }
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      @@ -115,7 +92,8 @@ private ImportCatalogItemsResponse(
           } catch (com.google.protobuf.UninitializedMessageException e) {
             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
           } catch (java.io.IOException e) {
      -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      +      throw new com.google.protobuf.InvalidProtocolBufferException(
      +          e).setUnfinishedMessage(this);
           } finally {
             if (((mutable_bitField0_ & 0x00000001) != 0)) {
               errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_);
      @@ -124,27 +102,22 @@ private ImportCatalogItemsResponse(
             makeExtensionsImmutable();
           }
         }
      -
      -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -    return com.google.cloud.recommendationengine.v1beta1.Import
      -        .internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor;
      +  public static final com.google.protobuf.Descriptors.Descriptor
      +      getDescriptor() {
      +    return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor;
         }
       
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
      -    return com.google.cloud.recommendationengine.v1beta1.Import
      -        .internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_fieldAccessorTable
      +    return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
      -            com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.class,
      -            com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.Builder.class);
      +            com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.class, com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.Builder.class);
         }
       
         public static final int ERROR_SAMPLES_FIELD_NUMBER = 1;
         private java.util.List errorSamples_;
         /**
      -   *
      -   *
          * 
          * A sample of errors encountered while processing the request.
          * 
      @@ -156,8 +129,6 @@ public java.util.List getErrorSamplesList() { return errorSamples_; } /** - * - * *
          * A sample of errors encountered while processing the request.
          * 
      @@ -165,12 +136,11 @@ public java.util.List getErrorSamplesList() { * repeated .google.rpc.Status error_samples = 1; */ @java.lang.Override - public java.util.List getErrorSamplesOrBuilderList() { + public java.util.List + getErrorSamplesOrBuilderList() { return errorSamples_; } /** - * - * *
          * A sample of errors encountered while processing the request.
          * 
      @@ -182,8 +152,6 @@ public int getErrorSamplesCount() { return errorSamples_.size(); } /** - * - * *
          * A sample of errors encountered while processing the request.
          * 
      @@ -195,8 +163,6 @@ public com.google.rpc.Status getErrorSamples(int index) { return errorSamples_.get(index); } /** - * - * *
          * A sample of errors encountered while processing the request.
          * 
      @@ -204,21 +170,19 @@ public com.google.rpc.Status getErrorSamples(int index) { * repeated .google.rpc.Status error_samples = 1; */ @java.lang.Override - public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder( + int index) { return errorSamples_.get(index); } public static final int ERRORS_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errorsConfig_; /** - * - * *
          * Echoes the destination for the complete errors in the request if set.
          * 
      * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; - * * @return Whether the errorsConfig field is set. */ @java.lang.Override @@ -226,25 +190,18 @@ public boolean hasErrorsConfig() { return errorsConfig_ != null; } /** - * - * *
          * Echoes the destination for the complete errors in the request if set.
          * 
      * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; - * * @return The errorsConfig. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig() { - return errorsConfig_ == null - ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() - : errorsConfig_; + return errorsConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; } /** - * - * *
          * Echoes the destination for the complete errors in the request if set.
          * 
      @@ -252,13 +209,11 @@ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getError * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder - getErrorsConfigOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder() { return getErrorsConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,7 +225,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < errorSamples_.size(); i++) { output.writeMessage(1, errorSamples_.get(i)); } @@ -287,10 +243,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < errorSamples_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, errorSamples_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, errorSamples_.get(i)); } if (errorsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getErrorsConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getErrorsConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -300,19 +258,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse)) { + if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse other = - (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse) obj; + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse other = (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse) obj; - if (!getErrorSamplesList().equals(other.getErrorSamplesList())) return false; + if (!getErrorSamplesList() + .equals(other.getErrorSamplesList())) return false; if (hasErrorsConfig() != other.hasErrorsConfig()) return false; if (hasErrorsConfig()) { - if (!getErrorsConfig().equals(other.getErrorsConfig())) return false; + if (!getErrorsConfig() + .equals(other.getErrorsConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -339,105 +297,96 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Response of the ImportCatalogItemsRequest. If the long running
          * operation is done, then this message is returned by the
      @@ -446,43 +395,39 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *
          * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse}
          */
      -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
      -      implements
      +  public static final class Builder extends
      +      com.google.protobuf.GeneratedMessageV3.Builder implements
             // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse)
             com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponseOrBuilder {
      -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -      return com.google.cloud.recommendationengine.v1beta1.Import
      -          .internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor;
      +    public static final com.google.protobuf.Descriptors.Descriptor
      +        getDescriptor() {
      +      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor;
           }
       
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
      -      return com.google.cloud.recommendationengine.v1beta1.Import
      -          .internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_fieldAccessorTable
      +      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
      -              com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.class,
      -              com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.Builder
      -                  .class);
      +              com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.class, com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.Builder.class);
           }
       
      -    // Construct using
      -    // com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.newBuilder()
      +    // Construct using com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.newBuilder()
           private Builder() {
             maybeForceBuilderInitialization();
           }
       
      -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +    private Builder(
      +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
             maybeForceBuilderInitialization();
           }
      -
           private void maybeForceBuilderInitialization() {
      -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
      +      if (com.google.protobuf.GeneratedMessageV3
      +              .alwaysUseFieldBuilders) {
               getErrorSamplesFieldBuilder();
             }
           }
      -
           @java.lang.Override
           public Builder clear() {
             super.clear();
      @@ -502,22 +447,19 @@ public Builder clear() {
           }
       
           @java.lang.Override
      -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      -      return com.google.cloud.recommendationengine.v1beta1.Import
      -          .internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor;
      +    public com.google.protobuf.Descriptors.Descriptor
      +        getDescriptorForType() {
      +      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor;
           }
       
           @java.lang.Override
      -    public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse
      -        getDefaultInstanceForType() {
      -      return com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse
      -          .getDefaultInstance();
      +    public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse getDefaultInstanceForType() {
      +      return com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.getDefaultInstance();
           }
       
           @java.lang.Override
           public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse build() {
      -      com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse result =
      -          buildPartial();
      +      com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse result = buildPartial();
             if (!result.isInitialized()) {
               throw newUninitializedMessageException(result);
             }
      @@ -526,8 +468,7 @@ public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse
       
           @java.lang.Override
           public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse buildPartial() {
      -      com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse result =
      -          new com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse(this);
      +      com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse result = new com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse(this);
             int from_bitField0_ = bitField0_;
             if (errorSamplesBuilder_ == null) {
               if (((bitField0_ & 0x00000001) != 0)) {
      @@ -551,52 +492,46 @@ public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse
           public Builder clone() {
             return super.clone();
           }
      -
           @java.lang.Override
           public Builder setField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        java.lang.Object value) {
             return super.setField(field, value);
           }
      -
           @java.lang.Override
      -    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      +    public Builder clearField(
      +        com.google.protobuf.Descriptors.FieldDescriptor field) {
             return super.clearField(field);
           }
      -
           @java.lang.Override
      -    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      +    public Builder clearOneof(
      +        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
             return super.clearOneof(oneof);
           }
      -
           @java.lang.Override
           public Builder setRepeatedField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        int index, java.lang.Object value) {
             return super.setRepeatedField(field, index, value);
           }
      -
           @java.lang.Override
           public Builder addRepeatedField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        java.lang.Object value) {
             return super.addRepeatedField(field, value);
           }
      -
           @java.lang.Override
           public Builder mergeFrom(com.google.protobuf.Message other) {
      -      if (other
      -          instanceof com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse) {
      -        return mergeFrom(
      -            (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse) other);
      +      if (other instanceof com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse) {
      +        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse)other);
             } else {
               super.mergeFrom(other);
               return this;
             }
           }
       
      -    public Builder mergeFrom(
      -        com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse other) {
      -      if (other
      -          == com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse
      -              .getDefaultInstance()) return this;
      +    public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse other) {
      +      if (other == com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.getDefaultInstance()) return this;
             if (errorSamplesBuilder_ == null) {
               if (!other.errorSamples_.isEmpty()) {
                 if (errorSamples_.isEmpty()) {
      @@ -615,10 +550,9 @@ public Builder mergeFrom(
                   errorSamplesBuilder_ = null;
                   errorSamples_ = other.errorSamples_;
                   bitField0_ = (bitField0_ & ~0x00000001);
      -            errorSamplesBuilder_ =
      -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
      -                    ? getErrorSamplesFieldBuilder()
      -                    : null;
      +            errorSamplesBuilder_ = 
      +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
      +                 getErrorSamplesFieldBuilder() : null;
                 } else {
                   errorSamplesBuilder_.addAllMessages(other.errorSamples_);
                 }
      @@ -646,9 +580,7 @@ public Builder mergeFrom(
             try {
               parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      -        parsedMessage =
      -            (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse)
      -                e.getUnfinishedMessage();
      +        parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse) e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
               if (parsedMessage != null) {
      @@ -657,25 +589,21 @@ public Builder mergeFrom(
             }
             return this;
           }
      -
           private int bitField0_;
       
      -    private java.util.List errorSamples_ = java.util.Collections.emptyList();
      -
      +    private java.util.List errorSamples_ =
      +      java.util.Collections.emptyList();
           private void ensureErrorSamplesIsMutable() {
             if (!((bitField0_ & 0x00000001) != 0)) {
               errorSamples_ = new java.util.ArrayList(errorSamples_);
               bitField0_ |= 0x00000001;
      -      }
      +       }
           }
       
           private com.google.protobuf.RepeatedFieldBuilderV3<
      -            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
      -        errorSamplesBuilder_;
      +        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorSamplesBuilder_;
       
           /**
      -     *
      -     *
            * 
            * A sample of errors encountered while processing the request.
            * 
      @@ -690,8 +618,6 @@ public java.util.List getErrorSamplesList() { } } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      @@ -706,8 +632,6 @@ public int getErrorSamplesCount() { } } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      @@ -722,15 +646,14 @@ public com.google.rpc.Status getErrorSamples(int index) { } } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public Builder setErrorSamples(int index, com.google.rpc.Status value) { + public Builder setErrorSamples( + int index, com.google.rpc.Status value) { if (errorSamplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -744,15 +667,14 @@ public Builder setErrorSamples(int index, com.google.rpc.Status value) { return this; } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + public Builder setErrorSamples( + int index, com.google.rpc.Status.Builder builderForValue) { if (errorSamplesBuilder_ == null) { ensureErrorSamplesIsMutable(); errorSamples_.set(index, builderForValue.build()); @@ -763,8 +685,6 @@ public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderF return this; } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      @@ -785,15 +705,14 @@ public Builder addErrorSamples(com.google.rpc.Status value) { return this; } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public Builder addErrorSamples(int index, com.google.rpc.Status value) { + public Builder addErrorSamples( + int index, com.google.rpc.Status value) { if (errorSamplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -807,15 +726,14 @@ public Builder addErrorSamples(int index, com.google.rpc.Status value) { return this; } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public Builder addErrorSamples(com.google.rpc.Status.Builder builderForValue) { + public Builder addErrorSamples( + com.google.rpc.Status.Builder builderForValue) { if (errorSamplesBuilder_ == null) { ensureErrorSamplesIsMutable(); errorSamples_.add(builderForValue.build()); @@ -826,15 +744,14 @@ public Builder addErrorSamples(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public Builder addErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + public Builder addErrorSamples( + int index, com.google.rpc.Status.Builder builderForValue) { if (errorSamplesBuilder_ == null) { ensureErrorSamplesIsMutable(); errorSamples_.add(index, builderForValue.build()); @@ -845,18 +762,18 @@ public Builder addErrorSamples(int index, com.google.rpc.Status.Builder builderF return this; } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public Builder addAllErrorSamples(java.lang.Iterable values) { + public Builder addAllErrorSamples( + java.lang.Iterable values) { if (errorSamplesBuilder_ == null) { ensureErrorSamplesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorSamples_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errorSamples_); onChanged(); } else { errorSamplesBuilder_.addAllMessages(values); @@ -864,8 +781,6 @@ public Builder addAllErrorSamples(java.lang.Iterable * A sample of errors encountered while processing the request. *
      @@ -883,8 +798,6 @@ public Builder clearErrorSamples() { return this; } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      @@ -902,43 +815,39 @@ public Builder removeErrorSamples(int index) { return this; } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public com.google.rpc.Status.Builder getErrorSamplesBuilder(int index) { + public com.google.rpc.Status.Builder getErrorSamplesBuilder( + int index) { return getErrorSamplesFieldBuilder().getBuilder(index); } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder( + int index) { if (errorSamplesBuilder_ == null) { - return errorSamples_.get(index); - } else { + return errorSamples_.get(index); } else { return errorSamplesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public java.util.List getErrorSamplesOrBuilderList() { + public java.util.List + getErrorSamplesOrBuilderList() { if (errorSamplesBuilder_ != null) { return errorSamplesBuilder_.getMessageOrBuilderList(); } else { @@ -946,8 +855,6 @@ public java.util.List getErrorSamplesO } } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      @@ -955,44 +862,42 @@ public java.util.List getErrorSamplesO * repeated .google.rpc.Status error_samples = 1; */ public com.google.rpc.Status.Builder addErrorSamplesBuilder() { - return getErrorSamplesFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + return getErrorSamplesFieldBuilder().addBuilder( + com.google.rpc.Status.getDefaultInstance()); } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public com.google.rpc.Status.Builder addErrorSamplesBuilder(int index) { - return getErrorSamplesFieldBuilder() - .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + public com.google.rpc.Status.Builder addErrorSamplesBuilder( + int index) { + return getErrorSamplesFieldBuilder().addBuilder( + index, com.google.rpc.Status.getDefaultInstance()); } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public java.util.List getErrorSamplesBuilderList() { + public java.util.List + getErrorSamplesBuilderList() { return getErrorSamplesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getErrorSamplesFieldBuilder() { if (errorSamplesBuilder_ == null) { - errorSamplesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - errorSamples_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + errorSamplesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + errorSamples_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); errorSamples_ = null; } return errorSamplesBuilder_; @@ -1000,55 +905,41 @@ public java.util.List getErrorSamplesBuilderList( private com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errorsConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> - errorsConfigBuilder_; + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> errorsConfigBuilder_; /** - * - * *
            * Echoes the destination for the complete errors in the request if set.
            * 
      * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; - * * @return Whether the errorsConfig field is set. */ public boolean hasErrorsConfig() { return errorsConfigBuilder_ != null || errorsConfig_ != null; } /** - * - * *
            * Echoes the destination for the complete errors in the request if set.
            * 
      * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; - * * @return The errorsConfig. */ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig() { if (errorsConfigBuilder_ == null) { - return errorsConfig_ == null - ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() - : errorsConfig_; + return errorsConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; } else { return errorsConfigBuilder_.getMessage(); } } /** - * - * *
            * Echoes the destination for the complete errors in the request if set.
            * 
      * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; */ - public Builder setErrorsConfig( - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { + public Builder setErrorsConfig(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { if (errorsConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1062,8 +953,6 @@ public Builder setErrorsConfig( return this; } /** - * - * *
            * Echoes the destination for the complete errors in the request if set.
            * 
      @@ -1082,23 +971,17 @@ public Builder setErrorsConfig( return this; } /** - * - * *
            * Echoes the destination for the complete errors in the request if set.
            * 
      * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; */ - public Builder mergeErrorsConfig( - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { + public Builder mergeErrorsConfig(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { if (errorsConfigBuilder_ == null) { if (errorsConfig_ != null) { errorsConfig_ = - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.newBuilder( - errorsConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.newBuilder(errorsConfig_).mergeFrom(value).buildPartial(); } else { errorsConfig_ = value; } @@ -1110,8 +993,6 @@ public Builder mergeErrorsConfig( return this; } /** - * - * *
            * Echoes the destination for the complete errors in the request if set.
            * 
      @@ -1130,42 +1011,33 @@ public Builder clearErrorsConfig() { return this; } /** - * - * *
            * Echoes the destination for the complete errors in the request if set.
            * 
      * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; */ - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder - getErrorsConfigBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder getErrorsConfigBuilder() { + onChanged(); return getErrorsConfigFieldBuilder().getBuilder(); } /** - * - * *
            * Echoes the destination for the complete errors in the request if set.
            * 
      * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; */ - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder - getErrorsConfigOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder() { if (errorsConfigBuilder_ != null) { return errorsConfigBuilder_.getMessageOrBuilder(); } else { - return errorsConfig_ == null - ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() - : errorsConfig_; + return errorsConfig_ == null ? + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; } } /** - * - * *
            * Echoes the destination for the complete errors in the request if set.
            * 
      @@ -1173,24 +1045,21 @@ public Builder clearErrorsConfig() { * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> getErrorsConfigFieldBuilder() { if (errorsConfigBuilder_ == null) { - errorsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder>( - getErrorsConfig(), getParentForChildren(), isClean()); + errorsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder>( + getErrorsConfig(), + getParentForChildren(), + isClean()); errorsConfig_ = null; } return errorsConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1200,33 +1069,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse) - private static final com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse(); + DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse(); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportCatalogItemsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportCatalogItemsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportCatalogItemsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportCatalogItemsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1238,8 +1104,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponseOrBuilder.java index bede3c5c..97ccfe26 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ImportCatalogItemsResponseOrBuilder - extends +public interface ImportCatalogItemsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * A sample of errors encountered while processing the request.
          * 
      * * repeated .google.rpc.Status error_samples = 1; */ - java.util.List getErrorSamplesList(); + java.util.List + getErrorSamplesList(); /** - * - * *
          * A sample of errors encountered while processing the request.
          * 
      @@ -44,8 +25,6 @@ public interface ImportCatalogItemsResponseOrBuilder */ com.google.rpc.Status getErrorSamples(int index); /** - * - * *
          * A sample of errors encountered while processing the request.
          * 
      @@ -54,59 +33,48 @@ public interface ImportCatalogItemsResponseOrBuilder */ int getErrorSamplesCount(); /** - * - * *
          * A sample of errors encountered while processing the request.
          * 
      * * repeated .google.rpc.Status error_samples = 1; */ - java.util.List getErrorSamplesOrBuilderList(); + java.util.List + getErrorSamplesOrBuilderList(); /** - * - * *
          * A sample of errors encountered while processing the request.
          * 
      * * repeated .google.rpc.Status error_samples = 1; */ - com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index); + com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder( + int index); /** - * - * *
          * Echoes the destination for the complete errors in the request if set.
          * 
      * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; - * * @return Whether the errorsConfig field is set. */ boolean hasErrorsConfig(); /** - * - * *
          * Echoes the destination for the complete errors in the request if set.
          * 
      * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; - * * @return The errorsConfig. */ com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig(); /** - * - * *
          * Echoes the destination for the complete errors in the request if set.
          * 
      * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; */ - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder - getErrorsConfigOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder(); } diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfig.java similarity index 69% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfig.java index 61d2104b..bf7f9e09 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Configuration of destination for Import related errors.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportErrorsConfig} */ -public final class ImportErrorsConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportErrorsConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) ImportErrorsConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportErrorsConfig.newBuilder() to construct. private ImportErrorsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImportErrorsConfig() {} + private ImportErrorsConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportErrorsConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImportErrorsConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,20 +52,19 @@ private ImportErrorsConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - destinationCase_ = 1; - destination_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + destinationCase_ = 1; + destination_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,39 +72,34 @@ private ImportErrorsConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.class, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.class, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_PREFIX(1), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -137,28 +115,24 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_PREFIX; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_PREFIX; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int GCS_PREFIX_FIELD_NUMBER = 1; /** - * - * *
          * Google Cloud Storage path for import errors. This must be an empty,
          * existing Cloud Storage bucket. Import errors will be written to a file in
      @@ -167,15 +141,12 @@ public DestinationCase getDestinationCase() {
          * 
      * * string gcs_prefix = 1; - * * @return Whether the gcsPrefix field is set. */ public boolean hasGcsPrefix() { return destinationCase_ == 1; } /** - * - * *
          * Google Cloud Storage path for import errors. This must be an empty,
          * existing Cloud Storage bucket. Import errors will be written to a file in
      @@ -184,7 +155,6 @@ public boolean hasGcsPrefix() {
          * 
      * * string gcs_prefix = 1; - * * @return The gcsPrefix. */ public java.lang.String getGcsPrefix() { @@ -195,7 +165,8 @@ public java.lang.String getGcsPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (destinationCase_ == 1) { destination_ = s; @@ -204,8 +175,6 @@ public java.lang.String getGcsPrefix() { } } /** - * - * *
          * Google Cloud Storage path for import errors. This must be an empty,
          * existing Cloud Storage bucket. Import errors will be written to a file in
      @@ -214,17 +183,18 @@ public java.lang.String getGcsPrefix() {
          * 
      * * string gcs_prefix = 1; - * * @return The bytes for gcsPrefix. */ - public com.google.protobuf.ByteString getGcsPrefixBytes() { + public com.google.protobuf.ByteString + getGcsPrefixBytes() { java.lang.Object ref = ""; if (destinationCase_ == 1) { ref = destination_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (destinationCase_ == 1) { destination_ = b; } @@ -235,7 +205,6 @@ public com.google.protobuf.ByteString getGcsPrefixBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -247,7 +216,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (destinationCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destination_); } @@ -271,18 +241,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig other = - (com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) obj; + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig other = (com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) obj; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsPrefix().equals(other.getGcsPrefix())) return false; + if (!getGcsPrefix() + .equals(other.getGcsPrefix())) return false; break; case 0: default: @@ -312,127 +282,117 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Configuration of destination for Import related errors.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportErrorsConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.class, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.class, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder.class); } // Construct using com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.newBuilder() @@ -440,15 +400,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -458,14 +419,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getDefaultInstanceForType() { return com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance(); } @@ -480,8 +440,7 @@ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig build() @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig result = - new com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig(this); + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig result = new com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig(this); if (destinationCase_ == 1) { result.destination_ = destination_; } @@ -494,62 +453,56 @@ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig other) { + if (other == com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_PREFIX: - { - destinationCase_ = 1; - destination_ = other.destination_; - onChanged(); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_PREFIX: { + destinationCase_ = 1; + destination_ = other.destination_; + onChanged(); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -570,9 +523,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -581,12 +532,12 @@ public Builder mergeFrom( } return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -596,9 +547,8 @@ public Builder clearDestination() { return this; } + /** - * - * *
            * Google Cloud Storage path for import errors. This must be an empty,
            * existing Cloud Storage bucket. Import errors will be written to a file in
      @@ -607,7 +557,6 @@ public Builder clearDestination() {
            * 
      * * string gcs_prefix = 1; - * * @return Whether the gcsPrefix field is set. */ @java.lang.Override @@ -615,8 +564,6 @@ public boolean hasGcsPrefix() { return destinationCase_ == 1; } /** - * - * *
            * Google Cloud Storage path for import errors. This must be an empty,
            * existing Cloud Storage bucket. Import errors will be written to a file in
      @@ -625,7 +572,6 @@ public boolean hasGcsPrefix() {
            * 
      * * string gcs_prefix = 1; - * * @return The gcsPrefix. */ @java.lang.Override @@ -635,7 +581,8 @@ public java.lang.String getGcsPrefix() { ref = destination_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (destinationCase_ == 1) { destination_ = s; @@ -646,8 +593,6 @@ public java.lang.String getGcsPrefix() { } } /** - * - * *
            * Google Cloud Storage path for import errors. This must be an empty,
            * existing Cloud Storage bucket. Import errors will be written to a file in
      @@ -656,18 +601,19 @@ public java.lang.String getGcsPrefix() {
            * 
      * * string gcs_prefix = 1; - * * @return The bytes for gcsPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString getGcsPrefixBytes() { + public com.google.protobuf.ByteString + getGcsPrefixBytes() { java.lang.Object ref = ""; if (destinationCase_ == 1) { ref = destination_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (destinationCase_ == 1) { destination_ = b; } @@ -677,8 +623,6 @@ public com.google.protobuf.ByteString getGcsPrefixBytes() { } } /** - * - * *
            * Google Cloud Storage path for import errors. This must be an empty,
            * existing Cloud Storage bucket. Import errors will be written to a file in
      @@ -687,22 +631,20 @@ public com.google.protobuf.ByteString getGcsPrefixBytes() {
            * 
      * * string gcs_prefix = 1; - * * @param value The gcsPrefix to set. * @return This builder for chaining. */ - public Builder setGcsPrefix(java.lang.String value) { + public Builder setGcsPrefix( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - destinationCase_ = 1; + throw new NullPointerException(); + } + destinationCase_ = 1; destination_ = value; onChanged(); return this; } /** - * - * *
            * Google Cloud Storage path for import errors. This must be an empty,
            * existing Cloud Storage bucket. Import errors will be written to a file in
      @@ -711,7 +653,6 @@ public Builder setGcsPrefix(java.lang.String value) {
            * 
      * * string gcs_prefix = 1; - * * @return This builder for chaining. */ public Builder clearGcsPrefix() { @@ -723,8 +664,6 @@ public Builder clearGcsPrefix() { return this; } /** - * - * *
            * Google Cloud Storage path for import errors. This must be an empty,
            * existing Cloud Storage bucket. Import errors will be written to a file in
      @@ -733,23 +672,23 @@ public Builder clearGcsPrefix() {
            * 
      * * string gcs_prefix = 1; - * * @param value The bytes for gcsPrefix to set. * @return This builder for chaining. */ - public Builder setGcsPrefixBytes(com.google.protobuf.ByteString value) { + public Builder setGcsPrefixBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); destinationCase_ = 1; destination_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -759,32 +698,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) - private static final com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig(); } - public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportErrorsConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportErrorsConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportErrorsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportErrorsConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -796,8 +733,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfigOrBuilder.java similarity index 65% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfigOrBuilder.java index e2f1355b..9323c06f 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ImportErrorsConfigOrBuilder - extends +public interface ImportErrorsConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Google Cloud Storage path for import errors. This must be an empty,
          * existing Cloud Storage bucket. Import errors will be written to a file in
      @@ -34,13 +16,10 @@ public interface ImportErrorsConfigOrBuilder
          * 
      * * string gcs_prefix = 1; - * * @return Whether the gcsPrefix field is set. */ boolean hasGcsPrefix(); /** - * - * *
          * Google Cloud Storage path for import errors. This must be an empty,
          * existing Cloud Storage bucket. Import errors will be written to a file in
      @@ -49,13 +28,10 @@ public interface ImportErrorsConfigOrBuilder
          * 
      * * string gcs_prefix = 1; - * * @return The gcsPrefix. */ java.lang.String getGcsPrefix(); /** - * - * *
          * Google Cloud Storage path for import errors. This must be an empty,
          * existing Cloud Storage bucket. Import errors will be written to a file in
      @@ -64,11 +40,10 @@ public interface ImportErrorsConfigOrBuilder
          * 
      * * string gcs_prefix = 1; - * * @return The bytes for gcsPrefix. */ - com.google.protobuf.ByteString getGcsPrefixBytes(); + com.google.protobuf.ByteString + getGcsPrefixBytes(); - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.DestinationCase - getDestinationCase(); + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.DestinationCase getDestinationCase(); } diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadata.java similarity index 72% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadata.java index 86c732b9..13f2603b 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Metadata related to the progress of the Import operation. This will be
        * returned by the google.longrunning.Operation.metadata field.
      @@ -28,16 +11,15 @@
        *
        * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportMetadata}
        */
      -public final class ImportMetadata extends com.google.protobuf.GeneratedMessageV3
      -    implements
      +public final class ImportMetadata extends
      +    com.google.protobuf.GeneratedMessageV3 implements
           // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ImportMetadata)
           ImportMetadataOrBuilder {
      -  private static final long serialVersionUID = 0L;
      +private static final long serialVersionUID = 0L;
         // Use ImportMetadata.newBuilder() to construct.
         private ImportMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
      -
         private ImportMetadata() {
           operationName_ = "";
           requestId_ = "";
      @@ -45,15 +27,16 @@ private ImportMetadata() {
       
         @java.lang.Override
         @SuppressWarnings({"unused"})
      -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      +  protected java.lang.Object newInstance(
      +      UnusedPrivateParameter unused) {
           return new ImportMetadata();
         }
       
         @java.lang.Override
      -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      +  public final com.google.protobuf.UnknownFieldSet
      +  getUnknownFields() {
           return this.unknownFields;
         }
      -
         private ImportMetadata(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      @@ -72,67 +55,61 @@ private ImportMetadata(
                 case 0:
                   done = true;
                   break;
      -          case 8:
      -            {
      -              successCount_ = input.readInt64();
      -              break;
      -            }
      -          case 16:
      -            {
      -              failureCount_ = input.readInt64();
      -              break;
      -            }
      -          case 26:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +          case 8: {
      +
      +            successCount_ = input.readInt64();
      +            break;
      +          }
      +          case 16: {
      +
      +            failureCount_ = input.readInt64();
      +            break;
      +          }
      +          case 26: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              requestId_ = s;
      -              break;
      +            requestId_ = s;
      +            break;
      +          }
      +          case 34: {
      +            com.google.protobuf.Timestamp.Builder subBuilder = null;
      +            if (createTime_ != null) {
      +              subBuilder = createTime_.toBuilder();
                   }
      -          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;
      +            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
      +            if (subBuilder != null) {
      +              subBuilder.mergeFrom(createTime_);
      +              createTime_ = subBuilder.buildPartial();
                   }
      -          case 42:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
       
      -              operationName_ = s;
      -              break;
      +            break;
      +          }
      +          case 42: {
      +            java.lang.String s = input.readStringRequireUtf8();
      +
      +            operationName_ = s;
      +            break;
      +          }
      +          case 50: {
      +            com.google.protobuf.Timestamp.Builder subBuilder = null;
      +            if (updateTime_ != null) {
      +              subBuilder = updateTime_.toBuilder();
                   }
      -          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;
      +            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
      +            if (subBuilder != null) {
      +              subBuilder.mergeFrom(updateTime_);
      +              updateTime_ = subBuilder.buildPartial();
                   }
      -          default:
      -            {
      -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
      -                done = true;
      -              }
      -              break;
      +
      +            break;
      +          }
      +          default: {
      +            if (!parseUnknownField(
      +                input, unknownFields, extensionRegistry, tag)) {
      +              done = true;
                   }
      +            break;
      +          }
               }
             }
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      @@ -140,39 +117,34 @@ private ImportMetadata(
           } catch (com.google.protobuf.UninitializedMessageException e) {
             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
           } catch (java.io.IOException e) {
      -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      +      throw new com.google.protobuf.InvalidProtocolBufferException(
      +          e).setUnfinishedMessage(this);
           } finally {
             this.unknownFields = unknownFields.build();
             makeExtensionsImmutable();
           }
         }
      -
      -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -    return com.google.cloud.recommendationengine.v1beta1.Import
      -        .internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor;
      +  public static final com.google.protobuf.Descriptors.Descriptor
      +      getDescriptor() {
      +    return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor;
         }
       
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
      -    return com.google.cloud.recommendationengine.v1beta1.Import
      -        .internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_fieldAccessorTable
      +    return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
      -            com.google.cloud.recommendationengine.v1beta1.ImportMetadata.class,
      -            com.google.cloud.recommendationengine.v1beta1.ImportMetadata.Builder.class);
      +            com.google.cloud.recommendationengine.v1beta1.ImportMetadata.class, com.google.cloud.recommendationengine.v1beta1.ImportMetadata.Builder.class);
         }
       
         public static final int OPERATION_NAME_FIELD_NUMBER = 5;
         private volatile java.lang.Object operationName_;
         /**
      -   *
      -   *
          * 
          * Name of the operation.
          * 
      * * string operation_name = 5; - * * @return The operationName. */ @java.lang.Override @@ -181,29 +153,29 @@ public java.lang.String getOperationName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationName_ = s; return s; } } /** - * - * *
          * Name of the operation.
          * 
      * * string operation_name = 5; - * * @return The bytes for operationName. */ @java.lang.Override - public com.google.protobuf.ByteString getOperationNameBytes() { + public com.google.protobuf.ByteString + getOperationNameBytes() { java.lang.Object ref = operationName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operationName_ = b; return b; } else { @@ -214,15 +186,12 @@ public com.google.protobuf.ByteString getOperationNameBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** - * - * *
          * Id of the request / operation. This is parroting back the requestId that
          * was passed in the request.
          * 
      * * string request_id = 3; - * * @return The requestId. */ @java.lang.Override @@ -231,30 +200,30 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
          * Id of the request / operation. This is parroting back the requestId that
          * was passed in the request.
          * 
      * * string request_id = 3; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -265,14 +234,11 @@ public com.google.protobuf.ByteString getRequestIdBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** - * - * *
          * Operation create time.
          * 
      * * .google.protobuf.Timestamp create_time = 4; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -280,14 +246,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
          * Operation create time.
          * 
      * * .google.protobuf.Timestamp create_time = 4; - * * @return The createTime. */ @java.lang.Override @@ -295,8 +258,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
          * Operation create time.
          * 
      @@ -311,14 +272,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int SUCCESS_COUNT_FIELD_NUMBER = 1; private long successCount_; /** - * - * *
          * Count of entries that were processed successfully.
          * 
      * * int64 success_count = 1; - * * @return The successCount. */ @java.lang.Override @@ -329,14 +287,11 @@ public long getSuccessCount() { public static final int FAILURE_COUNT_FIELD_NUMBER = 2; private long failureCount_; /** - * - * *
          * Count of entries that encountered errors while processing.
          * 
      * * int64 failure_count = 2; - * * @return The failureCount. */ @java.lang.Override @@ -347,15 +302,12 @@ public long getFailureCount() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
          * Operation last update time. If the operation is done, this is also the
          * finish time.
          * 
      * * .google.protobuf.Timestamp update_time = 6; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -363,15 +315,12 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
          * Operation last update time. If the operation is done, this is also the
          * finish time.
          * 
      * * .google.protobuf.Timestamp update_time = 6; - * * @return The updateTime. */ @java.lang.Override @@ -379,8 +328,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
          * Operation last update time. If the operation is done, this is also the
          * finish time.
      @@ -394,7 +341,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
         }
       
         private byte memoizedIsInitialized = -1;
      -
         @java.lang.Override
         public final boolean isInitialized() {
           byte isInitialized = memoizedIsInitialized;
      @@ -406,7 +352,8 @@ public final boolean isInitialized() {
         }
       
         @java.lang.Override
      -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      +  public void writeTo(com.google.protobuf.CodedOutputStream output)
      +                      throws java.io.IOException {
           if (successCount_ != 0L) {
             output.writeInt64(1, successCount_);
           }
      @@ -435,22 +382,26 @@ public int getSerializedSize() {
       
           size = 0;
           if (successCount_ != 0L) {
      -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, successCount_);
      +      size += com.google.protobuf.CodedOutputStream
      +        .computeInt64Size(1, successCount_);
           }
           if (failureCount_ != 0L) {
      -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, failureCount_);
      +      size += com.google.protobuf.CodedOutputStream
      +        .computeInt64Size(2, failureCount_);
           }
           if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) {
             size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_);
           }
           if (createTime_ != null) {
      -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime());
      +      size += com.google.protobuf.CodedOutputStream
      +        .computeMessageSize(4, getCreateTime());
           }
           if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationName_)) {
             size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, operationName_);
           }
           if (updateTime_ != null) {
      -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime());
      +      size += com.google.protobuf.CodedOutputStream
      +        .computeMessageSize(6, getUpdateTime());
           }
           size += unknownFields.getSerializedSize();
           memoizedSize = size;
      @@ -460,25 +411,30 @@ public int getSerializedSize() {
         @java.lang.Override
         public boolean equals(final java.lang.Object obj) {
           if (obj == this) {
      -      return true;
      +     return true;
           }
           if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ImportMetadata)) {
             return super.equals(obj);
           }
      -    com.google.cloud.recommendationengine.v1beta1.ImportMetadata other =
      -        (com.google.cloud.recommendationengine.v1beta1.ImportMetadata) obj;
      +    com.google.cloud.recommendationengine.v1beta1.ImportMetadata other = (com.google.cloud.recommendationengine.v1beta1.ImportMetadata) obj;
       
      -    if (!getOperationName().equals(other.getOperationName())) return false;
      -    if (!getRequestId().equals(other.getRequestId())) return false;
      +    if (!getOperationName()
      +        .equals(other.getOperationName())) return false;
      +    if (!getRequestId()
      +        .equals(other.getRequestId())) return false;
           if (hasCreateTime() != other.hasCreateTime()) return false;
           if (hasCreateTime()) {
      -      if (!getCreateTime().equals(other.getCreateTime())) return false;
      +      if (!getCreateTime()
      +          .equals(other.getCreateTime())) return false;
           }
      -    if (getSuccessCount() != other.getSuccessCount()) return false;
      -    if (getFailureCount() != other.getFailureCount()) return false;
      +    if (getSuccessCount()
      +        != other.getSuccessCount()) return false;
      +    if (getFailureCount()
      +        != other.getFailureCount()) return false;
           if (hasUpdateTime() != other.hasUpdateTime()) return false;
           if (hasUpdateTime()) {
      -      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
      +      if (!getUpdateTime()
      +          .equals(other.getUpdateTime())) return false;
           }
           if (!unknownFields.equals(other.unknownFields)) return false;
           return true;
      @@ -500,9 +456,11 @@ public int hashCode() {
             hash = (53 * hash) + getCreateTime().hashCode();
           }
           hash = (37 * hash) + SUCCESS_COUNT_FIELD_NUMBER;
      -    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSuccessCount());
      +    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
      +        getSuccessCount());
           hash = (37 * hash) + FAILURE_COUNT_FIELD_NUMBER;
      -    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailureCount());
      +    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
      +        getFailureCount());
           if (hasUpdateTime()) {
             hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
             hash = (53 * hash) + getUpdateTime().hashCode();
      @@ -513,104 +471,96 @@ public int hashCode() {
         }
       
         public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(
      -      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      +      java.nio.ByteBuffer data)
      +      throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(
      -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +      java.nio.ByteBuffer data,
      +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(
             com.google.protobuf.ByteString data)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(
             com.google.protobuf.ByteString data,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(byte[] data)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(
      -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +      byte[] data,
      +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
      -
      -  public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(
      -      java.io.InputStream input) throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      +  public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(java.io.InputStream input)
      +      throws java.io.IOException {
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseWithIOException(PARSER, input);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(
      -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +      java.io.InputStream input,
      +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
      -        PARSER, input, extensionRegistry);
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseWithIOException(PARSER, input, extensionRegistry);
         }
      -
      -  public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseDelimitedFrom(
      -      java.io.InputStream input) throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      +  public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseDelimitedFrom(java.io.InputStream input)
      +      throws java.io.IOException {
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseDelimitedWithIOException(PARSER, input);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseDelimitedFrom(
      -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +      java.io.InputStream input,
      +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
      -        PARSER, input, extensionRegistry);
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(
      -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      +      com.google.protobuf.CodedInputStream input)
      +      throws java.io.IOException {
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseWithIOException(PARSER, input);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
      -        PARSER, input, extensionRegistry);
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseWithIOException(PARSER, input, extensionRegistry);
         }
       
         @java.lang.Override
      -  public Builder newBuilderForType() {
      -    return newBuilder();
      -  }
      -
      +  public Builder newBuilderForType() { return newBuilder(); }
         public static Builder newBuilder() {
           return DEFAULT_INSTANCE.toBuilder();
         }
      -
      -  public static Builder newBuilder(
      -      com.google.cloud.recommendationengine.v1beta1.ImportMetadata prototype) {
      +  public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ImportMetadata prototype) {
           return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
         }
      -
         @java.lang.Override
         public Builder toBuilder() {
      -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
      +    return this == DEFAULT_INSTANCE
      +        ? new Builder() : new Builder().mergeFrom(this);
         }
       
         @java.lang.Override
      -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +  protected Builder newBuilderForType(
      +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           Builder builder = new Builder(parent);
           return builder;
         }
         /**
      -   *
      -   *
          * 
          * Metadata related to the progress of the Import operation. This will be
          * returned by the google.longrunning.Operation.metadata field.
      @@ -618,23 +568,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *
          * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportMetadata}
          */
      -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
      -      implements
      +  public static final class Builder extends
      +      com.google.protobuf.GeneratedMessageV3.Builder implements
             // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ImportMetadata)
             com.google.cloud.recommendationengine.v1beta1.ImportMetadataOrBuilder {
      -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -      return com.google.cloud.recommendationengine.v1beta1.Import
      -          .internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor;
      +    public static final com.google.protobuf.Descriptors.Descriptor
      +        getDescriptor() {
      +      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor;
           }
       
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
      -      return com.google.cloud.recommendationengine.v1beta1.Import
      -          .internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_fieldAccessorTable
      +      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
      -              com.google.cloud.recommendationengine.v1beta1.ImportMetadata.class,
      -              com.google.cloud.recommendationengine.v1beta1.ImportMetadata.Builder.class);
      +              com.google.cloud.recommendationengine.v1beta1.ImportMetadata.class, com.google.cloud.recommendationengine.v1beta1.ImportMetadata.Builder.class);
           }
       
           // Construct using com.google.cloud.recommendationengine.v1beta1.ImportMetadata.newBuilder()
      @@ -642,15 +590,16 @@ private Builder() {
             maybeForceBuilderInitialization();
           }
       
      -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +    private Builder(
      +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
             maybeForceBuilderInitialization();
           }
      -
           private void maybeForceBuilderInitialization() {
      -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
      +      if (com.google.protobuf.GeneratedMessageV3
      +              .alwaysUseFieldBuilders) {
      +      }
           }
      -
           @java.lang.Override
           public Builder clear() {
             super.clear();
      @@ -678,14 +627,13 @@ public Builder clear() {
           }
       
           @java.lang.Override
      -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      -      return com.google.cloud.recommendationengine.v1beta1.Import
      -          .internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor;
      +    public com.google.protobuf.Descriptors.Descriptor
      +        getDescriptorForType() {
      +      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor;
           }
       
           @java.lang.Override
      -    public com.google.cloud.recommendationengine.v1beta1.ImportMetadata
      -        getDefaultInstanceForType() {
      +    public com.google.cloud.recommendationengine.v1beta1.ImportMetadata getDefaultInstanceForType() {
             return com.google.cloud.recommendationengine.v1beta1.ImportMetadata.getDefaultInstance();
           }
       
      @@ -700,8 +648,7 @@ public com.google.cloud.recommendationengine.v1beta1.ImportMetadata build() {
       
           @java.lang.Override
           public com.google.cloud.recommendationengine.v1beta1.ImportMetadata buildPartial() {
      -      com.google.cloud.recommendationengine.v1beta1.ImportMetadata result =
      -          new com.google.cloud.recommendationengine.v1beta1.ImportMetadata(this);
      +      com.google.cloud.recommendationengine.v1beta1.ImportMetadata result = new com.google.cloud.recommendationengine.v1beta1.ImportMetadata(this);
             result.operationName_ = operationName_;
             result.requestId_ = requestId_;
             if (createTimeBuilder_ == null) {
      @@ -724,39 +671,38 @@ public com.google.cloud.recommendationengine.v1beta1.ImportMetadata buildPartial
           public Builder clone() {
             return super.clone();
           }
      -
           @java.lang.Override
           public Builder setField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        java.lang.Object value) {
             return super.setField(field, value);
           }
      -
           @java.lang.Override
      -    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      +    public Builder clearField(
      +        com.google.protobuf.Descriptors.FieldDescriptor field) {
             return super.clearField(field);
           }
      -
           @java.lang.Override
      -    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      +    public Builder clearOneof(
      +        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
             return super.clearOneof(oneof);
           }
      -
           @java.lang.Override
           public Builder setRepeatedField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        int index, java.lang.Object value) {
             return super.setRepeatedField(field, index, value);
           }
      -
           @java.lang.Override
           public Builder addRepeatedField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        java.lang.Object value) {
             return super.addRepeatedField(field, value);
           }
      -
           @java.lang.Override
           public Builder mergeFrom(com.google.protobuf.Message other) {
             if (other instanceof com.google.cloud.recommendationengine.v1beta1.ImportMetadata) {
      -        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ImportMetadata) other);
      +        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ImportMetadata)other);
             } else {
               super.mergeFrom(other);
               return this;
      @@ -764,9 +710,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
           }
       
           public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ImportMetadata other) {
      -      if (other
      -          == com.google.cloud.recommendationengine.v1beta1.ImportMetadata.getDefaultInstance())
      -        return this;
      +      if (other == com.google.cloud.recommendationengine.v1beta1.ImportMetadata.getDefaultInstance()) return this;
             if (!other.getOperationName().isEmpty()) {
               operationName_ = other.operationName_;
               onChanged();
      @@ -806,8 +750,7 @@ public Builder mergeFrom(
             try {
               parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      -        parsedMessage =
      -            (com.google.cloud.recommendationengine.v1beta1.ImportMetadata) e.getUnfinishedMessage();
      +        parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ImportMetadata) e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
               if (parsedMessage != null) {
      @@ -819,20 +762,18 @@ public Builder mergeFrom(
       
           private java.lang.Object operationName_ = "";
           /**
      -     *
      -     *
            * 
            * Name of the operation.
            * 
      * * string operation_name = 5; - * * @return The operationName. */ public java.lang.String getOperationName() { java.lang.Object ref = operationName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationName_ = s; return s; @@ -841,21 +782,20 @@ public java.lang.String getOperationName() { } } /** - * - * *
            * Name of the operation.
            * 
      * * string operation_name = 5; - * * @return The bytes for operationName. */ - public com.google.protobuf.ByteString getOperationNameBytes() { + public com.google.protobuf.ByteString + getOperationNameBytes() { java.lang.Object ref = operationName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operationName_ = b; return b; } else { @@ -863,61 +803,54 @@ public com.google.protobuf.ByteString getOperationNameBytes() { } } /** - * - * *
            * Name of the operation.
            * 
      * * string operation_name = 5; - * * @param value The operationName to set. * @return This builder for chaining. */ - public Builder setOperationName(java.lang.String value) { + public Builder setOperationName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + operationName_ = value; onChanged(); return this; } /** - * - * *
            * Name of the operation.
            * 
      * * string operation_name = 5; - * * @return This builder for chaining. */ public Builder clearOperationName() { - + operationName_ = getDefaultInstance().getOperationName(); onChanged(); return this; } /** - * - * *
            * Name of the operation.
            * 
      * * string operation_name = 5; - * * @param value The bytes for operationName to set. * @return This builder for chaining. */ - public Builder setOperationNameBytes(com.google.protobuf.ByteString value) { + public Builder setOperationNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operationName_ = value; onChanged(); return this; @@ -925,21 +858,19 @@ public Builder setOperationNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
            * Id of the request / operation. This is parroting back the requestId that
            * was passed in the request.
            * 
      * * string request_id = 3; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -948,22 +879,21 @@ public java.lang.String getRequestId() { } } /** - * - * *
            * Id of the request / operation. This is parroting back the requestId that
            * was passed in the request.
            * 
      * * string request_id = 3; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -971,64 +901,57 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
            * Id of the request / operation. This is parroting back the requestId that
            * was passed in the request.
            * 
      * * string request_id = 3; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
            * Id of the request / operation. This is parroting back the requestId that
            * was passed in the request.
            * 
      * * string request_id = 3; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
            * Id of the request / operation. This is parroting back the requestId that
            * was passed in the request.
            * 
      * * string request_id = 3; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; @@ -1036,47 +959,34 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
            * Operation create time.
            * 
      * * .google.protobuf.Timestamp create_time = 4; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
            * Operation create time.
            * 
      * * .google.protobuf.Timestamp create_time = 4; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
            * Operation create time.
            * 
      @@ -1097,15 +1007,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
            * Operation create time.
            * 
      * * .google.protobuf.Timestamp create_time = 4; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1116,8 +1025,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
            * Operation create time.
            * 
      @@ -1128,7 +1035,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1140,8 +1047,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
            * Operation create time.
            * 
      @@ -1160,8 +1065,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
            * Operation create time.
            * 
      @@ -1169,13 +1072,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 4; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
            * Operation create time.
            * 
      @@ -1186,14 +1087,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
            * Operation create time.
            * 
      @@ -1201,32 +1099,26 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } - private long successCount_; + private long successCount_ ; /** - * - * *
            * Count of entries that were processed successfully.
            * 
      * * int64 success_count = 1; - * * @return The successCount. */ @java.lang.Override @@ -1234,51 +1126,42 @@ public long getSuccessCount() { return successCount_; } /** - * - * *
            * Count of entries that were processed successfully.
            * 
      * * int64 success_count = 1; - * * @param value The successCount to set. * @return This builder for chaining. */ public Builder setSuccessCount(long value) { - + successCount_ = value; onChanged(); return this; } /** - * - * *
            * Count of entries that were processed successfully.
            * 
      * * int64 success_count = 1; - * * @return This builder for chaining. */ public Builder clearSuccessCount() { - + successCount_ = 0L; onChanged(); return this; } - private long failureCount_; + private long failureCount_ ; /** - * - * *
            * Count of entries that encountered errors while processing.
            * 
      * * int64 failure_count = 2; - * * @return The failureCount. */ @java.lang.Override @@ -1286,36 +1169,30 @@ public long getFailureCount() { return failureCount_; } /** - * - * *
            * Count of entries that encountered errors while processing.
            * 
      * * int64 failure_count = 2; - * * @param value The failureCount to set. * @return This builder for chaining. */ public Builder setFailureCount(long value) { - + failureCount_ = value; onChanged(); return this; } /** - * - * *
            * Count of entries that encountered errors while processing.
            * 
      * * int64 failure_count = 2; - * * @return This builder for chaining. */ public Builder clearFailureCount() { - + failureCount_ = 0L; onChanged(); return this; @@ -1323,49 +1200,36 @@ public Builder clearFailureCount() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
            * Operation last update time. If the operation is done, this is also the
            * finish time.
            * 
      * * .google.protobuf.Timestamp update_time = 6; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
            * Operation last update time. If the operation is done, this is also the
            * finish time.
            * 
      * * .google.protobuf.Timestamp update_time = 6; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
            * Operation last update time. If the operation is done, this is also the
            * finish time.
      @@ -1387,8 +1251,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
             return this;
           }
           /**
      -     *
      -     *
            * 
            * Operation last update time. If the operation is done, this is also the
            * finish time.
      @@ -1396,7 +1258,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
            *
            * .google.protobuf.Timestamp update_time = 6;
            */
      -    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      +    public Builder setUpdateTime(
      +        com.google.protobuf.Timestamp.Builder builderForValue) {
             if (updateTimeBuilder_ == null) {
               updateTime_ = builderForValue.build();
               onChanged();
      @@ -1407,8 +1270,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
             return this;
           }
           /**
      -     *
      -     *
            * 
            * Operation last update time. If the operation is done, this is also the
            * finish time.
      @@ -1420,7 +1281,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
             if (updateTimeBuilder_ == null) {
               if (updateTime_ != null) {
                 updateTime_ =
      -              com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
      +            com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
               } else {
                 updateTime_ = value;
               }
      @@ -1432,8 +1293,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
             return this;
           }
           /**
      -     *
      -     *
            * 
            * Operation last update time. If the operation is done, this is also the
            * finish time.
      @@ -1453,8 +1312,6 @@ public Builder clearUpdateTime() {
             return this;
           }
           /**
      -     *
      -     *
            * 
            * Operation last update time. If the operation is done, this is also the
            * finish time.
      @@ -1463,13 +1320,11 @@ public Builder clearUpdateTime() {
            * .google.protobuf.Timestamp update_time = 6;
            */
           public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
      -
      +      
             onChanged();
             return getUpdateTimeFieldBuilder().getBuilder();
           }
           /**
      -     *
      -     *
            * 
            * Operation last update time. If the operation is done, this is also the
            * finish time.
      @@ -1481,14 +1336,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
             if (updateTimeBuilder_ != null) {
               return updateTimeBuilder_.getMessageOrBuilder();
             } else {
      -        return updateTime_ == null
      -            ? com.google.protobuf.Timestamp.getDefaultInstance()
      -            : updateTime_;
      +        return updateTime_ == null ?
      +            com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
             }
           }
           /**
      -     *
      -     *
            * 
            * Operation last update time. If the operation is done, this is also the
            * finish time.
      @@ -1497,24 +1349,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
            * .google.protobuf.Timestamp update_time = 6;
            */
           private com.google.protobuf.SingleFieldBuilderV3<
      -            com.google.protobuf.Timestamp,
      -            com.google.protobuf.Timestamp.Builder,
      -            com.google.protobuf.TimestampOrBuilder>
      +        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
               getUpdateTimeFieldBuilder() {
             if (updateTimeBuilder_ == null) {
      -        updateTimeBuilder_ =
      -            new com.google.protobuf.SingleFieldBuilderV3<
      -                com.google.protobuf.Timestamp,
      -                com.google.protobuf.Timestamp.Builder,
      -                com.google.protobuf.TimestampOrBuilder>(
      -                getUpdateTime(), getParentForChildren(), isClean());
      +        updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
      +            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
      +                getUpdateTime(),
      +                getParentForChildren(),
      +                isClean());
               updateTime_ = null;
             }
             return updateTimeBuilder_;
           }
      -
           @java.lang.Override
      -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      +    public final Builder setUnknownFields(
      +        final com.google.protobuf.UnknownFieldSet unknownFields) {
             return super.setUnknownFields(unknownFields);
           }
       
      @@ -1524,13 +1373,12 @@ public final Builder mergeUnknownFields(
             return super.mergeUnknownFields(unknownFields);
           }
       
      +
           // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ImportMetadata)
         }
       
         // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ImportMetadata)
      -  private static final com.google.cloud.recommendationengine.v1beta1.ImportMetadata
      -      DEFAULT_INSTANCE;
      -
      +  private static final com.google.cloud.recommendationengine.v1beta1.ImportMetadata DEFAULT_INSTANCE;
         static {
           DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ImportMetadata();
         }
      @@ -1539,16 +1387,16 @@ public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata getDe
           return DEFAULT_INSTANCE;
         }
       
      -  private static final com.google.protobuf.Parser PARSER =
      -      new com.google.protobuf.AbstractParser() {
      -        @java.lang.Override
      -        public ImportMetadata parsePartialFrom(
      -            com.google.protobuf.CodedInputStream input,
      -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      -            throws com.google.protobuf.InvalidProtocolBufferException {
      -          return new ImportMetadata(input, extensionRegistry);
      -        }
      -      };
      +  private static final com.google.protobuf.Parser
      +      PARSER = new com.google.protobuf.AbstractParser() {
      +    @java.lang.Override
      +    public ImportMetadata parsePartialFrom(
      +        com.google.protobuf.CodedInputStream input,
      +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +        throws com.google.protobuf.InvalidProtocolBufferException {
      +      return new ImportMetadata(input, extensionRegistry);
      +    }
      +  };
       
         public static com.google.protobuf.Parser parser() {
           return PARSER;
      @@ -1563,4 +1411,6 @@ public com.google.protobuf.Parser getParserForType() {
         public com.google.cloud.recommendationengine.v1beta1.ImportMetadata getDefaultInstanceForType() {
           return DEFAULT_INSTANCE;
         }
      +
       }
      +
      diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadataOrBuilder.java
      similarity index 76%
      rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadataOrBuilder.java
      rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadataOrBuilder.java
      index 9c231add..2a6584b3 100644
      --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadataOrBuilder.java
      +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadataOrBuilder.java
      @@ -1,107 +1,73 @@
      -/*
      - * Copyright 2020 Google LLC
      - *
      - * Licensed under the Apache License, Version 2.0 (the "License");
      - * you may not use this file except in compliance with the License.
      - * You may obtain a copy of the License at
      - *
      - *     https://www.apache.org/licenses/LICENSE-2.0
      - *
      - * Unless required by applicable law or agreed to in writing, software
      - * distributed under the License is distributed on an "AS IS" BASIS,
      - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      - * See the License for the specific language governing permissions and
      - * limitations under the License.
      - */
       // Generated by the protocol buffer compiler.  DO NOT EDIT!
       // source: google/cloud/recommendationengine/v1beta1/import.proto
       
       package com.google.cloud.recommendationengine.v1beta1;
       
      -public interface ImportMetadataOrBuilder
      -    extends
      +public interface ImportMetadataOrBuilder extends
           // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ImportMetadata)
           com.google.protobuf.MessageOrBuilder {
       
         /**
      -   *
      -   *
          * 
          * Name of the operation.
          * 
      * * string operation_name = 5; - * * @return The operationName. */ java.lang.String getOperationName(); /** - * - * *
          * Name of the operation.
          * 
      * * string operation_name = 5; - * * @return The bytes for operationName. */ - com.google.protobuf.ByteString getOperationNameBytes(); + com.google.protobuf.ByteString + getOperationNameBytes(); /** - * - * *
          * Id of the request / operation. This is parroting back the requestId that
          * was passed in the request.
          * 
      * * string request_id = 3; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
          * Id of the request / operation. This is parroting back the requestId that
          * was passed in the request.
          * 
      * * string request_id = 3; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); /** - * - * *
          * Operation create time.
          * 
      * * .google.protobuf.Timestamp create_time = 4; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
          * Operation create time.
          * 
      * * .google.protobuf.Timestamp create_time = 4; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
          * Operation create time.
          * 
      @@ -111,60 +77,46 @@ public interface ImportMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
          * Count of entries that were processed successfully.
          * 
      * * int64 success_count = 1; - * * @return The successCount. */ long getSuccessCount(); /** - * - * *
          * Count of entries that encountered errors while processing.
          * 
      * * int64 failure_count = 2; - * * @return The failureCount. */ long getFailureCount(); /** - * - * *
          * Operation last update time. If the operation is done, this is also the
          * finish time.
          * 
      * * .google.protobuf.Timestamp update_time = 6; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
          * Operation last update time. If the operation is done, this is also the
          * finish time.
          * 
      * * .google.protobuf.Timestamp update_time = 6; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
          * Operation last update time. If the operation is done, this is also the
          * finish time.
      diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequest.java
      similarity index 62%
      rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequest.java
      rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequest.java
      index fa9c02fe..4d293da8 100644
      --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequest.java
      +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequest.java
      @@ -1,42 +1,24 @@
      -/*
      - * Copyright 2020 Google LLC
      - *
      - * Licensed under the Apache License, Version 2.0 (the "License");
      - * you may not use this file except in compliance with the License.
      - * You may obtain a copy of the License at
      - *
      - *     https://www.apache.org/licenses/LICENSE-2.0
      - *
      - * Unless required by applicable law or agreed to in writing, software
      - * distributed under the License is distributed on an "AS IS" BASIS,
      - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      - * See the License for the specific language governing permissions and
      - * limitations under the License.
      - */
       // Generated by the protocol buffer compiler.  DO NOT EDIT!
       // source: google/cloud/recommendationengine/v1beta1/import.proto
       
       package com.google.cloud.recommendationengine.v1beta1;
       
       /**
      - *
      - *
        * 
        * Request message for the ImportUserEvents request.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest} */ -public final class ImportUserEventsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportUserEventsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) ImportUserEventsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportUserEventsRequest.newBuilder() to construct. private ImportUserEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImportUserEventsRequest() { parent_ = ""; requestId_ = ""; @@ -44,15 +26,16 @@ private ImportUserEventsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportUserEventsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImportUserEventsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,62 +54,51 @@ private ImportUserEventsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; + requestId_ = s; + break; + } + case 26: { + com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); } - case 26: - { - com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.InputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } - - break; + inputConfig_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder subBuilder = - null; - if (errorsConfig_ != null) { - subBuilder = errorsConfig_.toBuilder(); - } - errorsConfig_ = - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(errorsConfig_); - errorsConfig_ = subBuilder.buildPartial(); - } - break; + break; + } + case 34: { + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder subBuilder = null; + if (errorsConfig_ != null) { + subBuilder = errorsConfig_.toBuilder(); + } + errorsConfig_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(errorsConfig_); + errorsConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -134,42 +106,35 @@ private ImportUserEventsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.class, - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.class, com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
          * Required.
          * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -178,32 +143,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
          * Required.
          * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -214,8 +177,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** - * - * *
          * Optional. Unique identifier provided by client, within the ancestor
          * dataset scope. Ensures idempotency for expensive long running operations.
      @@ -226,7 +187,6 @@ public com.google.protobuf.ByteString getParentBytes() {
          * 
      * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -235,15 +195,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
          * Optional. Unique identifier provided by client, within the ancestor
          * dataset scope. Ensures idempotency for expensive long running operations.
      @@ -254,15 +213,16 @@ public java.lang.String getRequestId() {
          * 
      * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -273,16 +233,11 @@ public com.google.protobuf.ByteString getRequestIdBytes() { public static final int INPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.recommendationengine.v1beta1.InputConfig inputConfig_; /** - * - * *
          * Required. The desired input location of the data.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -290,54 +245,37 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
          * Required. The desired input location of the data.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.InputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
          * Required. The desired input location of the data.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder - getInputConfigOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { return getInputConfig(); } public static final int ERRORS_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errorsConfig_; /** - * - * *
          * Optional. The desired location of errors incurred during the Import.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the errorsConfig field is set. */ @java.lang.Override @@ -345,43 +283,30 @@ public boolean hasErrorsConfig() { return errorsConfig_ != null; } /** - * - * *
          * Optional. The desired location of errors incurred during the Import.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The errorsConfig. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig() { - return errorsConfig_ == null - ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() - : errorsConfig_; + return errorsConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; } /** - * - * *
          * Optional. The desired location of errors incurred during the Import.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder - getErrorsConfigOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder() { return getErrorsConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -393,7 +318,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -422,10 +348,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInputConfig()); } if (errorsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getErrorsConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getErrorsConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -435,23 +363,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest other = - (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) obj; + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest other = (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } if (hasErrorsConfig() != other.hasErrorsConfig()) return false; if (hasErrorsConfig()) { - if (!getErrorsConfig().equals(other.getErrorsConfig())) return false; + if (!getErrorsConfig() + .equals(other.getErrorsConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -482,145 +413,134 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Request message for the ImportUserEvents request.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.class, - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.class, com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -644,16 +564,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.getDefaultInstance(); } @java.lang.Override @@ -667,8 +585,7 @@ public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest bui @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest result = - new com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest(this); + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest result = new com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest(this); result.parent_ = parent_; result.requestId_ = requestId_; if (inputConfigBuilder_ == null) { @@ -689,51 +606,46 @@ public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest other) { + if (other == com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -767,9 +679,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -781,23 +691,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
            * Required.
            * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -806,24 +712,21 @@ public java.lang.String getParent() { } } /** - * - * *
            * Required.
            * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -831,70 +734,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
            * Required.
            * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
            * Required.
            * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
            * Required.
            * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -902,8 +792,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
            * Optional. Unique identifier provided by client, within the ancestor
            * dataset scope. Ensures idempotency for expensive long running operations.
      @@ -914,13 +802,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
            * 
      * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -929,8 +817,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
            * Optional. Unique identifier provided by client, within the ancestor
            * dataset scope. Ensures idempotency for expensive long running operations.
      @@ -941,14 +827,15 @@ public java.lang.String getRequestId() {
            * 
      * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -956,8 +843,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
            * Optional. Unique identifier provided by client, within the ancestor
            * dataset scope. Ensures idempotency for expensive long running operations.
      @@ -968,22 +853,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
            * 
      * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Unique identifier provided by client, within the ancestor
            * dataset scope. Ensures idempotency for expensive long running operations.
      @@ -994,18 +877,15 @@ public Builder setRequestId(java.lang.String value) {
            * 
      * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
            * Optional. Unique identifier provided by client, within the ancestor
            * dataset scope. Ensures idempotency for expensive long running operations.
      @@ -1016,16 +896,16 @@ public Builder clearRequestId() {
            * 
      * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; @@ -1033,58 +913,39 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.recommendationengine.v1beta1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.InputConfig, - com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, - com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.recommendationengine.v1beta1.InputConfig, com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
            * Required. The desired input location of the data.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
            * Required. The desired input location of the data.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ public com.google.cloud.recommendationengine.v1beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
            * Required. The desired input location of the data.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig(com.google.cloud.recommendationengine.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { @@ -1100,15 +961,11 @@ public Builder setInputConfig(com.google.cloud.recommendationengine.v1beta1.Inpu return this; } /** - * - * *
            * Required. The desired input location of the data.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig( com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder builderForValue) { @@ -1122,24 +979,17 @@ public Builder setInputConfig( return this; } /** - * - * *
            * Required. The desired input location of the data.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeInputConfig( - com.google.cloud.recommendationengine.v1beta1.InputConfig value) { + public Builder mergeInputConfig(com.google.cloud.recommendationengine.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.recommendationengine.v1beta1.InputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.recommendationengine.v1beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -1151,15 +1001,11 @@ public Builder mergeInputConfig( return this; } /** - * - * *
            * Required. The desired input location of the data.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -1173,66 +1019,48 @@ public Builder clearInputConfig() { return this; } /** - * - * *
            * Required. The desired input location of the data.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder - getInputConfigBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder getInputConfigBuilder() { + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
            * Required. The desired input location of the data.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder - getInputConfigOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
            * Required. The desired input location of the data.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.InputConfig, - com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, - com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder> + com.google.cloud.recommendationengine.v1beta1.InputConfig, com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.InputConfig, - com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, - com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.InputConfig, com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; @@ -1240,61 +1068,41 @@ public Builder clearInputConfig() { private com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errorsConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> - errorsConfigBuilder_; + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> errorsConfigBuilder_; /** - * - * *
            * Optional. The desired location of errors incurred during the Import.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the errorsConfig field is set. */ public boolean hasErrorsConfig() { return errorsConfigBuilder_ != null || errorsConfig_ != null; } /** - * - * *
            * Optional. The desired location of errors incurred during the Import.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The errorsConfig. */ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig() { if (errorsConfigBuilder_ == null) { - return errorsConfig_ == null - ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() - : errorsConfig_; + return errorsConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; } else { return errorsConfigBuilder_.getMessage(); } } /** - * - * *
            * Optional. The desired location of errors incurred during the Import.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setErrorsConfig( - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { + public Builder setErrorsConfig(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { if (errorsConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1308,15 +1116,11 @@ public Builder setErrorsConfig( return this; } /** - * - * *
            * Optional. The desired location of errors incurred during the Import.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setErrorsConfig( com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder builderForValue) { @@ -1330,25 +1134,17 @@ public Builder setErrorsConfig( return this; } /** - * - * *
            * Optional. The desired location of errors incurred during the Import.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeErrorsConfig( - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { + public Builder mergeErrorsConfig(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { if (errorsConfigBuilder_ == null) { if (errorsConfig_ != null) { errorsConfig_ = - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.newBuilder( - errorsConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.newBuilder(errorsConfig_).mergeFrom(value).buildPartial(); } else { errorsConfig_ = value; } @@ -1360,15 +1156,11 @@ public Builder mergeErrorsConfig( return this; } /** - * - * *
            * Optional. The desired location of errors incurred during the Import.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearErrorsConfig() { if (errorsConfigBuilder_ == null) { @@ -1382,73 +1174,55 @@ public Builder clearErrorsConfig() { return this; } /** - * - * *
            * Optional. The desired location of errors incurred during the Import.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder - getErrorsConfigBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder getErrorsConfigBuilder() { + onChanged(); return getErrorsConfigFieldBuilder().getBuilder(); } /** - * - * *
            * Optional. The desired location of errors incurred during the Import.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder - getErrorsConfigOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder() { if (errorsConfigBuilder_ != null) { return errorsConfigBuilder_.getMessageOrBuilder(); } else { - return errorsConfig_ == null - ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() - : errorsConfig_; + return errorsConfig_ == null ? + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; } } /** - * - * *
            * Optional. The desired location of errors incurred during the Import.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> getErrorsConfigFieldBuilder() { if (errorsConfigBuilder_ == null) { - errorsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder>( - getErrorsConfig(), getParentForChildren(), isClean()); + errorsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder>( + getErrorsConfig(), + getParentForChildren(), + isClean()); errorsConfig_ = null; } return errorsConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1458,32 +1232,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) - private static final com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportUserEventsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportUserEventsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportUserEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportUserEventsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1495,8 +1267,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequestOrBuilder.java index 953d67c9..4ad3cb75 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ImportUserEventsRequestOrBuilder - extends +public interface ImportUserEventsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required.
          * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
          * Required.
          * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
          * Optional. Unique identifier provided by client, within the ancestor
          * dataset scope. Ensures idempotency for expensive long running operations.
      @@ -67,13 +40,10 @@ public interface ImportUserEventsRequestOrBuilder
          * 
      * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
          * Optional. Unique identifier provided by client, within the ancestor
          * dataset scope. Ensures idempotency for expensive long running operations.
      @@ -84,91 +54,62 @@ public interface ImportUserEventsRequestOrBuilder
          * 
      * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); /** - * - * *
          * Required. The desired input location of the data.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
          * Required. The desired input location of the data.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ com.google.cloud.recommendationengine.v1beta1.InputConfig getInputConfig(); /** - * - * *
          * Required. The desired input location of the data.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** - * - * *
          * Optional. The desired location of errors incurred during the Import.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the errorsConfig field is set. */ boolean hasErrorsConfig(); /** - * - * *
          * Optional. The desired location of errors incurred during the Import.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The errorsConfig. */ com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig(); /** - * - * *
          * Optional. The desired location of errors incurred during the Import.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder - getErrorsConfigOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder(); } diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponse.java similarity index 69% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponse.java index cb5634b4..19665b90 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Response of the ImportUserEventsRequest. If the long running
        * operation was successful, then this message is returned by the
      @@ -29,31 +12,31 @@
        *
        * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse}
        */
      -public final class ImportUserEventsResponse extends com.google.protobuf.GeneratedMessageV3
      -    implements
      +public final class ImportUserEventsResponse extends
      +    com.google.protobuf.GeneratedMessageV3 implements
           // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse)
           ImportUserEventsResponseOrBuilder {
      -  private static final long serialVersionUID = 0L;
      +private static final long serialVersionUID = 0L;
         // Use ImportUserEventsResponse.newBuilder() to construct.
         private ImportUserEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
      -
         private ImportUserEventsResponse() {
           errorSamples_ = java.util.Collections.emptyList();
         }
       
         @java.lang.Override
         @SuppressWarnings({"unused"})
      -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      +  protected java.lang.Object newInstance(
      +      UnusedPrivateParameter unused) {
           return new ImportUserEventsResponse();
         }
       
         @java.lang.Override
      -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      +  public final com.google.protobuf.UnknownFieldSet
      +  getUnknownFields() {
           return this.unknownFields;
         }
      -
         private ImportUserEventsResponse(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      @@ -73,59 +56,48 @@ private ImportUserEventsResponse(
                 case 0:
                   done = true;
                   break;
      -          case 10:
      -            {
      -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
      -                errorSamples_ = new java.util.ArrayList();
      -                mutable_bitField0_ |= 0x00000001;
      -              }
      -              errorSamples_.add(
      -                  input.readMessage(com.google.rpc.Status.parser(), extensionRegistry));
      -              break;
      +          case 10: {
      +            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
      +              errorSamples_ = new java.util.ArrayList();
      +              mutable_bitField0_ |= 0x00000001;
                   }
      -          case 18:
      -            {
      -              com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder subBuilder =
      -                  null;
      -              if (errorsConfig_ != null) {
      -                subBuilder = errorsConfig_.toBuilder();
      -              }
      -              errorsConfig_ =
      -                  input.readMessage(
      -                      com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.parser(),
      -                      extensionRegistry);
      -              if (subBuilder != null) {
      -                subBuilder.mergeFrom(errorsConfig_);
      -                errorsConfig_ = subBuilder.buildPartial();
      -              }
      -
      -              break;
      +            errorSamples_.add(
      +                input.readMessage(com.google.rpc.Status.parser(), extensionRegistry));
      +            break;
      +          }
      +          case 18: {
      +            com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder subBuilder = null;
      +            if (errorsConfig_ != null) {
      +              subBuilder = errorsConfig_.toBuilder();
      +            }
      +            errorsConfig_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.parser(), extensionRegistry);
      +            if (subBuilder != null) {
      +              subBuilder.mergeFrom(errorsConfig_);
      +              errorsConfig_ = subBuilder.buildPartial();
                   }
      -          case 26:
      -            {
      -              com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder
      -                  subBuilder = null;
      -              if (importSummary_ != null) {
      -                subBuilder = importSummary_.toBuilder();
      -              }
      -              importSummary_ =
      -                  input.readMessage(
      -                      com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.parser(),
      -                      extensionRegistry);
      -              if (subBuilder != null) {
      -                subBuilder.mergeFrom(importSummary_);
      -                importSummary_ = subBuilder.buildPartial();
      -              }
       
      -              break;
      +            break;
      +          }
      +          case 26: {
      +            com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder subBuilder = null;
      +            if (importSummary_ != null) {
      +              subBuilder = importSummary_.toBuilder();
      +            }
      +            importSummary_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.parser(), extensionRegistry);
      +            if (subBuilder != null) {
      +              subBuilder.mergeFrom(importSummary_);
      +              importSummary_ = subBuilder.buildPartial();
                   }
      -          default:
      -            {
      -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
      -                done = true;
      -              }
      -              break;
      +
      +            break;
      +          }
      +          default: {
      +            if (!parseUnknownField(
      +                input, unknownFields, extensionRegistry, tag)) {
      +              done = true;
                   }
      +            break;
      +          }
               }
             }
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      @@ -133,7 +105,8 @@ private ImportUserEventsResponse(
           } catch (com.google.protobuf.UninitializedMessageException e) {
             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
           } catch (java.io.IOException e) {
      -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      +      throw new com.google.protobuf.InvalidProtocolBufferException(
      +          e).setUnfinishedMessage(this);
           } finally {
             if (((mutable_bitField0_ & 0x00000001) != 0)) {
               errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_);
      @@ -142,27 +115,22 @@ private ImportUserEventsResponse(
             makeExtensionsImmutable();
           }
         }
      -
      -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -    return com.google.cloud.recommendationengine.v1beta1.Import
      -        .internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor;
      +  public static final com.google.protobuf.Descriptors.Descriptor
      +      getDescriptor() {
      +    return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor;
         }
       
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
      -    return com.google.cloud.recommendationengine.v1beta1.Import
      -        .internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_fieldAccessorTable
      +    return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
      -            com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.class,
      -            com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.Builder.class);
      +            com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.class, com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.Builder.class);
         }
       
         public static final int ERROR_SAMPLES_FIELD_NUMBER = 1;
         private java.util.List errorSamples_;
         /**
      -   *
      -   *
          * 
          * A sample of errors encountered while processing the request.
          * 
      @@ -174,8 +142,6 @@ public java.util.List getErrorSamplesList() { return errorSamples_; } /** - * - * *
          * A sample of errors encountered while processing the request.
          * 
      @@ -183,12 +149,11 @@ public java.util.List getErrorSamplesList() { * repeated .google.rpc.Status error_samples = 1; */ @java.lang.Override - public java.util.List getErrorSamplesOrBuilderList() { + public java.util.List + getErrorSamplesOrBuilderList() { return errorSamples_; } /** - * - * *
          * A sample of errors encountered while processing the request.
          * 
      @@ -200,8 +165,6 @@ public int getErrorSamplesCount() { return errorSamples_.size(); } /** - * - * *
          * A sample of errors encountered while processing the request.
          * 
      @@ -213,8 +176,6 @@ public com.google.rpc.Status getErrorSamples(int index) { return errorSamples_.get(index); } /** - * - * *
          * A sample of errors encountered while processing the request.
          * 
      @@ -222,22 +183,20 @@ public com.google.rpc.Status getErrorSamples(int index) { * repeated .google.rpc.Status error_samples = 1; */ @java.lang.Override - public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder( + int index) { return errorSamples_.get(index); } public static final int ERRORS_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errorsConfig_; /** - * - * *
          * Echoes the destination for the complete errors if this field was set in
          * the request.
          * 
      * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; - * * @return Whether the errorsConfig field is set. */ @java.lang.Override @@ -245,26 +204,19 @@ public boolean hasErrorsConfig() { return errorsConfig_ != null; } /** - * - * *
          * Echoes the destination for the complete errors if this field was set in
          * the request.
          * 
      * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; - * * @return The errorsConfig. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig() { - return errorsConfig_ == null - ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() - : errorsConfig_; + return errorsConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; } /** - * - * *
          * Echoes the destination for the complete errors if this field was set in
          * the request.
      @@ -273,23 +225,18 @@ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getError
          * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2;
          */
         @java.lang.Override
      -  public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder
      -      getErrorsConfigOrBuilder() {
      +  public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder() {
           return getErrorsConfig();
         }
       
         public static final int IMPORT_SUMMARY_FIELD_NUMBER = 3;
         private com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary importSummary_;
         /**
      -   *
      -   *
          * 
          * Aggregated statistics of user event import status.
          * 
      * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; * @return Whether the importSummary field is set. */ @java.lang.Override @@ -297,41 +244,30 @@ public boolean hasImportSummary() { return importSummary_ != null; } /** - * - * *
          * Aggregated statistics of user event import status.
          * 
      * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; * @return The importSummary. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary getImportSummary() { - return importSummary_ == null - ? com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.getDefaultInstance() - : importSummary_; + return importSummary_ == null ? com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.getDefaultInstance() : importSummary_; } /** - * - * *
          * Aggregated statistics of user event import status.
          * 
      * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; - * + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder - getImportSummaryOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder getImportSummaryOrBuilder() { return getImportSummary(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -343,7 +279,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < errorSamples_.size(); i++) { output.writeMessage(1, errorSamples_.get(i)); } @@ -363,13 +300,16 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < errorSamples_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, errorSamples_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, errorSamples_.get(i)); } if (errorsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getErrorsConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getErrorsConfig()); } if (importSummary_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImportSummary()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getImportSummary()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -379,22 +319,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse other = - (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse) obj; + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse other = (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse) obj; - if (!getErrorSamplesList().equals(other.getErrorSamplesList())) return false; + if (!getErrorSamplesList() + .equals(other.getErrorSamplesList())) return false; if (hasErrorsConfig() != other.hasErrorsConfig()) return false; if (hasErrorsConfig()) { - if (!getErrorsConfig().equals(other.getErrorsConfig())) return false; + if (!getErrorsConfig() + .equals(other.getErrorsConfig())) return false; } if (hasImportSummary() != other.hasImportSummary()) return false; if (hasImportSummary()) { - if (!getImportSummary().equals(other.getImportSummary())) return false; + if (!getImportSummary() + .equals(other.getImportSummary())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -425,105 +367,96 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Response of the ImportUserEventsRequest. If the long running
          * operation was successful, then this message is returned by the
      @@ -532,42 +465,39 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *
          * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse}
          */
      -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
      -      implements
      +  public static final class Builder extends
      +      com.google.protobuf.GeneratedMessageV3.Builder implements
             // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse)
             com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponseOrBuilder {
      -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -      return com.google.cloud.recommendationengine.v1beta1.Import
      -          .internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor;
      +    public static final com.google.protobuf.Descriptors.Descriptor
      +        getDescriptor() {
      +      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor;
           }
       
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
      -      return com.google.cloud.recommendationengine.v1beta1.Import
      -          .internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_fieldAccessorTable
      +      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
      -              com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.class,
      -              com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.Builder.class);
      +              com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.class, com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.Builder.class);
           }
       
      -    // Construct using
      -    // com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.newBuilder()
      +    // Construct using com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.newBuilder()
           private Builder() {
             maybeForceBuilderInitialization();
           }
       
      -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +    private Builder(
      +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
             maybeForceBuilderInitialization();
           }
      -
           private void maybeForceBuilderInitialization() {
      -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
      +      if (com.google.protobuf.GeneratedMessageV3
      +              .alwaysUseFieldBuilders) {
               getErrorSamplesFieldBuilder();
             }
           }
      -
           @java.lang.Override
           public Builder clear() {
             super.clear();
      @@ -593,22 +523,19 @@ public Builder clear() {
           }
       
           @java.lang.Override
      -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      -      return com.google.cloud.recommendationengine.v1beta1.Import
      -          .internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor;
      +    public com.google.protobuf.Descriptors.Descriptor
      +        getDescriptorForType() {
      +      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor;
           }
       
           @java.lang.Override
      -    public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse
      -        getDefaultInstanceForType() {
      -      return com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse
      -          .getDefaultInstance();
      +    public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse getDefaultInstanceForType() {
      +      return com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.getDefaultInstance();
           }
       
           @java.lang.Override
           public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse build() {
      -      com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse result =
      -          buildPartial();
      +      com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse result = buildPartial();
             if (!result.isInitialized()) {
               throw newUninitializedMessageException(result);
             }
      @@ -617,8 +544,7 @@ public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse bu
       
           @java.lang.Override
           public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse buildPartial() {
      -      com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse result =
      -          new com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse(this);
      +      com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse result = new com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse(this);
             int from_bitField0_ = bitField0_;
             if (errorSamplesBuilder_ == null) {
               if (((bitField0_ & 0x00000001) != 0)) {
      @@ -647,51 +573,46 @@ public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse bu
           public Builder clone() {
             return super.clone();
           }
      -
           @java.lang.Override
           public Builder setField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        java.lang.Object value) {
             return super.setField(field, value);
           }
      -
           @java.lang.Override
      -    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      +    public Builder clearField(
      +        com.google.protobuf.Descriptors.FieldDescriptor field) {
             return super.clearField(field);
           }
      -
           @java.lang.Override
      -    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      +    public Builder clearOneof(
      +        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
             return super.clearOneof(oneof);
           }
      -
           @java.lang.Override
           public Builder setRepeatedField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        int index, java.lang.Object value) {
             return super.setRepeatedField(field, index, value);
           }
      -
           @java.lang.Override
           public Builder addRepeatedField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        java.lang.Object value) {
             return super.addRepeatedField(field, value);
           }
      -
           @java.lang.Override
           public Builder mergeFrom(com.google.protobuf.Message other) {
             if (other instanceof com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse) {
      -        return mergeFrom(
      -            (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse) other);
      +        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse)other);
             } else {
               super.mergeFrom(other);
               return this;
             }
           }
       
      -    public Builder mergeFrom(
      -        com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse other) {
      -      if (other
      -          == com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse
      -              .getDefaultInstance()) return this;
      +    public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse other) {
      +      if (other == com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.getDefaultInstance()) return this;
             if (errorSamplesBuilder_ == null) {
               if (!other.errorSamples_.isEmpty()) {
                 if (errorSamples_.isEmpty()) {
      @@ -710,10 +631,9 @@ public Builder mergeFrom(
                   errorSamplesBuilder_ = null;
                   errorSamples_ = other.errorSamples_;
                   bitField0_ = (bitField0_ & ~0x00000001);
      -            errorSamplesBuilder_ =
      -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
      -                    ? getErrorSamplesFieldBuilder()
      -                    : null;
      +            errorSamplesBuilder_ = 
      +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
      +                 getErrorSamplesFieldBuilder() : null;
                 } else {
                   errorSamplesBuilder_.addAllMessages(other.errorSamples_);
                 }
      @@ -744,9 +664,7 @@ public Builder mergeFrom(
             try {
               parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      -        parsedMessage =
      -            (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse)
      -                e.getUnfinishedMessage();
      +        parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse) e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
               if (parsedMessage != null) {
      @@ -755,25 +673,21 @@ public Builder mergeFrom(
             }
             return this;
           }
      -
           private int bitField0_;
       
      -    private java.util.List errorSamples_ = java.util.Collections.emptyList();
      -
      +    private java.util.List errorSamples_ =
      +      java.util.Collections.emptyList();
           private void ensureErrorSamplesIsMutable() {
             if (!((bitField0_ & 0x00000001) != 0)) {
               errorSamples_ = new java.util.ArrayList(errorSamples_);
               bitField0_ |= 0x00000001;
      -      }
      +       }
           }
       
           private com.google.protobuf.RepeatedFieldBuilderV3<
      -            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
      -        errorSamplesBuilder_;
      +        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorSamplesBuilder_;
       
           /**
      -     *
      -     *
            * 
            * A sample of errors encountered while processing the request.
            * 
      @@ -788,8 +702,6 @@ public java.util.List getErrorSamplesList() { } } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      @@ -804,8 +716,6 @@ public int getErrorSamplesCount() { } } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      @@ -820,15 +730,14 @@ public com.google.rpc.Status getErrorSamples(int index) { } } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public Builder setErrorSamples(int index, com.google.rpc.Status value) { + public Builder setErrorSamples( + int index, com.google.rpc.Status value) { if (errorSamplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -842,15 +751,14 @@ public Builder setErrorSamples(int index, com.google.rpc.Status value) { return this; } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + public Builder setErrorSamples( + int index, com.google.rpc.Status.Builder builderForValue) { if (errorSamplesBuilder_ == null) { ensureErrorSamplesIsMutable(); errorSamples_.set(index, builderForValue.build()); @@ -861,8 +769,6 @@ public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderF return this; } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      @@ -883,15 +789,14 @@ public Builder addErrorSamples(com.google.rpc.Status value) { return this; } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public Builder addErrorSamples(int index, com.google.rpc.Status value) { + public Builder addErrorSamples( + int index, com.google.rpc.Status value) { if (errorSamplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -905,15 +810,14 @@ public Builder addErrorSamples(int index, com.google.rpc.Status value) { return this; } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public Builder addErrorSamples(com.google.rpc.Status.Builder builderForValue) { + public Builder addErrorSamples( + com.google.rpc.Status.Builder builderForValue) { if (errorSamplesBuilder_ == null) { ensureErrorSamplesIsMutable(); errorSamples_.add(builderForValue.build()); @@ -924,15 +828,14 @@ public Builder addErrorSamples(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public Builder addErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + public Builder addErrorSamples( + int index, com.google.rpc.Status.Builder builderForValue) { if (errorSamplesBuilder_ == null) { ensureErrorSamplesIsMutable(); errorSamples_.add(index, builderForValue.build()); @@ -943,18 +846,18 @@ public Builder addErrorSamples(int index, com.google.rpc.Status.Builder builderF return this; } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public Builder addAllErrorSamples(java.lang.Iterable values) { + public Builder addAllErrorSamples( + java.lang.Iterable values) { if (errorSamplesBuilder_ == null) { ensureErrorSamplesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorSamples_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errorSamples_); onChanged(); } else { errorSamplesBuilder_.addAllMessages(values); @@ -962,8 +865,6 @@ public Builder addAllErrorSamples(java.lang.Iterable * A sample of errors encountered while processing the request. *
      @@ -981,8 +882,6 @@ public Builder clearErrorSamples() { return this; } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      @@ -1000,43 +899,39 @@ public Builder removeErrorSamples(int index) { return this; } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public com.google.rpc.Status.Builder getErrorSamplesBuilder(int index) { + public com.google.rpc.Status.Builder getErrorSamplesBuilder( + int index) { return getErrorSamplesFieldBuilder().getBuilder(index); } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder( + int index) { if (errorSamplesBuilder_ == null) { - return errorSamples_.get(index); - } else { + return errorSamples_.get(index); } else { return errorSamplesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public java.util.List getErrorSamplesOrBuilderList() { + public java.util.List + getErrorSamplesOrBuilderList() { if (errorSamplesBuilder_ != null) { return errorSamplesBuilder_.getMessageOrBuilderList(); } else { @@ -1044,8 +939,6 @@ public java.util.List getErrorSamplesO } } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      @@ -1053,44 +946,42 @@ public java.util.List getErrorSamplesO * repeated .google.rpc.Status error_samples = 1; */ public com.google.rpc.Status.Builder addErrorSamplesBuilder() { - return getErrorSamplesFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + return getErrorSamplesFieldBuilder().addBuilder( + com.google.rpc.Status.getDefaultInstance()); } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public com.google.rpc.Status.Builder addErrorSamplesBuilder(int index) { - return getErrorSamplesFieldBuilder() - .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + public com.google.rpc.Status.Builder addErrorSamplesBuilder( + int index) { + return getErrorSamplesFieldBuilder().addBuilder( + index, com.google.rpc.Status.getDefaultInstance()); } /** - * - * *
            * A sample of errors encountered while processing the request.
            * 
      * * repeated .google.rpc.Status error_samples = 1; */ - public java.util.List getErrorSamplesBuilderList() { + public java.util.List + getErrorSamplesBuilderList() { return getErrorSamplesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getErrorSamplesFieldBuilder() { if (errorSamplesBuilder_ == null) { - errorSamplesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - errorSamples_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + errorSamplesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + errorSamples_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); errorSamples_ = null; } return errorSamplesBuilder_; @@ -1098,49 +989,36 @@ public java.util.List getErrorSamplesBuilderList( private com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errorsConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> - errorsConfigBuilder_; + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> errorsConfigBuilder_; /** - * - * *
            * Echoes the destination for the complete errors if this field was set in
            * the request.
            * 
      * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; - * * @return Whether the errorsConfig field is set. */ public boolean hasErrorsConfig() { return errorsConfigBuilder_ != null || errorsConfig_ != null; } /** - * - * *
            * Echoes the destination for the complete errors if this field was set in
            * the request.
            * 
      * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; - * * @return The errorsConfig. */ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig() { if (errorsConfigBuilder_ == null) { - return errorsConfig_ == null - ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() - : errorsConfig_; + return errorsConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; } else { return errorsConfigBuilder_.getMessage(); } } /** - * - * *
            * Echoes the destination for the complete errors if this field was set in
            * the request.
      @@ -1148,8 +1026,7 @@ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getError
            *
            * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2;
            */
      -    public Builder setErrorsConfig(
      -        com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) {
      +    public Builder setErrorsConfig(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) {
             if (errorsConfigBuilder_ == null) {
               if (value == null) {
                 throw new NullPointerException();
      @@ -1163,8 +1040,6 @@ public Builder setErrorsConfig(
             return this;
           }
           /**
      -     *
      -     *
            * 
            * Echoes the destination for the complete errors if this field was set in
            * the request.
      @@ -1184,8 +1059,6 @@ public Builder setErrorsConfig(
             return this;
           }
           /**
      -     *
      -     *
            * 
            * Echoes the destination for the complete errors if this field was set in
            * the request.
      @@ -1193,15 +1066,11 @@ public Builder setErrorsConfig(
            *
            * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2;
            */
      -    public Builder mergeErrorsConfig(
      -        com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) {
      +    public Builder mergeErrorsConfig(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) {
             if (errorsConfigBuilder_ == null) {
               if (errorsConfig_ != null) {
                 errorsConfig_ =
      -              com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.newBuilder(
      -                      errorsConfig_)
      -                  .mergeFrom(value)
      -                  .buildPartial();
      +            com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.newBuilder(errorsConfig_).mergeFrom(value).buildPartial();
               } else {
                 errorsConfig_ = value;
               }
      @@ -1213,8 +1082,6 @@ public Builder mergeErrorsConfig(
             return this;
           }
           /**
      -     *
      -     *
            * 
            * Echoes the destination for the complete errors if this field was set in
            * the request.
      @@ -1234,8 +1101,6 @@ public Builder clearErrorsConfig() {
             return this;
           }
           /**
      -     *
      -     *
            * 
            * Echoes the destination for the complete errors if this field was set in
            * the request.
      @@ -1243,15 +1108,12 @@ public Builder clearErrorsConfig() {
            *
            * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2;
            */
      -    public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder
      -        getErrorsConfigBuilder() {
      -
      +    public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder getErrorsConfigBuilder() {
      +      
             onChanged();
             return getErrorsConfigFieldBuilder().getBuilder();
           }
           /**
      -     *
      -     *
            * 
            * Echoes the destination for the complete errors if this field was set in
            * the request.
      @@ -1259,19 +1121,15 @@ public Builder clearErrorsConfig() {
            *
            * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2;
            */
      -    public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder
      -        getErrorsConfigOrBuilder() {
      +    public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder() {
             if (errorsConfigBuilder_ != null) {
               return errorsConfigBuilder_.getMessageOrBuilder();
             } else {
      -        return errorsConfig_ == null
      -            ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance()
      -            : errorsConfig_;
      +        return errorsConfig_ == null ?
      +            com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_;
             }
           }
           /**
      -     *
      -     *
            * 
            * Echoes the destination for the complete errors if this field was set in
            * the request.
      @@ -1280,17 +1138,14 @@ public Builder clearErrorsConfig() {
            * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2;
            */
           private com.google.protobuf.SingleFieldBuilderV3<
      -            com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig,
      -            com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder,
      -            com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder>
      +        com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> 
               getErrorsConfigFieldBuilder() {
             if (errorsConfigBuilder_ == null) {
      -        errorsConfigBuilder_ =
      -            new com.google.protobuf.SingleFieldBuilderV3<
      -                com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig,
      -                com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder,
      -                com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder>(
      -                getErrorsConfig(), getParentForChildren(), isClean());
      +        errorsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
      +            com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder>(
      +                getErrorsConfig(),
      +                getParentForChildren(),
      +                isClean());
               errorsConfig_ = null;
             }
             return errorsConfigBuilder_;
      @@ -1298,59 +1153,41 @@ public Builder clearErrorsConfig() {
       
           private com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary importSummary_;
           private com.google.protobuf.SingleFieldBuilderV3<
      -            com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary,
      -            com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder,
      -            com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder>
      -        importSummaryBuilder_;
      +        com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary, com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder> importSummaryBuilder_;
           /**
      -     *
      -     *
            * 
            * Aggregated statistics of user event import status.
            * 
      * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; * @return Whether the importSummary field is set. */ public boolean hasImportSummary() { return importSummaryBuilder_ != null || importSummary_ != null; } /** - * - * *
            * Aggregated statistics of user event import status.
            * 
      * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; * @return The importSummary. */ public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary getImportSummary() { if (importSummaryBuilder_ == null) { - return importSummary_ == null - ? com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary - .getDefaultInstance() - : importSummary_; + return importSummary_ == null ? com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.getDefaultInstance() : importSummary_; } else { return importSummaryBuilder_.getMessage(); } } /** - * - * *
            * Aggregated statistics of user event import status.
            * 
      * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; - * + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; */ - public Builder setImportSummary( - com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary value) { + public Builder setImportSummary(com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary value) { if (importSummaryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1364,18 +1201,14 @@ public Builder setImportSummary( return this; } /** - * - * *
            * Aggregated statistics of user event import status.
            * 
      * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; - * + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; */ public Builder setImportSummary( - com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder - builderForValue) { + com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder builderForValue) { if (importSummaryBuilder_ == null) { importSummary_ = builderForValue.build(); onChanged(); @@ -1386,24 +1219,17 @@ public Builder setImportSummary( return this; } /** - * - * *
            * Aggregated statistics of user event import status.
            * 
      * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; - * + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; */ - public Builder mergeImportSummary( - com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary value) { + public Builder mergeImportSummary(com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary value) { if (importSummaryBuilder_ == null) { if (importSummary_ != null) { importSummary_ = - com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.newBuilder( - importSummary_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.newBuilder(importSummary_).mergeFrom(value).buildPartial(); } else { importSummary_ = value; } @@ -1415,14 +1241,11 @@ public Builder mergeImportSummary( return this; } /** - * - * *
            * Aggregated statistics of user event import status.
            * 
      * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; - * + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; */ public Builder clearImportSummary() { if (importSummaryBuilder_ == null) { @@ -1436,71 +1259,55 @@ public Builder clearImportSummary() { return this; } /** - * - * *
            * Aggregated statistics of user event import status.
            * 
      * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; - * + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; */ - public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder - getImportSummaryBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder getImportSummaryBuilder() { + onChanged(); return getImportSummaryFieldBuilder().getBuilder(); } /** - * - * *
            * Aggregated statistics of user event import status.
            * 
      * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; - * + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; */ - public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder - getImportSummaryOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder getImportSummaryOrBuilder() { if (importSummaryBuilder_ != null) { return importSummaryBuilder_.getMessageOrBuilder(); } else { - return importSummary_ == null - ? com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary - .getDefaultInstance() - : importSummary_; + return importSummary_ == null ? + com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.getDefaultInstance() : importSummary_; } } /** - * - * *
            * Aggregated statistics of user event import status.
            * 
      * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; - * + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary, - com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder, - com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder> + com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary, com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder> getImportSummaryFieldBuilder() { if (importSummaryBuilder_ == null) { - importSummaryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary, - com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder, - com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder>( - getImportSummary(), getParentForChildren(), isClean()); + importSummaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary, com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder>( + getImportSummary(), + getParentForChildren(), + isClean()); importSummary_ = null; } return importSummaryBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1510,32 +1317,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse) - private static final com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse(); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportUserEventsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportUserEventsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportUserEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportUserEventsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1547,8 +1352,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponseOrBuilder.java index c960840c..8a9c5ee6 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ImportUserEventsResponseOrBuilder - extends +public interface ImportUserEventsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * A sample of errors encountered while processing the request.
          * 
      * * repeated .google.rpc.Status error_samples = 1; */ - java.util.List getErrorSamplesList(); + java.util.List + getErrorSamplesList(); /** - * - * *
          * A sample of errors encountered while processing the request.
          * 
      @@ -44,8 +25,6 @@ public interface ImportUserEventsResponseOrBuilder */ com.google.rpc.Status getErrorSamples(int index); /** - * - * *
          * A sample of errors encountered while processing the request.
          * 
      @@ -54,55 +33,45 @@ public interface ImportUserEventsResponseOrBuilder */ int getErrorSamplesCount(); /** - * - * *
          * A sample of errors encountered while processing the request.
          * 
      * * repeated .google.rpc.Status error_samples = 1; */ - java.util.List getErrorSamplesOrBuilderList(); + java.util.List + getErrorSamplesOrBuilderList(); /** - * - * *
          * A sample of errors encountered while processing the request.
          * 
      * * repeated .google.rpc.Status error_samples = 1; */ - com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index); + com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder( + int index); /** - * - * *
          * Echoes the destination for the complete errors if this field was set in
          * the request.
          * 
      * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; - * * @return Whether the errorsConfig field is set. */ boolean hasErrorsConfig(); /** - * - * *
          * Echoes the destination for the complete errors if this field was set in
          * the request.
          * 
      * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; - * * @return The errorsConfig. */ com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig(); /** - * - * *
          * Echoes the destination for the complete errors if this field was set in
          * the request.
      @@ -110,45 +79,32 @@ public interface ImportUserEventsResponseOrBuilder
          *
          * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2;
          */
      -  com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder
      -      getErrorsConfigOrBuilder();
      +  com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder();
       
         /**
      -   *
      -   *
          * 
          * Aggregated statistics of user event import status.
          * 
      * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; * @return Whether the importSummary field is set. */ boolean hasImportSummary(); /** - * - * *
          * Aggregated statistics of user event import status.
          * 
      * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; * @return The importSummary. */ com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary getImportSummary(); /** - * - * *
          * Aggregated statistics of user event import status.
          * 
      * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; - * + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; */ - com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder - getImportSummaryOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder getImportSummaryOrBuilder(); } diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfig.java similarity index 62% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfig.java index cec596d6..bf66f48c 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * The input config source.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.InputConfig} */ -public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.InputConfig) InputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private InputConfig() {} + private InputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,74 +52,55 @@ private InputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder subBuilder = - null; - if (sourceCase_ == 1) { - subBuilder = - ((com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_) - .toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 1; - break; + case 10: { + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_).toBuilder(); } - case 18: - { - com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 2) { - subBuilder = - ((com.google.cloud.recommendationengine.v1beta1.GcsSource) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.GcsSource.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.GcsSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 2; - break; + source_ = + input.readMessage(com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_); + source_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder - subBuilder = null; - if (sourceCase_ == 3) { - subBuilder = - ((com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_) - .toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 3; - break; + sourceCase_ = 1; + break; + } + case 18: { + com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = ((com.google.cloud.recommendationengine.v1beta1.GcsSource) source_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + source_ = + input.readMessage(com.google.cloud.recommendationengine.v1beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.recommendationengine.v1beta1.GcsSource) source_); + source_ = subBuilder.buildPartial(); } + sourceCase_ = 2; + break; + } + case 26: { + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder subBuilder = null; + if (sourceCase_ == 3) { + subBuilder = ((com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_).toBuilder(); + } + source_ = + input.readMessage(com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 3; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -143,41 +108,36 @@ private InputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.InputConfig.class, - com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder.class); + com.google.cloud.recommendationengine.v1beta1.InputConfig.class, com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CATALOG_INLINE_SOURCE(1), GCS_SOURCE(2), USER_EVENT_INLINE_SOURCE(3), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -193,39 +153,31 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: - return CATALOG_INLINE_SOURCE; - case 2: - return GCS_SOURCE; - case 3: - return USER_EVENT_INLINE_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 1: return CATALOG_INLINE_SOURCE; + case 2: return GCS_SOURCE; + case 3: return USER_EVENT_INLINE_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public static final int CATALOG_INLINE_SOURCE_FIELD_NUMBER = 1; /** - * - * *
          * The Inline source for the input content for Catalog items.
          * 
      * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; - * - * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; * @return Whether the catalogInlineSource field is set. */ @java.lang.Override @@ -233,54 +185,42 @@ public boolean hasCatalogInlineSource() { return sourceCase_ == 1; } /** - * - * *
          * The Inline source for the input content for Catalog items.
          * 
      * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; - * - * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; * @return The catalogInlineSource. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource - getCatalogInlineSource() { + public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource getCatalogInlineSource() { if (sourceCase_ == 1) { - return (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_; + return (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_; } return com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.getDefaultInstance(); } /** - * - * *
          * The Inline source for the input content for Catalog items.
          * 
      * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; - * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder - getCatalogInlineSourceOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder getCatalogInlineSourceOrBuilder() { if (sourceCase_ == 1) { - return (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_; + return (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_; } return com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.getDefaultInstance(); } public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** - * - * *
          * Google Cloud Storage location for the input content.
          * 
      * * .google.cloud.recommendationengine.v1beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -288,26 +228,21 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
          * Google Cloud Storage location for the input content.
          * 
      * * .google.cloud.recommendationengine.v1beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.recommendationengine.v1beta1.GcsSource) source_; + return (com.google.cloud.recommendationengine.v1beta1.GcsSource) source_; } return com.google.cloud.recommendationengine.v1beta1.GcsSource.getDefaultInstance(); } /** - * - * *
          * Google Cloud Storage location for the input content.
          * 
      @@ -317,23 +252,18 @@ public com.google.cloud.recommendationengine.v1beta1.GcsSource getGcsSource() { @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { if (sourceCase_ == 2) { - return (com.google.cloud.recommendationengine.v1beta1.GcsSource) source_; + return (com.google.cloud.recommendationengine.v1beta1.GcsSource) source_; } return com.google.cloud.recommendationengine.v1beta1.GcsSource.getDefaultInstance(); } public static final int USER_EVENT_INLINE_SOURCE_FIELD_NUMBER = 3; /** - * - * *
          * The Inline source for the input content for UserEvents.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; * @return Whether the userEventInlineSource field is set. */ @java.lang.Override @@ -341,48 +271,36 @@ public boolean hasUserEventInlineSource() { return sourceCase_ == 3; } /** - * - * *
          * The Inline source for the input content for UserEvents.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; * @return The userEventInlineSource. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource - getUserEventInlineSource() { + public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource getUserEventInlineSource() { if (sourceCase_ == 3) { - return (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_; + return (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_; } return com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.getDefaultInstance(); } /** - * - * *
          * The Inline source for the input content for UserEvents.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; - * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder - getUserEventInlineSourceOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder getUserEventInlineSourceOrBuilder() { if (sourceCase_ == 3) { - return (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_; + return (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_; } return com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -394,17 +312,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (sourceCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_); + output.writeMessage(1, (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_); } if (sourceCase_ == 2) { output.writeMessage(2, (com.google.cloud.recommendationengine.v1beta1.GcsSource) source_); } if (sourceCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_); + output.writeMessage(3, (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_); } unknownFields.writeTo(output); } @@ -416,19 +333,16 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_); } if (sourceCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.recommendationengine.v1beta1.GcsSource) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.recommendationengine.v1beta1.GcsSource) source_); } if (sourceCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -438,24 +352,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.InputConfig)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.InputConfig other = - (com.google.cloud.recommendationengine.v1beta1.InputConfig) obj; + com.google.cloud.recommendationengine.v1beta1.InputConfig other = (com.google.cloud.recommendationengine.v1beta1.InputConfig) obj; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getCatalogInlineSource().equals(other.getCatalogInlineSource())) return false; + if (!getCatalogInlineSource() + .equals(other.getCatalogInlineSource())) return false; break; case 2: - if (!getGcsSource().equals(other.getGcsSource())) return false; + if (!getGcsSource() + .equals(other.getGcsSource())) return false; break; case 3: - if (!getUserEventInlineSource().equals(other.getUserEventInlineSource())) return false; + if (!getUserEventInlineSource() + .equals(other.getUserEventInlineSource())) return false; break; case 0: default: @@ -493,127 +409,117 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.InputConfig prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.InputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * The input config source.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.InputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.InputConfig) com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.InputConfig.class, - com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder.class); + com.google.cloud.recommendationengine.v1beta1.InputConfig.class, com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder.class); } // Construct using com.google.cloud.recommendationengine.v1beta1.InputConfig.newBuilder() @@ -621,15 +527,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -639,9 +546,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor; } @java.lang.Override @@ -660,8 +567,7 @@ public com.google.cloud.recommendationengine.v1beta1.InputConfig build() { @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.InputConfig buildPartial() { - com.google.cloud.recommendationengine.v1beta1.InputConfig result = - new com.google.cloud.recommendationengine.v1beta1.InputConfig(this); + com.google.cloud.recommendationengine.v1beta1.InputConfig result = new com.google.cloud.recommendationengine.v1beta1.InputConfig(this); if (sourceCase_ == 1) { if (catalogInlineSourceBuilder_ == null) { result.source_ = source_; @@ -692,39 +598,38 @@ public com.google.cloud.recommendationengine.v1beta1.InputConfig buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.InputConfig) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.InputConfig) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.InputConfig)other); } else { super.mergeFrom(other); return this; @@ -732,28 +637,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.InputConfig other) { - if (other == com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance()) return this; switch (other.getSourceCase()) { - case CATALOG_INLINE_SOURCE: - { - mergeCatalogInlineSource(other.getCatalogInlineSource()); - break; - } - case GCS_SOURCE: - { - mergeGcsSource(other.getGcsSource()); - break; - } - case USER_EVENT_INLINE_SOURCE: - { - mergeUserEventInlineSource(other.getUserEventInlineSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + case CATALOG_INLINE_SOURCE: { + mergeCatalogInlineSource(other.getCatalogInlineSource()); + break; + } + case GCS_SOURCE: { + mergeGcsSource(other.getGcsSource()); + break; + } + case USER_EVENT_INLINE_SOURCE: { + mergeUserEventInlineSource(other.getUserEventInlineSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -774,8 +674,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.InputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.InputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -784,12 +683,12 @@ public Builder mergeFrom( } return this; } - private int sourceCase_ = 0; private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } public Builder clearSource() { @@ -799,22 +698,15 @@ public Builder clearSource() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource, - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder, - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder> - catalogInlineSourceBuilder_; + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource, com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder> catalogInlineSourceBuilder_; /** - * - * *
            * The Inline source for the input content for Catalog items.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; - * - * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; * @return Whether the catalogInlineSource field is set. */ @java.lang.Override @@ -822,48 +714,35 @@ public boolean hasCatalogInlineSource() { return sourceCase_ == 1; } /** - * - * *
            * The Inline source for the input content for Catalog items.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; - * - * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; * @return The catalogInlineSource. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource - getCatalogInlineSource() { + public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource getCatalogInlineSource() { if (catalogInlineSourceBuilder_ == null) { if (sourceCase_ == 1) { return (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_; } - return com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource - .getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.getDefaultInstance(); } else { if (sourceCase_ == 1) { return catalogInlineSourceBuilder_.getMessage(); } - return com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource - .getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.getDefaultInstance(); } } /** - * - * *
            * The Inline source for the input content for Catalog items.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; - * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; */ - public Builder setCatalogInlineSource( - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource value) { + public Builder setCatalogInlineSource(com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource value) { if (catalogInlineSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -877,15 +756,11 @@ public Builder setCatalogInlineSource( return this; } /** - * - * *
            * The Inline source for the input content for Catalog items.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; - * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; */ public Builder setCatalogInlineSource( com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder builderForValue) { @@ -899,28 +774,18 @@ public Builder setCatalogInlineSource( return this; } /** - * - * *
            * The Inline source for the input content for Catalog items.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; - * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; */ - public Builder mergeCatalogInlineSource( - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource value) { + public Builder mergeCatalogInlineSource(com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource value) { if (catalogInlineSourceBuilder_ == null) { - if (sourceCase_ == 1 - && source_ - != com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource - .getDefaultInstance()) { - source_ = - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.newBuilder( - (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 1 && + source_ != com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.getDefaultInstance()) { + source_ = com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.newBuilder((com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -936,15 +801,11 @@ public Builder mergeCatalogInlineSource( return this; } /** - * - * *
            * The Inline source for the input content for Catalog items.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; - * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; */ public Builder clearCatalogInlineSource() { if (catalogInlineSourceBuilder_ == null) { @@ -963,96 +824,67 @@ public Builder clearCatalogInlineSource() { return this; } /** - * - * *
            * The Inline source for the input content for Catalog items.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; - * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; */ - public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder - getCatalogInlineSourceBuilder() { + public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder getCatalogInlineSourceBuilder() { return getCatalogInlineSourceFieldBuilder().getBuilder(); } /** - * - * *
            * The Inline source for the input content for Catalog items.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; - * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder - getCatalogInlineSourceOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder getCatalogInlineSourceOrBuilder() { if ((sourceCase_ == 1) && (catalogInlineSourceBuilder_ != null)) { return catalogInlineSourceBuilder_.getMessageOrBuilder(); } else { if (sourceCase_ == 1) { return (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_; } - return com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource - .getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.getDefaultInstance(); } } /** - * - * *
            * The Inline source for the input content for Catalog items.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; - * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource, - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder, - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder> + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource, com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder> getCatalogInlineSourceFieldBuilder() { if (catalogInlineSourceBuilder_ == null) { if (!(sourceCase_ == 1)) { - source_ = - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource - .getDefaultInstance(); + source_ = com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.getDefaultInstance(); } - catalogInlineSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource, - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder, - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder>( + catalogInlineSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource, com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder>( (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 1; - onChanged(); - ; + onChanged();; return catalogInlineSourceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.GcsSource, - com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder, - com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.recommendationengine.v1beta1.GcsSource, com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder, com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
            * Google Cloud Storage location for the input content.
            * 
      * * .google.cloud.recommendationengine.v1beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -1060,14 +892,11 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
            * Google Cloud Storage location for the input content.
            * 
      * * .google.cloud.recommendationengine.v1beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override @@ -1085,8 +914,6 @@ public com.google.cloud.recommendationengine.v1beta1.GcsSource getGcsSource() { } } /** - * - * *
            * Google Cloud Storage location for the input content.
            * 
      @@ -1107,8 +934,6 @@ public Builder setGcsSource(com.google.cloud.recommendationengine.v1beta1.GcsSou return this; } /** - * - * *
            * Google Cloud Storage location for the input content.
            * 
      @@ -1127,8 +952,6 @@ public Builder setGcsSource( return this; } /** - * - * *
            * Google Cloud Storage location for the input content.
            * 
      @@ -1137,14 +960,10 @@ public Builder setGcsSource( */ public Builder mergeGcsSource(com.google.cloud.recommendationengine.v1beta1.GcsSource value) { if (gcsSourceBuilder_ == null) { - if (sourceCase_ == 2 - && source_ - != com.google.cloud.recommendationengine.v1beta1.GcsSource.getDefaultInstance()) { - source_ = - com.google.cloud.recommendationengine.v1beta1.GcsSource.newBuilder( - (com.google.cloud.recommendationengine.v1beta1.GcsSource) source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 2 && + source_ != com.google.cloud.recommendationengine.v1beta1.GcsSource.getDefaultInstance()) { + source_ = com.google.cloud.recommendationengine.v1beta1.GcsSource.newBuilder((com.google.cloud.recommendationengine.v1beta1.GcsSource) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -1160,8 +979,6 @@ public Builder mergeGcsSource(com.google.cloud.recommendationengine.v1beta1.GcsS return this; } /** - * - * *
            * Google Cloud Storage location for the input content.
            * 
      @@ -1185,8 +1002,6 @@ public Builder clearGcsSource() { return this; } /** - * - * *
            * Google Cloud Storage location for the input content.
            * 
      @@ -1197,8 +1012,6 @@ public com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder getGcsSou return getGcsSourceFieldBuilder().getBuilder(); } /** - * - * *
            * Google Cloud Storage location for the input content.
            * 
      @@ -1206,8 +1019,7 @@ public com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder getGcsSou * .google.cloud.recommendationengine.v1beta1.GcsSource gcs_source = 2; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder - getGcsSourceOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { if ((sourceCase_ == 2) && (gcsSourceBuilder_ != null)) { return gcsSourceBuilder_.getMessageOrBuilder(); } else { @@ -1218,8 +1030,6 @@ public com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder getGcsSou } } /** - * - * *
            * Google Cloud Storage location for the input content.
            * 
      @@ -1227,46 +1037,32 @@ public com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder getGcsSou * .google.cloud.recommendationengine.v1beta1.GcsSource gcs_source = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.GcsSource, - com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder, - com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder> + com.google.cloud.recommendationengine.v1beta1.GcsSource, com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder, com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { if (!(sourceCase_ == 2)) { source_ = com.google.cloud.recommendationengine.v1beta1.GcsSource.getDefaultInstance(); } - gcsSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.GcsSource, - com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder, - com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder>( + gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.GcsSource, com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder, com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder>( (com.google.cloud.recommendationengine.v1beta1.GcsSource) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 2; - onChanged(); - ; + onChanged();; return gcsSourceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource, - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder, - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder> - userEventInlineSourceBuilder_; + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource, com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder> userEventInlineSourceBuilder_; /** - * - * *
            * The Inline source for the input content for UserEvents.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; * @return Whether the userEventInlineSource field is set. */ @java.lang.Override @@ -1274,48 +1070,35 @@ public boolean hasUserEventInlineSource() { return sourceCase_ == 3; } /** - * - * *
            * The Inline source for the input content for UserEvents.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; * @return The userEventInlineSource. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource - getUserEventInlineSource() { + public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource getUserEventInlineSource() { if (userEventInlineSourceBuilder_ == null) { if (sourceCase_ == 3) { return (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_; } - return com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource - .getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.getDefaultInstance(); } else { if (sourceCase_ == 3) { return userEventInlineSourceBuilder_.getMessage(); } - return com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource - .getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.getDefaultInstance(); } } /** - * - * *
            * The Inline source for the input content for UserEvents.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; - * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; */ - public Builder setUserEventInlineSource( - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource value) { + public Builder setUserEventInlineSource(com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource value) { if (userEventInlineSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1329,19 +1112,14 @@ public Builder setUserEventInlineSource( return this; } /** - * - * *
            * The Inline source for the input content for UserEvents.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; - * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; */ public Builder setUserEventInlineSource( - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder - builderForValue) { + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder builderForValue) { if (userEventInlineSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -1352,28 +1130,18 @@ public Builder setUserEventInlineSource( return this; } /** - * - * *
            * The Inline source for the input content for UserEvents.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; - * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; */ - public Builder mergeUserEventInlineSource( - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource value) { + public Builder mergeUserEventInlineSource(com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource value) { if (userEventInlineSourceBuilder_ == null) { - if (sourceCase_ == 3 - && source_ - != com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource - .getDefaultInstance()) { - source_ = - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.newBuilder( - (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 3 && + source_ != com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.getDefaultInstance()) { + source_ = com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.newBuilder((com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -1389,15 +1157,11 @@ public Builder mergeUserEventInlineSource( return this; } /** - * - * *
            * The Inline source for the input content for UserEvents.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; - * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; */ public Builder clearUserEventInlineSource() { if (userEventInlineSourceBuilder_ == null) { @@ -1416,84 +1180,61 @@ public Builder clearUserEventInlineSource() { return this; } /** - * - * *
            * The Inline source for the input content for UserEvents.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; - * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; */ - public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder - getUserEventInlineSourceBuilder() { + public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder getUserEventInlineSourceBuilder() { return getUserEventInlineSourceFieldBuilder().getBuilder(); } /** - * - * *
            * The Inline source for the input content for UserEvents.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; - * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder - getUserEventInlineSourceOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder getUserEventInlineSourceOrBuilder() { if ((sourceCase_ == 3) && (userEventInlineSourceBuilder_ != null)) { return userEventInlineSourceBuilder_.getMessageOrBuilder(); } else { if (sourceCase_ == 3) { return (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_; } - return com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource - .getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.getDefaultInstance(); } } /** - * - * *
            * The Inline source for the input content for UserEvents.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; - * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource, - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder, - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder> + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource, com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder> getUserEventInlineSourceFieldBuilder() { if (userEventInlineSourceBuilder_ == null) { if (!(sourceCase_ == 3)) { - source_ = - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource - .getDefaultInstance(); + source_ = com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.getDefaultInstance(); } - userEventInlineSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource, - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder, - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder>( + userEventInlineSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource, com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder>( (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 3; - onChanged(); - ; + onChanged();; return userEventInlineSourceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1503,12 +1244,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.InputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.InputConfig) private static final com.google.cloud.recommendationengine.v1beta1.InputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.InputConfig(); } @@ -1517,16 +1258,16 @@ public static com.google.cloud.recommendationengine.v1beta1.InputConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1541,4 +1282,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.recommendationengine.v1beta1.InputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfigOrBuilder.java similarity index 65% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfigOrBuilder.java index 03a77960..1e116f2f 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfigOrBuilder.java @@ -1,94 +1,58 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; -public interface InputConfigOrBuilder - extends +public interface InputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.InputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * The Inline source for the input content for Catalog items.
          * 
      * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; - * - * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; * @return Whether the catalogInlineSource field is set. */ boolean hasCatalogInlineSource(); /** - * - * *
          * The Inline source for the input content for Catalog items.
          * 
      * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; - * - * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; * @return The catalogInlineSource. */ com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource getCatalogInlineSource(); /** - * - * *
          * The Inline source for the input content for Catalog items.
          * 
      * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; - * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; */ - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder - getCatalogInlineSourceOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder getCatalogInlineSourceOrBuilder(); /** - * - * *
          * Google Cloud Storage location for the input content.
          * 
      * * .google.cloud.recommendationengine.v1beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
          * Google Cloud Storage location for the input content.
          * 
      * * .google.cloud.recommendationengine.v1beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ com.google.cloud.recommendationengine.v1beta1.GcsSource getGcsSource(); /** - * - * *
          * Google Cloud Storage location for the input content.
          * 
      @@ -98,46 +62,31 @@ public interface InputConfigOrBuilder com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(); /** - * - * *
          * The Inline source for the input content for UserEvents.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; * @return Whether the userEventInlineSource field is set. */ boolean hasUserEventInlineSource(); /** - * - * *
          * The Inline source for the input content for UserEvents.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; * @return The userEventInlineSource. */ com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource getUserEventInlineSource(); /** - * - * *
          * The Inline source for the input content for UserEvents.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; - * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; */ - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder - getUserEventInlineSourceOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder getUserEventInlineSourceOrBuilder(); public com.google.cloud.recommendationengine.v1beta1.InputConfig.SourceCase getSourceCase(); } diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequest.java similarity index 67% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequest.java index 5baef236..1ee0c52d 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog_service.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Request message for ListCatalogItems method.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest} */ -public final class ListCatalogItemsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCatalogItemsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) ListCatalogItemsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCatalogItemsRequest.newBuilder() to construct. private ListCatalogItemsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCatalogItemsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,15 +27,16 @@ private ListCatalogItemsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCatalogItemsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCatalogItemsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListCatalogItemsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,42 +92,35 @@ private ListCatalogItemsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.class, - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.class, com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
          * Required. The parent catalog resource name, such as
          * `projects/*/locations/global/catalogs/default_catalog`.
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -156,32 +129,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
          * Required. The parent catalog resource name, such as
          * `projects/*/locations/global/catalogs/default_catalog`.
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -192,15 +163,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
          * Optional. Maximum number of results to return per page. If zero, the
          * service will choose a reasonable default.
          * 
      * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -211,14 +179,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
          * Optional. The previous ListCatalogItemsResponse.next_page_token.
          * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -227,29 +192,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
          * Optional. The previous ListCatalogItemsResponse.next_page_token.
          * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -260,14 +225,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
          * Optional. A filter to apply on the list results.
          * 
      * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -276,29 +238,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
          * Optional. A filter to apply on the list results.
          * 
      * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -307,7 +269,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -319,7 +280,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -345,7 +307,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -361,18 +324,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest other = - (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) obj; + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest other = (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -398,145 +364,134 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Request message for ListCatalogItems method.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.class, - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.class, com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -552,16 +507,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.getDefaultInstance(); } @java.lang.Override @@ -575,8 +528,7 @@ public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest bui @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest result = - new com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest(this); + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest result = new com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -589,51 +541,46 @@ public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest other) { + if (other == com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -668,9 +615,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -682,23 +627,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
            * Required. The parent catalog resource name, such as
            * `projects/*/locations/global/catalogs/default_catalog`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -707,24 +648,21 @@ public java.lang.String getParent() { } } /** - * - * *
            * Required. The parent catalog resource name, such as
            * `projects/*/locations/global/catalogs/default_catalog`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -732,86 +670,70 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
            * Required. The parent catalog resource name, such as
            * `projects/*/locations/global/catalogs/default_catalog`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
            * Required. The parent catalog resource name, such as
            * `projects/*/locations/global/catalogs/default_catalog`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
            * Required. The parent catalog resource name, such as
            * `projects/*/locations/global/catalogs/default_catalog`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
            * Optional. Maximum number of results to return per page. If zero, the
            * service will choose a reasonable default.
            * 
      * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -819,38 +741,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
            * Optional. Maximum number of results to return per page. If zero, the
            * service will choose a reasonable default.
            * 
      * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Maximum number of results to return per page. If zero, the
            * service will choose a reasonable default.
            * 
      * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -858,20 +774,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
            * Optional. The previous ListCatalogItemsResponse.next_page_token.
            * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -880,21 +794,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
            * Optional. The previous ListCatalogItemsResponse.next_page_token.
            * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -902,61 +815,54 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
            * Optional. The previous ListCatalogItemsResponse.next_page_token.
            * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
            * Optional. The previous ListCatalogItemsResponse.next_page_token.
            * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
            * Optional. The previous ListCatalogItemsResponse.next_page_token.
            * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -964,20 +870,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
            * Optional. A filter to apply on the list results.
            * 
      * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -986,21 +890,20 @@ public java.lang.String getFilter() { } } /** - * - * *
            * Optional. A filter to apply on the list results.
            * 
      * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1008,68 +911,61 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
            * Optional. A filter to apply on the list results.
            * 
      * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
            * Optional. A filter to apply on the list results.
            * 
      * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
            * Optional. A filter to apply on the list results.
            * 
      * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1079,32 +975,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) - private static final com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCatalogItemsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCatalogItemsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCatalogItemsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCatalogItemsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1116,8 +1010,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequestOrBuilder.java index fb4838a2..ef3b9366 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequestOrBuilder.java @@ -1,120 +1,82 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ListCatalogItemsRequestOrBuilder - extends +public interface ListCatalogItemsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required. The parent catalog resource name, such as
          * `projects/*/locations/global/catalogs/default_catalog`.
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
          * Required. The parent catalog resource name, such as
          * `projects/*/locations/global/catalogs/default_catalog`.
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
          * Optional. Maximum number of results to return per page. If zero, the
          * service will choose a reasonable default.
          * 
      * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
          * Optional. The previous ListCatalogItemsResponse.next_page_token.
          * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
          * Optional. The previous ListCatalogItemsResponse.next_page_token.
          * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
          * Optional. A filter to apply on the list results.
          * 
      * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
          * Optional. A filter to apply on the list results.
          * 
      * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponse.java similarity index 68% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponse.java index fddb0b18..28215c44 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog_service.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Response message for ListCatalogItems method.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse} */ -public final class ListCatalogItemsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCatalogItemsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) ListCatalogItemsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCatalogItemsResponse.newBuilder() to construct. private ListCatalogItemsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCatalogItemsResponse() { catalogItems_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListCatalogItemsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCatalogItemsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCatalogItemsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,28 @@ private ListCatalogItemsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - catalogItems_ = - new java.util.ArrayList< - com.google.cloud.recommendationengine.v1beta1.CatalogItem>(); - mutable_bitField0_ |= 0x00000001; - } - catalogItems_.add( - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + catalogItems_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + catalogItems_.add( + input.readMessage(com.google.cloud.recommendationengine.v1beta1.CatalogItem.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,7 +84,8 @@ private ListCatalogItemsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { catalogItems_ = java.util.Collections.unmodifiableList(catalogItems_); @@ -116,27 +94,22 @@ private ListCatalogItemsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.class, - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.class, com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.Builder.class); } public static final int CATALOG_ITEMS_FIELD_NUMBER = 1; private java.util.List catalogItems_; /** - * - * *
          * The catalog items.
          * 
      @@ -144,13 +117,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ @java.lang.Override - public java.util.List - getCatalogItemsList() { + public java.util.List getCatalogItemsList() { return catalogItems_; } /** - * - * *
          * The catalog items.
          * 
      @@ -158,14 +128,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> + public java.util.List getCatalogItemsOrBuilderList() { return catalogItems_; } /** - * - * *
          * The catalog items.
          * 
      @@ -177,8 +144,6 @@ public int getCatalogItemsCount() { return catalogItems_.size(); } /** - * - * *
          * The catalog items.
          * 
      @@ -190,8 +155,6 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItems return catalogItems_.get(index); } /** - * - * *
          * The catalog items.
          * 
      @@ -199,23 +162,20 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItems * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder - getCatalogItemsOrBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemsOrBuilder( + int index) { return catalogItems_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
          * If empty, the list is complete. If nonempty, the token to pass to the next
          * request's ListCatalogItemRequest.page_token.
          * 
      * * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -224,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
          * If empty, the list is complete. If nonempty, the token to pass to the next
          * request's ListCatalogItemRequest.page_token.
          * 
      * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -256,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < catalogItems_.size(); i++) { output.writeMessage(1, catalogItems_.get(i)); } @@ -285,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < catalogItems_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, catalogItems_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, catalogItems_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -298,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse other = - (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) obj; + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse other = (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) obj; - if (!getCatalogItemsList().equals(other.getCatalogItemsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getCatalogItemsList() + .equals(other.getCatalogItemsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -331,147 +293,135 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Response message for ListCatalogItems method.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.class, - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.class, com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCatalogItemsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,22 +437,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse build() { - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse result = - buildPartial(); + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -511,8 +458,7 @@ public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse bu @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse result = - new com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse(this); + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse result = new com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse(this); int from_bitField0_ = bitField0_; if (catalogItemsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -532,51 +478,46 @@ public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse other) { + if (other == com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.getDefaultInstance()) return this; if (catalogItemsBuilder_ == null) { if (!other.catalogItems_.isEmpty()) { if (catalogItems_.isEmpty()) { @@ -595,10 +536,9 @@ public Builder mergeFrom( catalogItemsBuilder_ = null; catalogItems_ = other.catalogItems_; bitField0_ = (bitField0_ & ~0x00000001); - catalogItemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCatalogItemsFieldBuilder() - : null; + catalogItemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCatalogItemsFieldBuilder() : null; } else { catalogItemsBuilder_.addAllMessages(other.catalogItems_); } @@ -627,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -638,39 +576,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - catalogItems_ = java.util.Collections.emptyList(); - + private java.util.List catalogItems_ = + java.util.Collections.emptyList(); private void ensureCatalogItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - catalogItems_ = - new java.util.ArrayList( - catalogItems_); + catalogItems_ = new java.util.ArrayList(catalogItems_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, - com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> - catalogItemsBuilder_; + com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> catalogItemsBuilder_; /** - * - * *
            * The catalog items.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ - public java.util.List - getCatalogItemsList() { + public java.util.List getCatalogItemsList() { if (catalogItemsBuilder_ == null) { return java.util.Collections.unmodifiableList(catalogItems_); } else { @@ -678,14 +605,11 @@ private void ensureCatalogItemsIsMutable() { } } /** - * - * *
            * The catalog items.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ public int getCatalogItemsCount() { if (catalogItemsBuilder_ == null) { @@ -695,14 +619,11 @@ public int getCatalogItemsCount() { } } /** - * - * *
            * The catalog items.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItems(int index) { if (catalogItemsBuilder_ == null) { @@ -712,14 +633,11 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItems } } /** - * - * *
            * The catalog items.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ public Builder setCatalogItems( int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { @@ -736,18 +654,14 @@ public Builder setCatalogItems( return this; } /** - * - * *
            * The catalog items.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ public Builder setCatalogItems( - int index, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { + int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { if (catalogItemsBuilder_ == null) { ensureCatalogItemsIsMutable(); catalogItems_.set(index, builderForValue.build()); @@ -758,17 +672,13 @@ public Builder setCatalogItems( return this; } /** - * - * *
            * The catalog items.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ - public Builder addCatalogItems( - com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { + public Builder addCatalogItems(com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { if (catalogItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -782,14 +692,11 @@ public Builder addCatalogItems( return this; } /** - * - * *
            * The catalog items.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ public Builder addCatalogItems( int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { @@ -806,14 +713,11 @@ public Builder addCatalogItems( return this; } /** - * - * *
            * The catalog items.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ public Builder addCatalogItems( com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { @@ -827,18 +731,14 @@ public Builder addCatalogItems( return this; } /** - * - * *
            * The catalog items.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ public Builder addCatalogItems( - int index, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { + int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { if (catalogItemsBuilder_ == null) { ensureCatalogItemsIsMutable(); catalogItems_.add(index, builderForValue.build()); @@ -849,21 +749,18 @@ public Builder addCatalogItems( return this; } /** - * - * *
            * The catalog items.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ public Builder addAllCatalogItems( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (catalogItemsBuilder_ == null) { ensureCatalogItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, catalogItems_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, catalogItems_); onChanged(); } else { catalogItemsBuilder_.addAllMessages(values); @@ -871,14 +768,11 @@ public Builder addAllCatalogItems( return this; } /** - * - * *
            * The catalog items.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ public Builder clearCatalogItems() { if (catalogItemsBuilder_ == null) { @@ -891,14 +785,11 @@ public Builder clearCatalogItems() { return this; } /** - * - * *
            * The catalog items.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ public Builder removeCatalogItems(int index) { if (catalogItemsBuilder_ == null) { @@ -911,50 +802,39 @@ public Builder removeCatalogItems(int index) { return this; } /** - * - * *
            * The catalog items.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder getCatalogItemsBuilder( int index) { return getCatalogItemsFieldBuilder().getBuilder(index); } /** - * - * *
            * The catalog items.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder - getCatalogItemsOrBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemsOrBuilder( + int index) { if (catalogItemsBuilder_ == null) { - return catalogItems_.get(index); - } else { + return catalogItems_.get(index); } else { return catalogItemsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
            * The catalog items.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ - public java.util.List< - ? extends com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> - getCatalogItemsOrBuilderList() { + public java.util.List + getCatalogItemsOrBuilderList() { if (catalogItemsBuilder_ != null) { return catalogItemsBuilder_.getMessageOrBuilderList(); } else { @@ -962,65 +842,49 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder getCata } } /** - * - * *
            * The catalog items.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder - addCatalogItemsBuilder() { - return getCatalogItemsFieldBuilder() - .addBuilder( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder addCatalogItemsBuilder() { + return getCatalogItemsFieldBuilder().addBuilder( + com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance()); } /** - * - * *
            * The catalog items.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder addCatalogItemsBuilder( int index) { - return getCatalogItemsFieldBuilder() - .addBuilder( - index, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance()); + return getCatalogItemsFieldBuilder().addBuilder( + index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance()); } /** - * - * *
            * The catalog items.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ - public java.util.List - getCatalogItemsBuilderList() { + public java.util.List + getCatalogItemsBuilderList() { return getCatalogItemsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, - com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> + com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> getCatalogItemsFieldBuilder() { if (catalogItemsBuilder_ == null) { - catalogItemsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, - com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder>( - catalogItems_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + catalogItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder>( + catalogItems_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); catalogItems_ = null; } return catalogItemsBuilder_; @@ -1028,21 +892,19 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder addCata private java.lang.Object nextPageToken_ = ""; /** - * - * *
            * If empty, the list is complete. If nonempty, the token to pass to the next
            * request's ListCatalogItemRequest.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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1051,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
            * If empty, the list is complete. If nonempty, the token to pass to the next
            * request's ListCatalogItemRequest.page_token.
            * 
      * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1074,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
            * If empty, the list is complete. If nonempty, the token to pass to the next
            * request's ListCatalogItemRequest.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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
            * If empty, the list is complete. If nonempty, the token to pass to the next
            * request's ListCatalogItemRequest.page_token.
            * 
      * * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
            * If empty, the list is complete. If nonempty, the token to pass to the next
            * request's ListCatalogItemRequest.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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1148,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) - private static final com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse(); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCatalogItemsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCatalogItemsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCatalogItemsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCatalogItemsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1185,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponseOrBuilder.java similarity index 71% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponseOrBuilder.java index 108dbed3..cca4b456 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ListCatalogItemsResponseOrBuilder - extends +public interface ListCatalogItemsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * The catalog items.
          * 
      * * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ - java.util.List getCatalogItemsList(); + java.util.List + getCatalogItemsList(); /** - * - * *
          * The catalog items.
          * 
      @@ -44,8 +25,6 @@ public interface ListCatalogItemsResponseOrBuilder */ com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItems(int index); /** - * - * *
          * The catalog items.
          * 
      @@ -54,19 +33,15 @@ public interface ListCatalogItemsResponseOrBuilder */ int getCatalogItemsCount(); /** - * - * *
          * The catalog items.
          * 
      * * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ - java.util.List + java.util.List getCatalogItemsOrBuilderList(); /** - * - * *
          * The catalog items.
          * 
      @@ -77,29 +52,24 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogIte int index); /** - * - * *
          * If empty, the list is complete. If nonempty, the token to pass to the next
          * request's ListCatalogItemRequest.page_token.
          * 
      * * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
          * If empty, the list is complete. If nonempty, the token to pass to the next
          * request's ListCatalogItemRequest.page_token.
          * 
      * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequest.java similarity index 56% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequest.java index bd3a29a8..2d9c702f 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequest.java @@ -1,45 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Request message for the `ListPredictionApiKeyRegistrations`.
        * 
      * - * Protobuf type {@code - * google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest} + * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest} */ -public final class ListPredictionApiKeyRegistrationsRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListPredictionApiKeyRegistrationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) ListPredictionApiKeyRegistrationsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPredictionApiKeyRegistrationsRequest.newBuilder() to construct. - private ListPredictionApiKeyRegistrationsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListPredictionApiKeyRegistrationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPredictionApiKeyRegistrationsRequest() { parent_ = ""; pageToken_ = ""; @@ -47,15 +26,16 @@ private ListPredictionApiKeyRegistrationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPredictionApiKeyRegistrationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListPredictionApiKeyRegistrationsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,32 +54,30 @@ private ListPredictionApiKeyRegistrationsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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) { @@ -107,44 +85,35 @@ private ListPredictionApiKeyRegistrationsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest - .class, - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest - .Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest.class, com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
          * Required. The parent placement resource name such as
          * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -153,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
          * Required. The parent placement resource name such as
          * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -189,15 +156,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
          * Optional. Maximum number of results to return per page. If unset, the
          * service will choose a reasonable default.
          * 
      * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -208,14 +172,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
          * Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`.
          * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -224,29 +185,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
          * Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`.
          * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -255,7 +216,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -290,7 +251,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -303,20 +265,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest)) { + if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest other = - (com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) - obj; + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest other = (com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -339,168 +300,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest - prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Request message for the `ListPredictionApiKeyRegistrations`.
          * 
      * - * Protobuf type {@code - * google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest} + * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) - com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor; + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest - .class, - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest - .Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest.class, com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -514,23 +442,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest - build() { - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest - result = buildPartial(); + public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest build() { + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -538,12 +462,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest - buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest - result = - new com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsRequest(this); + public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest buildPartial() { + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest result = new com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -555,55 +475,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) - other); + if (other instanceof com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) { + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest - other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest other) { + if (other == com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -630,14 +541,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest - parsedMessage = null; + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -649,23 +557,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
            * Required. The parent placement resource name such as
            * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -674,24 +578,21 @@ public java.lang.String getParent() { } } /** - * - * *
            * Required. The parent placement resource name such as
            * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -699,86 +600,70 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
            * Required. The parent placement resource name such as
            * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
            * Required. The parent placement resource name such as
            * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
            * Required. The parent placement resource name such as
            * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
            * Optional. Maximum number of results to return per page. If unset, the
            * service will choose a reasonable default.
            * 
      * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -786,38 +671,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
            * Optional. Maximum number of results to return per page. If unset, the
            * service will choose a reasonable default.
            * 
      * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Maximum number of results to return per page. If unset, the
            * service will choose a reasonable default.
            * 
      * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -825,20 +704,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
            * Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`.
            * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -847,21 +724,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
            * Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`.
            * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -869,68 +745,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
            * Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`.
            * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
            * Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`.
            * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
            * Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`.
            * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -940,36 +809,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) - private static final com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsRequest(); + DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest(); } - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsRequest - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPredictionApiKeyRegistrationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPredictionApiKeyRegistrationsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPredictionApiKeyRegistrationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPredictionApiKeyRegistrationsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -981,8 +844,9 @@ public com.google.protobuf.Parser getP } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequestOrBuilder.java index b64fcee0..0fe98980 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequestOrBuilder.java @@ -1,95 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ListPredictionApiKeyRegistrationsRequestOrBuilder - extends +public interface ListPredictionApiKeyRegistrationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required. The parent placement resource name such as
          * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
          * Required. The parent placement resource name such as
          * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
          * Optional. Maximum number of results to return per page. If unset, the
          * service will choose a reasonable default.
          * 
      * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
          * Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`.
          * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
          * Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`.
          * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponse.java similarity index 53% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponse.java index 3dd6dee1..89df2137 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponse.java @@ -1,45 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Response message for the `ListPredictionApiKeyRegistrations`.
        * 
      * - * Protobuf type {@code - * google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse} + * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse} */ -public final class ListPredictionApiKeyRegistrationsResponse - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListPredictionApiKeyRegistrationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) ListPredictionApiKeyRegistrationsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPredictionApiKeyRegistrationsResponse.newBuilder() to construct. - private ListPredictionApiKeyRegistrationsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListPredictionApiKeyRegistrationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPredictionApiKeyRegistrationsResponse() { predictionApiKeyRegistrations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -47,15 +26,16 @@ private ListPredictionApiKeyRegistrationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPredictionApiKeyRegistrationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListPredictionApiKeyRegistrationsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,36 +55,28 @@ private ListPredictionApiKeyRegistrationsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - predictionApiKeyRegistrations_ = - new java.util.ArrayList< - com.google.cloud.recommendationengine.v1beta1 - .PredictionApiKeyRegistration>(); - mutable_bitField0_ |= 0x00000001; - } - predictionApiKeyRegistrations_.add( - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - .parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + predictionApiKeyRegistrations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + predictionApiKeyRegistrations_.add( + input.readMessage(com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,131 +84,98 @@ private ListPredictionApiKeyRegistrationsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - predictionApiKeyRegistrations_ = - java.util.Collections.unmodifiableList(predictionApiKeyRegistrations_); + predictionApiKeyRegistrations_ = java.util.Collections.unmodifiableList(predictionApiKeyRegistrations_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse - .class, - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse - .Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse.class, com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse.Builder.class); } public static final int PREDICTION_API_KEY_REGISTRATIONS_FIELD_NUMBER = 1; - private java.util.List - predictionApiKeyRegistrations_; + private java.util.List predictionApiKeyRegistrations_; /** - * - * *
          * The list of registered API keys.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ @java.lang.Override - public java.util.List - getPredictionApiKeyRegistrationsList() { + public java.util.List getPredictionApiKeyRegistrationsList() { return predictionApiKeyRegistrations_; } /** - * - * *
          * The list of registered API keys.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> + public java.util.List getPredictionApiKeyRegistrationsOrBuilderList() { return predictionApiKeyRegistrations_; } /** - * - * *
          * The list of registered API keys.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ @java.lang.Override public int getPredictionApiKeyRegistrationsCount() { return predictionApiKeyRegistrations_.size(); } /** - * - * *
          * The list of registered API keys.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - getPredictionApiKeyRegistrations(int index) { + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration getPredictionApiKeyRegistrations(int index) { return predictionApiKeyRegistrations_.get(index); } /** - * - * *
          * The list of registered API keys.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder - getPredictionApiKeyRegistrationsOrBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder getPredictionApiKeyRegistrationsOrBuilder( + int index) { return predictionApiKeyRegistrations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
          * If empty, the list is complete. If nonempty, pass the token to the next
          * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
          * 
      * * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -245,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
          * If empty, the list is complete. If nonempty, pass the token to the next
          * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
          * 
      * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -277,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < predictionApiKeyRegistrations_.size(); i++) { output.writeMessage(1, predictionApiKeyRegistrations_.get(i)); } @@ -306,9 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < predictionApiKeyRegistrations_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, predictionApiKeyRegistrations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, predictionApiKeyRegistrations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -321,20 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse)) { + if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse other = - (com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) - obj; + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse other = (com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) obj; if (!getPredictionApiKeyRegistrationsList() .equals(other.getPredictionApiKeyRegistrationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -357,170 +292,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse - prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Response message for the `ListPredictionApiKeyRegistrations`.
          * 
      * - * Protobuf type {@code - * google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse} + * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) - com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor; + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse.class, - com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse.class, com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getPredictionApiKeyRegistrationsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -536,23 +437,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse - build() { - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse - result = buildPartial(); + public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse build() { + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -560,17 +457,12 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse - buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse - result = - new com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse(this); + public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse buildPartial() { + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse result = new com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse(this); int from_bitField0_ = bitField0_; if (predictionApiKeyRegistrationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - predictionApiKeyRegistrations_ = - java.util.Collections.unmodifiableList(predictionApiKeyRegistrations_); + predictionApiKeyRegistrations_ = java.util.Collections.unmodifiableList(predictionApiKeyRegistrations_); bitField0_ = (bitField0_ & ~0x00000001); } result.predictionApiKeyRegistrations_ = predictionApiKeyRegistrations_; @@ -586,56 +478,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse) - other); + if (other instanceof com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) { + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse - other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse other) { + if (other == com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse.getDefaultInstance()) return this; if (predictionApiKeyRegistrationsBuilder_ == null) { if (!other.predictionApiKeyRegistrations_.isEmpty()) { if (predictionApiKeyRegistrations_.isEmpty()) { @@ -654,13 +536,11 @@ public Builder mergeFrom( predictionApiKeyRegistrationsBuilder_ = null; predictionApiKeyRegistrations_ = other.predictionApiKeyRegistrations_; bitField0_ = (bitField0_ & ~0x00000001); - predictionApiKeyRegistrationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPredictionApiKeyRegistrationsFieldBuilder() - : null; + predictionApiKeyRegistrationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPredictionApiKeyRegistrationsFieldBuilder() : null; } else { - predictionApiKeyRegistrationsBuilder_.addAllMessages( - other.predictionApiKeyRegistrations_); + predictionApiKeyRegistrationsBuilder_.addAllMessages(other.predictionApiKeyRegistrations_); } } } @@ -683,15 +563,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse - parsedMessage = null; + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -700,43 +576,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List< - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration> - predictionApiKeyRegistrations_ = java.util.Collections.emptyList(); - + private java.util.List predictionApiKeyRegistrations_ = + java.util.Collections.emptyList(); private void ensurePredictionApiKeyRegistrationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - predictionApiKeyRegistrations_ = - new java.util.ArrayList< - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration>( - predictionApiKeyRegistrations_); + predictionApiKeyRegistrations_ = new java.util.ArrayList(predictionApiKeyRegistrations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> - predictionApiKeyRegistrationsBuilder_; + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> predictionApiKeyRegistrationsBuilder_; /** - * - * *
            * The list of registered API keys.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ - public java.util.List< - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration> - getPredictionApiKeyRegistrationsList() { + public java.util.List getPredictionApiKeyRegistrationsList() { if (predictionApiKeyRegistrationsBuilder_ == null) { return java.util.Collections.unmodifiableList(predictionApiKeyRegistrations_); } else { @@ -744,15 +605,11 @@ private void ensurePredictionApiKeyRegistrationsIsMutable() { } } /** - * - * *
            * The list of registered API keys.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ public int getPredictionApiKeyRegistrationsCount() { if (predictionApiKeyRegistrationsBuilder_ == null) { @@ -762,18 +619,13 @@ public int getPredictionApiKeyRegistrationsCount() { } } /** - * - * *
            * The list of registered API keys.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - getPredictionApiKeyRegistrations(int index) { + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration getPredictionApiKeyRegistrations(int index) { if (predictionApiKeyRegistrationsBuilder_ == null) { return predictionApiKeyRegistrations_.get(index); } else { @@ -781,19 +633,14 @@ public int getPredictionApiKeyRegistrationsCount() { } } /** - * - * *
            * The list of registered API keys.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ public Builder setPredictionApiKeyRegistrations( - int index, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration value) { + int index, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration value) { if (predictionApiKeyRegistrationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -807,20 +654,14 @@ public Builder setPredictionApiKeyRegistrations( return this; } /** - * - * *
            * The list of registered API keys.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ public Builder setPredictionApiKeyRegistrations( - int index, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder - builderForValue) { + int index, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder builderForValue) { if (predictionApiKeyRegistrationsBuilder_ == null) { ensurePredictionApiKeyRegistrationsIsMutable(); predictionApiKeyRegistrations_.set(index, builderForValue.build()); @@ -831,18 +672,13 @@ public Builder setPredictionApiKeyRegistrations( return this; } /** - * - * *
            * The list of registered API keys.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ - public Builder addPredictionApiKeyRegistrations( - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration value) { + public Builder addPredictionApiKeyRegistrations(com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration value) { if (predictionApiKeyRegistrationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -856,19 +692,14 @@ public Builder addPredictionApiKeyRegistrations( return this; } /** - * - * *
            * The list of registered API keys.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ public Builder addPredictionApiKeyRegistrations( - int index, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration value) { + int index, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration value) { if (predictionApiKeyRegistrationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -882,19 +713,14 @@ public Builder addPredictionApiKeyRegistrations( return this; } /** - * - * *
            * The list of registered API keys.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ public Builder addPredictionApiKeyRegistrations( - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder - builderForValue) { + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder builderForValue) { if (predictionApiKeyRegistrationsBuilder_ == null) { ensurePredictionApiKeyRegistrationsIsMutable(); predictionApiKeyRegistrations_.add(builderForValue.build()); @@ -905,20 +731,14 @@ public Builder addPredictionApiKeyRegistrations( return this; } /** - * - * *
            * The list of registered API keys.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ public Builder addPredictionApiKeyRegistrations( - int index, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder - builderForValue) { + int index, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder builderForValue) { if (predictionApiKeyRegistrationsBuilder_ == null) { ensurePredictionApiKeyRegistrationsIsMutable(); predictionApiKeyRegistrations_.add(index, builderForValue.build()); @@ -929,21 +749,14 @@ public Builder addPredictionApiKeyRegistrations( return this; } /** - * - * *
            * The list of registered API keys.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ public Builder addAllPredictionApiKeyRegistrations( - java.lang.Iterable< - ? extends - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration> - values) { + java.lang.Iterable values) { if (predictionApiKeyRegistrationsBuilder_ == null) { ensurePredictionApiKeyRegistrationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -955,15 +768,11 @@ public Builder addAllPredictionApiKeyRegistrations( return this; } /** - * - * *
            * The list of registered API keys.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ public Builder clearPredictionApiKeyRegistrations() { if (predictionApiKeyRegistrationsBuilder_ == null) { @@ -976,15 +785,11 @@ public Builder clearPredictionApiKeyRegistrations() { return this; } /** - * - * *
            * The list of registered API keys.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ public Builder removePredictionApiKeyRegistrations(int index) { if (predictionApiKeyRegistrationsBuilder_ == null) { @@ -997,54 +802,39 @@ public Builder removePredictionApiKeyRegistrations(int index) { return this; } /** - * - * *
            * The list of registered API keys.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder - getPredictionApiKeyRegistrationsBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder getPredictionApiKeyRegistrationsBuilder( + int index) { return getPredictionApiKeyRegistrationsFieldBuilder().getBuilder(index); } /** - * - * *
            * The list of registered API keys.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder - getPredictionApiKeyRegistrationsOrBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder getPredictionApiKeyRegistrationsOrBuilder( + int index) { if (predictionApiKeyRegistrationsBuilder_ == null) { - return predictionApiKeyRegistrations_.get(index); - } else { + return predictionApiKeyRegistrations_.get(index); } else { return predictionApiKeyRegistrationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
            * The list of registered API keys.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ - public java.util.List< - ? extends - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> - getPredictionApiKeyRegistrationsOrBuilderList() { + public java.util.List + getPredictionApiKeyRegistrationsOrBuilderList() { if (predictionApiKeyRegistrationsBuilder_ != null) { return predictionApiKeyRegistrationsBuilder_.getMessageOrBuilderList(); } else { @@ -1052,71 +842,45 @@ public Builder removePredictionApiKeyRegistrations(int index) { } } /** - * - * *
            * The list of registered API keys.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder - addPredictionApiKeyRegistrationsBuilder() { - return getPredictionApiKeyRegistrationsFieldBuilder() - .addBuilder( - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - .getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder addPredictionApiKeyRegistrationsBuilder() { + return getPredictionApiKeyRegistrationsFieldBuilder().addBuilder( + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.getDefaultInstance()); } /** - * - * *
            * The list of registered API keys.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder - addPredictionApiKeyRegistrationsBuilder(int index) { - return getPredictionApiKeyRegistrationsFieldBuilder() - .addBuilder( - index, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - .getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder addPredictionApiKeyRegistrationsBuilder( + int index) { + return getPredictionApiKeyRegistrationsFieldBuilder().addBuilder( + index, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.getDefaultInstance()); } /** - * - * *
            * The list of registered API keys.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; */ - public java.util.List< - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder> - getPredictionApiKeyRegistrationsBuilderList() { + public java.util.List + getPredictionApiKeyRegistrationsBuilderList() { return getPredictionApiKeyRegistrationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> getPredictionApiKeyRegistrationsFieldBuilder() { if (predictionApiKeyRegistrationsBuilder_ == null) { - predictionApiKeyRegistrationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, - com.google.cloud.recommendationengine.v1beta1 - .PredictionApiKeyRegistrationOrBuilder>( + predictionApiKeyRegistrationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder>( predictionApiKeyRegistrations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1128,21 +892,19 @@ public Builder removePredictionApiKeyRegistrations(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
            * If empty, the list is complete. If nonempty, pass the token to the next
            * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
            * 
      * * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1151,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
            * If empty, the list is complete. If nonempty, pass the token to the next
            * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
            * 
      * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1174,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
            * If empty, the list is complete. If nonempty, pass the token to the next
            * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
            * 
      * * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
            * If empty, the list is complete. If nonempty, pass the token to the next
            * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
            * 
      * * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
            * If empty, the list is complete. If nonempty, pass the token to the next
            * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
            * 
      * * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1248,37 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) - private static final com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse(); + DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse(); } - public static com.google.cloud.recommendationengine.v1beta1 - .ListPredictionApiKeyRegistrationsResponse - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPredictionApiKeyRegistrationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPredictionApiKeyRegistrationsResponse(input, extensionRegistry); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPredictionApiKeyRegistrationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPredictionApiKeyRegistrationsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1290,8 +1037,9 @@ public com.google.protobuf.Parser get } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponseOrBuilder.java new file mode 100644 index 00000000..8f22a5b7 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponseOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public interface ListPredictionApiKeyRegistrationsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * The list of registered API keys.
      +   * 
      + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + */ + java.util.List + getPredictionApiKeyRegistrationsList(); + /** + *
      +   * The list of registered API keys.
      +   * 
      + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + */ + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration getPredictionApiKeyRegistrations(int index); + /** + *
      +   * The list of registered API keys.
      +   * 
      + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + */ + int getPredictionApiKeyRegistrationsCount(); + /** + *
      +   * The list of registered API keys.
      +   * 
      + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + */ + java.util.List + getPredictionApiKeyRegistrationsOrBuilderList(); + /** + *
      +   * The list of registered API keys.
      +   * 
      + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + */ + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder getPredictionApiKeyRegistrationsOrBuilder( + int index); + + /** + *
      +   * If empty, the list is complete. If nonempty, pass the token to the next
      +   * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
      +   * 
      + * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
      +   * If empty, the list is complete. If nonempty, pass the token to the next
      +   * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
      +   * 
      + * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequest.java similarity index 75% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequest.java index 2b8feb96..573c34be 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Request message for ListUserEvents method.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListUserEventsRequest} */ -public final class ListUserEventsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListUserEventsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) ListUserEventsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListUserEventsRequest.newBuilder() to construct. private ListUserEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListUserEventsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,15 +27,16 @@ private ListUserEventsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListUserEventsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListUserEventsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListUserEventsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,42 +92,35 @@ private ListUserEventsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.class, - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.class, com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
          * Required. The parent eventStore resource name, such as
          * `projects/*/locations/*/catalogs/default_catalog/eventStores/default_event_store`.
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -156,32 +129,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
          * Required. The parent eventStore resource name, such as
          * `projects/*/locations/*/catalogs/default_catalog/eventStores/default_event_store`.
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -192,15 +163,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
          * Optional. Maximum number of results to return per page. If zero, the
          * service will choose a reasonable default.
          * 
      * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -211,14 +179,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
          * Optional. The previous ListUserEventsResponse.next_page_token.
          * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -227,29 +192,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
          * Optional. The previous ListUserEventsResponse.next_page_token.
          * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -260,8 +225,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
          * Optional. Filtering expression to specify restrictions over
          * returned events. This is a sequence of terms, where each term applies some
      @@ -292,7 +255,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
          * 
      * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -301,15 +263,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
          * Optional. Filtering expression to specify restrictions over
          * returned events. This is a sequence of terms, where each term applies some
      @@ -340,15 +301,16 @@ public java.lang.String getFilter() {
          * 
      * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -357,7 +319,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -369,7 +330,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -395,7 +357,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -411,18 +374,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest other = - (com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest other = (com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -448,145 +414,134 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Request message for ListUserEvents method.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListUserEventsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.class, - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.class, com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -602,16 +557,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.getDefaultInstance(); } @java.lang.Override @@ -625,8 +578,7 @@ public com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest build @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest result = - new com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest(this); + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest result = new com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -639,51 +591,46 @@ public com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest other) { + if (other == com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -718,9 +665,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -732,23 +677,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
            * Required. The parent eventStore resource name, such as
            * `projects/*/locations/*/catalogs/default_catalog/eventStores/default_event_store`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -757,24 +698,21 @@ public java.lang.String getParent() { } } /** - * - * *
            * Required. The parent eventStore resource name, such as
            * `projects/*/locations/*/catalogs/default_catalog/eventStores/default_event_store`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -782,86 +720,70 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
            * Required. The parent eventStore resource name, such as
            * `projects/*/locations/*/catalogs/default_catalog/eventStores/default_event_store`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
            * Required. The parent eventStore resource name, such as
            * `projects/*/locations/*/catalogs/default_catalog/eventStores/default_event_store`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
            * Required. The parent eventStore resource name, such as
            * `projects/*/locations/*/catalogs/default_catalog/eventStores/default_event_store`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
            * Optional. Maximum number of results to return per page. If zero, the
            * service will choose a reasonable default.
            * 
      * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -869,38 +791,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
            * Optional. Maximum number of results to return per page. If zero, the
            * service will choose a reasonable default.
            * 
      * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Maximum number of results to return per page. If zero, the
            * service will choose a reasonable default.
            * 
      * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -908,20 +824,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
            * Optional. The previous ListUserEventsResponse.next_page_token.
            * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -930,21 +844,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
            * Optional. The previous ListUserEventsResponse.next_page_token.
            * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -952,61 +865,54 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
            * Optional. The previous ListUserEventsResponse.next_page_token.
            * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
            * Optional. The previous ListUserEventsResponse.next_page_token.
            * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
            * Optional. The previous ListUserEventsResponse.next_page_token.
            * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1014,8 +920,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
            * Optional. Filtering expression to specify restrictions over
            * returned events. This is a sequence of terms, where each term applies some
      @@ -1046,13 +950,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
            * 
      * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1061,8 +965,6 @@ public java.lang.String getFilter() { } } /** - * - * *
            * Optional. Filtering expression to specify restrictions over
            * returned events. This is a sequence of terms, where each term applies some
      @@ -1093,14 +995,15 @@ public java.lang.String getFilter() {
            * 
      * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1108,8 +1011,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
            * Optional. Filtering expression to specify restrictions over
            * returned events. This is a sequence of terms, where each term applies some
      @@ -1140,22 +1041,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
            * 
      * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Filtering expression to specify restrictions over
            * returned events. This is a sequence of terms, where each term applies some
      @@ -1186,18 +1085,15 @@ public Builder setFilter(java.lang.String value) {
            * 
      * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
            * Optional. Filtering expression to specify restrictions over
            * returned events. This is a sequence of terms, where each term applies some
      @@ -1228,23 +1124,23 @@ public Builder clearFilter() {
            * 
      * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1254,32 +1150,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) - private static final com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUserEventsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListUserEventsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUserEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListUserEventsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1291,8 +1185,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequestOrBuilder.java similarity index 81% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequestOrBuilder.java index 95f07d9a..cbe0e379 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequestOrBuilder.java @@ -1,101 +1,66 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ListUserEventsRequestOrBuilder - extends +public interface ListUserEventsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required. The parent eventStore resource name, such as
          * `projects/*/locations/*/catalogs/default_catalog/eventStores/default_event_store`.
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
          * Required. The parent eventStore resource name, such as
          * `projects/*/locations/*/catalogs/default_catalog/eventStores/default_event_store`.
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
          * Optional. Maximum number of results to return per page. If zero, the
          * service will choose a reasonable default.
          * 
      * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
          * Optional. The previous ListUserEventsResponse.next_page_token.
          * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
          * Optional. The previous ListUserEventsResponse.next_page_token.
          * 
      * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
          * Optional. Filtering expression to specify restrictions over
          * returned events. This is a sequence of terms, where each term applies some
      @@ -126,13 +91,10 @@ public interface ListUserEventsRequestOrBuilder
          * 
      * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
          * Optional. Filtering expression to specify restrictions over
          * returned events. This is a sequence of terms, where each term applies some
      @@ -163,8 +125,8 @@ public interface ListUserEventsRequestOrBuilder
          * 
      * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponse.java similarity index 71% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponse.java index d8628809..2243a09e 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Response message for ListUserEvents method.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListUserEventsResponse} */ -public final class ListUserEventsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListUserEventsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) ListUserEventsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListUserEventsResponse.newBuilder() to construct. private ListUserEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListUserEventsResponse() { userEvents_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListUserEventsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListUserEventsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListUserEventsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,28 @@ private ListUserEventsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - userEvents_ = - new java.util.ArrayList< - com.google.cloud.recommendationengine.v1beta1.UserEvent>(); - mutable_bitField0_ |= 0x00000001; - } - userEvents_.add( - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.UserEvent.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + userEvents_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + userEvents_.add( + input.readMessage(com.google.cloud.recommendationengine.v1beta1.UserEvent.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,7 +84,8 @@ private ListUserEventsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { userEvents_ = java.util.Collections.unmodifiableList(userEvents_); @@ -116,27 +94,22 @@ private ListUserEventsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.class, - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.class, com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.Builder.class); } public static final int USER_EVENTS_FIELD_NUMBER = 1; private java.util.List userEvents_; /** - * - * *
          * The user events.
          * 
      @@ -144,13 +117,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ @java.lang.Override - public java.util.List - getUserEventsList() { + public java.util.List getUserEventsList() { return userEvents_; } /** - * - * *
          * The user events.
          * 
      @@ -158,13 +128,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ @java.lang.Override - public java.util.List + public java.util.List getUserEventsOrBuilderList() { return userEvents_; } /** - * - * *
          * The user events.
          * 
      @@ -176,8 +144,6 @@ public int getUserEventsCount() { return userEvents_.size(); } /** - * - * *
          * The user events.
          * 
      @@ -189,8 +155,6 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvents(int return userEvents_.get(index); } /** - * - * *
          * The user events.
          * 
      @@ -206,15 +170,12 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserE public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
          * If empty, the list is complete. If nonempty, the token to pass to the next
          * request's ListUserEvents.page_token.
          * 
      * * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -223,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
          * If empty, the list is complete. If nonempty, the token to pass to the next
          * request's ListUserEvents.page_token.
          * 
      * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -255,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < userEvents_.size(); i++) { output.writeMessage(1, userEvents_.get(i)); } @@ -284,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < userEvents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, userEvents_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, userEvents_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -297,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse other = - (com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) obj; + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse other = (com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) obj; - if (!getUserEventsList().equals(other.getUserEventsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUserEventsList() + .equals(other.getUserEventsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -330,147 +293,135 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Response message for ListUserEvents method.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListUserEventsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.class, - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.class, com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getUserEventsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -486,16 +437,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.getDefaultInstance(); } @java.lang.Override @@ -509,8 +458,7 @@ public com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse buil @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse result = - new com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse(this); + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse result = new com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse(this); int from_bitField0_ = bitField0_; if (userEventsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -530,51 +478,46 @@ public com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse other) { + if (other == com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.getDefaultInstance()) return this; if (userEventsBuilder_ == null) { if (!other.userEvents_.isEmpty()) { if (userEvents_.isEmpty()) { @@ -593,10 +536,9 @@ public Builder mergeFrom( userEventsBuilder_ = null; userEvents_ = other.userEvents_; bitField0_ = (bitField0_ & ~0x00000001); - userEventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getUserEventsFieldBuilder() - : null; + userEventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getUserEventsFieldBuilder() : null; } else { userEventsBuilder_.addAllMessages(other.userEvents_); } @@ -625,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -636,38 +576,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List userEvents_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureUserEventsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - userEvents_ = - new java.util.ArrayList( - userEvents_); + userEvents_ = new java.util.ArrayList(userEvents_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, - com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> - userEventsBuilder_; + com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> userEventsBuilder_; /** - * - * *
            * The user events.
            * 
      * * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ - public java.util.List - getUserEventsList() { + public java.util.List getUserEventsList() { if (userEventsBuilder_ == null) { return java.util.Collections.unmodifiableList(userEvents_); } else { @@ -675,8 +605,6 @@ private void ensureUserEventsIsMutable() { } } /** - * - * *
            * The user events.
            * 
      @@ -691,8 +619,6 @@ public int getUserEventsCount() { } } /** - * - * *
            * The user events.
            * 
      @@ -707,8 +633,6 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvents(int } } /** - * - * *
            * The user events.
            * 
      @@ -730,8 +654,6 @@ public Builder setUserEvents( return this; } /** - * - * *
            * The user events.
            * 
      @@ -739,8 +661,7 @@ public Builder setUserEvents( * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ public Builder setUserEvents( - int index, - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { + int index, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { if (userEventsBuilder_ == null) { ensureUserEventsIsMutable(); userEvents_.set(index, builderForValue.build()); @@ -751,8 +672,6 @@ public Builder setUserEvents( return this; } /** - * - * *
            * The user events.
            * 
      @@ -773,8 +692,6 @@ public Builder addUserEvents(com.google.cloud.recommendationengine.v1beta1.UserE return this; } /** - * - * *
            * The user events.
            * 
      @@ -796,8 +713,6 @@ public Builder addUserEvents( return this; } /** - * - * *
            * The user events.
            * 
      @@ -816,8 +731,6 @@ public Builder addUserEvents( return this; } /** - * - * *
            * The user events.
            * 
      @@ -825,8 +738,7 @@ public Builder addUserEvents( * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ public Builder addUserEvents( - int index, - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { + int index, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { if (userEventsBuilder_ == null) { ensureUserEventsIsMutable(); userEvents_.add(index, builderForValue.build()); @@ -837,8 +749,6 @@ public Builder addUserEvents( return this; } /** - * - * *
            * The user events.
            * 
      @@ -846,11 +756,11 @@ public Builder addUserEvents( * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ public Builder addAllUserEvents( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (userEventsBuilder_ == null) { ensureUserEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userEvents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, userEvents_); onChanged(); } else { userEventsBuilder_.addAllMessages(values); @@ -858,8 +768,6 @@ public Builder addAllUserEvents( return this; } /** - * - * *
            * The user events.
            * 
      @@ -877,8 +785,6 @@ public Builder clearUserEvents() { return this; } /** - * - * *
            * The user events.
            * 
      @@ -896,8 +802,6 @@ public Builder removeUserEvents(int index) { return this; } /** - * - * *
            * The user events.
            * 
      @@ -909,8 +813,6 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder getUserEv return getUserEventsFieldBuilder().getBuilder(index); } /** - * - * *
            * The user events.
            * 
      @@ -920,23 +822,19 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder getUserEv public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventsOrBuilder( int index) { if (userEventsBuilder_ == null) { - return userEvents_.get(index); - } else { + return userEvents_.get(index); } else { return userEventsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
            * The user events.
            * 
      * * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ - public java.util.List< - ? extends com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> - getUserEventsOrBuilderList() { + public java.util.List + getUserEventsOrBuilderList() { if (userEventsBuilder_ != null) { return userEventsBuilder_.getMessageOrBuilderList(); } else { @@ -944,8 +842,6 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserE } } /** - * - * *
            * The user events.
            * 
      @@ -953,12 +849,10 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserE * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder addUserEventsBuilder() { - return getUserEventsFieldBuilder() - .addBuilder(com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); + return getUserEventsFieldBuilder().addBuilder( + com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); } /** - * - * *
            * The user events.
            * 
      @@ -967,36 +861,30 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder addUserEv */ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder addUserEventsBuilder( int index) { - return getUserEventsFieldBuilder() - .addBuilder( - index, com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); + return getUserEventsFieldBuilder().addBuilder( + index, com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); } /** - * - * *
            * The user events.
            * 
      * * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ - public java.util.List - getUserEventsBuilderList() { + public java.util.List + getUserEventsBuilderList() { return getUserEventsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, - com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> + com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> getUserEventsFieldBuilder() { if (userEventsBuilder_ == null) { - userEventsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, - com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder>( - userEvents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + userEventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder>( + userEvents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); userEvents_ = null; } return userEventsBuilder_; @@ -1004,21 +892,19 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder addUserEv private java.lang.Object nextPageToken_ = ""; /** - * - * *
            * If empty, the list is complete. If nonempty, the token to pass to the next
            * request's ListUserEvents.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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1027,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
            * If empty, the list is complete. If nonempty, the token to pass to the next
            * request's ListUserEvents.page_token.
            * 
      * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1050,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
            * If empty, the list is complete. If nonempty, the token to pass to the next
            * request's ListUserEvents.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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
            * If empty, the list is complete. If nonempty, the token to pass to the next
            * request's ListUserEvents.page_token.
            * 
      * * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
            * If empty, the list is complete. If nonempty, the token to pass to the next
            * request's ListUserEvents.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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1124,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) - private static final com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse(); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUserEventsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListUserEventsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUserEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListUserEventsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1161,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponseOrBuilder.java index 2b2cd934..0006ab1f 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ListUserEventsResponseOrBuilder - extends +public interface ListUserEventsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * The user events.
          * 
      * * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ - java.util.List getUserEventsList(); + java.util.List + getUserEventsList(); /** - * - * *
          * The user events.
          * 
      @@ -44,8 +25,6 @@ public interface ListUserEventsResponseOrBuilder */ com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvents(int index); /** - * - * *
          * The user events.
          * 
      @@ -54,19 +33,15 @@ public interface ListUserEventsResponseOrBuilder */ int getUserEventsCount(); /** - * - * *
          * The user events.
          * 
      * * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ - java.util.List + java.util.List getUserEventsOrBuilderList(); /** - * - * *
          * The user events.
          * 
      @@ -77,29 +52,24 @@ com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventsOr int index); /** - * - * *
          * If empty, the list is complete. If nonempty, the token to pass to the next
          * request's ListUserEvents.page_token.
          * 
      * * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
          * If empty, the list is complete. If nonempty, the token to pass to the next
          * request's ListUserEvents.page_token.
          * 
      * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PlacementName.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PlacementName.java similarity index 100% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PlacementName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PlacementName.java diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequest.java similarity index 73% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequest.java index a0ab9ffe..8bd9747a 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/prediction_service.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Request message for Predict method.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PredictRequest} */ -public final class PredictRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PredictRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.PredictRequest) PredictRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PredictRequest.newBuilder() to construct. private PredictRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PredictRequest() { name_ = ""; pageToken_ = ""; @@ -45,15 +27,16 @@ private PredictRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PredictRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PredictRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,87 +56,80 @@ private PredictRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder subBuilder = null; + if (userEvent_ != null) { + subBuilder = userEvent_.toBuilder(); } - case 18: - { - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder subBuilder = null; - if (userEvent_ != null) { - subBuilder = userEvent_.toBuilder(); - } - userEvent_ = - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.UserEvent.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(userEvent_); - userEvent_ = subBuilder.buildPartial(); - } - - break; + userEvent_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.UserEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(userEvent_); + userEvent_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 32: - { - dryRun_ = input.readBool(); - break; - } - case 50: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - params_ = - com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry params__ = - input.readMessage( - ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - params_.getMutableMap().put(params__.getKey(), params__.getValue()); - break; - } - case 56: - { - pageSize_ = input.readInt32(); - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 32: { - pageToken_ = s; - break; + dryRun_ = input.readBool(); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 74: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + com.google.protobuf.MapEntry + params__ = input.readMessage( + ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + params_.getMutableMap().put( + params__.getKey(), params__.getValue()); + break; + } + case 56: { + + pageSize_ = input.readInt32(); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -161,46 +137,43 @@ private PredictRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetParams(); case 9: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PredictRequest.class, - com.google.cloud.recommendationengine.v1beta1.PredictRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.PredictRequest.class, com.google.cloud.recommendationengine.v1beta1.PredictRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
          * Required. Full resource name of the format:
          * `{name=projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/placements/*}`
      @@ -227,10 +200,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
          * https://console.cloud.google.com/recommendation/datafeeds/default_catalog/dashboard
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -239,15 +209,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
          * Required. Full resource name of the format:
          * `{name=projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/placements/*}`
      @@ -274,18 +243,17 @@ public java.lang.String getName() {
          * https://console.cloud.google.com/recommendation/datafeeds/default_catalog/dashboard
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -296,8 +264,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int USER_EVENT_FIELD_NUMBER = 2; private com.google.cloud.recommendationengine.v1beta1.UserEvent userEvent_; /** - * - * *
          * Required. Context about the user, what they are looking at and what action
          * they took to trigger the predict request. Note that this user event detail
      @@ -305,10 +271,7 @@ public com.google.protobuf.ByteString getNameBytes() {
          * request is required for event logging.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the userEvent field is set. */ @java.lang.Override @@ -316,8 +279,6 @@ public boolean hasUserEvent() { return userEvent_ != null; } /** - * - * *
          * Required. Context about the user, what they are looking at and what action
          * they took to trigger the predict request. Note that this user event detail
      @@ -325,21 +286,14 @@ public boolean hasUserEvent() {
          * request is required for event logging.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The userEvent. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvent() { - return userEvent_ == null - ? com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() - : userEvent_; + return userEvent_ == null ? com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() : userEvent_; } /** - * - * *
          * Required. Context about the user, what they are looking at and what action
          * they took to trigger the predict request. Note that this user event detail
      @@ -347,9 +301,7 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvent() {
          * request is required for event logging.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventOrBuilder() { @@ -359,8 +311,6 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserE public static final int PAGE_SIZE_FIELD_NUMBER = 7; private int pageSize_; /** - * - * *
          * Optional. Maximum number of results to return per page. Set this property
          * to the number of prediction results required. If zero, the service will
      @@ -368,7 +318,6 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserE
          * 
      * * int32 page_size = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -379,14 +328,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 8; private volatile java.lang.Object pageToken_; /** - * - * *
          * Optional. The previous PredictResponse.next_page_token.
          * 
      * * string page_token = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -395,29 +341,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
          * Optional. The previous PredictResponse.next_page_token.
          * 
      * * string page_token = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -428,8 +374,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** - * - * *
          * Optional. Filter for restricting prediction results. Accepts values for
          * tags and the `filterOutOfStockItems` flag.
      @@ -448,7 +392,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
          * 
      * * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -457,15 +400,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
          * Optional. Filter for restricting prediction results. Accepts values for
          * tags and the `filterOutOfStockItems` flag.
      @@ -484,15 +426,16 @@ public java.lang.String getFilter() {
          * 
      * * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -503,8 +446,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int DRY_RUN_FIELD_NUMBER = 4; private boolean dryRun_; /** - * - * *
          * Optional. Use dryRun mode for this prediction query. If set to true, a
          * dummy model will be used that returns arbitrary catalog items.
      @@ -513,7 +454,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
          * 
      * * bool dry_run = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The dryRun. */ @java.lang.Override @@ -522,26 +462,24 @@ public boolean getDryRun() { } public static final int PARAMS_FIELD_NUMBER = 6; - private static final class ParamsDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.Value> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); } - - private com.google.protobuf.MapField params_; - + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> params_; private com.google.protobuf.MapField - internalGetParams() { + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); } return params_; } @@ -550,8 +488,6 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** - * - * *
          * Optional. Additional domain specific parameters for the predictions.
          * Allowed values:
      @@ -566,26 +502,24 @@ public int getParamsCount() {
          *    and history.
          * 
      * - * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsParams(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsParams( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetParams().getMap().containsKey(key); } - /** Use {@link #getParamsMap()} instead. */ + /** + * Use {@link #getParamsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParams() { return getParamsMap(); } /** - * - * *
          * Optional. Additional domain specific parameters for the predictions.
          * Allowed values:
      @@ -600,17 +534,14 @@ public java.util.Map getParams() {
          *    and history.
          * 
      * - * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getParamsMap() { return internalGetParams().getMap(); } /** - * - * *
          * Optional. Additional domain specific parameters for the predictions.
          * Allowed values:
      @@ -625,22 +556,19 @@ public java.util.Map getParamsMap()
          *    and history.
          * 
      * - * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.protobuf.Value getParamsOrDefault( - java.lang.String key, com.google.protobuf.Value defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParams().getMap(); + java.lang.String key, + com.google.protobuf.Value defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParams().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
          * Optional. Additional domain specific parameters for the predictions.
          * Allowed values:
      @@ -655,16 +583,15 @@ public com.google.protobuf.Value getParamsOrDefault(
          *    and history.
          * 
      * - * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protobuf.Value getParamsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParams().getMap(); + + public com.google.protobuf.Value getParamsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParams().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -672,23 +599,24 @@ public com.google.protobuf.Value getParamsOrThrow(java.lang.String key) { } public static final int LABELS_FIELD_NUMBER = 9; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -697,8 +625,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
          * Optional. The labels for the predict request.
          *  * Label keys can contain lowercase letters, digits and hyphens, must start
      @@ -711,22 +637,22 @@ public int getLabelsCount() {
          *
          * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
          */
      +
         @java.lang.Override
      -  public boolean containsLabels(java.lang.String key) {
      -    if (key == null) {
      -      throw new NullPointerException("map key");
      -    }
      +  public boolean containsLabels(
      +      java.lang.String key) {
      +    if (key == null) { throw new NullPointerException("map key"); }
           return internalGetLabels().getMap().containsKey(key);
         }
      -  /** Use {@link #getLabelsMap()} instead. */
      +  /**
      +   * Use {@link #getLabelsMap()} instead.
      +   */
         @java.lang.Override
         @java.lang.Deprecated
         public java.util.Map getLabels() {
           return getLabelsMap();
         }
         /**
      -   *
      -   *
          * 
          * Optional. The labels for the predict request.
          *  * Label keys can contain lowercase letters, digits and hyphens, must start
      @@ -740,12 +666,11 @@ public java.util.Map getLabels() {
          * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
          */
         @java.lang.Override
      +
         public java.util.Map getLabelsMap() {
           return internalGetLabels().getMap();
         }
         /**
      -   *
      -   *
          * 
          * Optional. The labels for the predict request.
          *  * Label keys can contain lowercase letters, digits and hyphens, must start
      @@ -759,16 +684,16 @@ public java.util.Map getLabelsMap() {
          * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
          */
         @java.lang.Override
      -  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
      -    if (key == null) {
      -      throw new NullPointerException("map key");
      -    }
      -    java.util.Map map = internalGetLabels().getMap();
      +
      +  public java.lang.String getLabelsOrDefault(
      +      java.lang.String key,
      +      java.lang.String defaultValue) {
      +    if (key == null) { throw new NullPointerException("map key"); }
      +    java.util.Map map =
      +        internalGetLabels().getMap();
           return map.containsKey(key) ? map.get(key) : defaultValue;
         }
         /**
      -   *
      -   *
          * 
          * Optional. The labels for the predict request.
          *  * Label keys can contain lowercase letters, digits and hyphens, must start
      @@ -782,11 +707,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
          * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
          */
         @java.lang.Override
      -  public java.lang.String getLabelsOrThrow(java.lang.String key) {
      -    if (key == null) {
      -      throw new NullPointerException("map key");
      -    }
      -    java.util.Map map = internalGetLabels().getMap();
      +
      +  public java.lang.String getLabelsOrThrow(
      +      java.lang.String key) {
      +    if (key == null) { throw new NullPointerException("map key"); }
      +    java.util.Map map =
      +        internalGetLabels().getMap();
           if (!map.containsKey(key)) {
             throw new java.lang.IllegalArgumentException();
           }
      @@ -794,7 +720,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
         }
       
         private byte memoizedIsInitialized = -1;
      -
         @java.lang.Override
         public final boolean isInitialized() {
           byte isInitialized = memoizedIsInitialized;
      @@ -806,7 +731,8 @@ public final boolean isInitialized() {
         }
       
         @java.lang.Override
      -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      +  public void writeTo(com.google.protobuf.CodedOutputStream output)
      +                      throws java.io.IOException {
           if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
             com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
           }
      @@ -819,16 +745,24 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
           if (dryRun_ != false) {
             output.writeBool(4, dryRun_);
           }
      -    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
      -        output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 6);
      +    com.google.protobuf.GeneratedMessageV3
      +      .serializeStringMapTo(
      +        output,
      +        internalGetParams(),
      +        ParamsDefaultEntryHolder.defaultEntry,
      +        6);
           if (pageSize_ != 0) {
             output.writeInt32(7, pageSize_);
           }
           if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
             com.google.protobuf.GeneratedMessageV3.writeString(output, 8, pageToken_);
           }
      -    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
      -        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9);
      +    com.google.protobuf.GeneratedMessageV3
      +      .serializeStringMapTo(
      +        output,
      +        internalGetLabels(),
      +        LabelsDefaultEntryHolder.defaultEntry,
      +        9);
           unknownFields.writeTo(output);
         }
       
      @@ -842,39 +776,42 @@ public int getSerializedSize() {
             size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
           }
           if (userEvent_ != null) {
      -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUserEvent());
      +      size += com.google.protobuf.CodedOutputStream
      +        .computeMessageSize(2, getUserEvent());
           }
           if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
             size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_);
           }
           if (dryRun_ != false) {
      -      size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, dryRun_);
      -    }
      -    for (java.util.Map.Entry entry :
      -        internalGetParams().getMap().entrySet()) {
      -      com.google.protobuf.MapEntry params__ =
      -          ParamsDefaultEntryHolder.defaultEntry
      -              .newBuilderForType()
      -              .setKey(entry.getKey())
      -              .setValue(entry.getValue())
      -              .build();
      -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, params__);
      +      size += com.google.protobuf.CodedOutputStream
      +        .computeBoolSize(4, dryRun_);
      +    }
      +    for (java.util.Map.Entry entry
      +         : internalGetParams().getMap().entrySet()) {
      +      com.google.protobuf.MapEntry
      +      params__ = ParamsDefaultEntryHolder.defaultEntry.newBuilderForType()
      +          .setKey(entry.getKey())
      +          .setValue(entry.getValue())
      +          .build();
      +      size += com.google.protobuf.CodedOutputStream
      +          .computeMessageSize(6, params__);
           }
           if (pageSize_ != 0) {
      -      size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, pageSize_);
      +      size += com.google.protobuf.CodedOutputStream
      +        .computeInt32Size(7, pageSize_);
           }
           if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
             size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, pageToken_);
           }
      -    for (java.util.Map.Entry entry :
      -        internalGetLabels().getMap().entrySet()) {
      -      com.google.protobuf.MapEntry labels__ =
      -          LabelsDefaultEntryHolder.defaultEntry
      -              .newBuilderForType()
      -              .setKey(entry.getKey())
      -              .setValue(entry.getValue())
      -              .build();
      -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__);
      +    for (java.util.Map.Entry entry
      +         : internalGetLabels().getMap().entrySet()) {
      +      com.google.protobuf.MapEntry
      +      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
      +          .setKey(entry.getKey())
      +          .setValue(entry.getValue())
      +          .build();
      +      size += com.google.protobuf.CodedOutputStream
      +          .computeMessageSize(9, labels__);
           }
           size += unknownFields.getSerializedSize();
           memoizedSize = size;
      @@ -884,25 +821,32 @@ public int getSerializedSize() {
         @java.lang.Override
         public boolean equals(final java.lang.Object obj) {
           if (obj == this) {
      -      return true;
      +     return true;
           }
           if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.PredictRequest)) {
             return super.equals(obj);
           }
      -    com.google.cloud.recommendationengine.v1beta1.PredictRequest other =
      -        (com.google.cloud.recommendationengine.v1beta1.PredictRequest) obj;
      +    com.google.cloud.recommendationengine.v1beta1.PredictRequest other = (com.google.cloud.recommendationengine.v1beta1.PredictRequest) obj;
       
      -    if (!getName().equals(other.getName())) return false;
      +    if (!getName()
      +        .equals(other.getName())) return false;
           if (hasUserEvent() != other.hasUserEvent()) return false;
           if (hasUserEvent()) {
      -      if (!getUserEvent().equals(other.getUserEvent())) return false;
      -    }
      -    if (getPageSize() != other.getPageSize()) return false;
      -    if (!getPageToken().equals(other.getPageToken())) return false;
      -    if (!getFilter().equals(other.getFilter())) return false;
      -    if (getDryRun() != other.getDryRun()) return false;
      -    if (!internalGetParams().equals(other.internalGetParams())) return false;
      -    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
      +      if (!getUserEvent()
      +          .equals(other.getUserEvent())) return false;
      +    }
      +    if (getPageSize()
      +        != other.getPageSize()) return false;
      +    if (!getPageToken()
      +        .equals(other.getPageToken())) return false;
      +    if (!getFilter()
      +        .equals(other.getFilter())) return false;
      +    if (getDryRun()
      +        != other.getDryRun()) return false;
      +    if (!internalGetParams().equals(
      +        other.internalGetParams())) return false;
      +    if (!internalGetLabels().equals(
      +        other.internalGetLabels())) return false;
           if (!unknownFields.equals(other.unknownFields)) return false;
           return true;
         }
      @@ -927,7 +871,8 @@ public int hashCode() {
           hash = (37 * hash) + FILTER_FIELD_NUMBER;
           hash = (53 * hash) + getFilter().hashCode();
           hash = (37 * hash) + DRY_RUN_FIELD_NUMBER;
      -    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDryRun());
      +    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
      +        getDryRun());
           if (!internalGetParams().getMap().isEmpty()) {
             hash = (37 * hash) + PARAMS_FIELD_NUMBER;
             hash = (53 * hash) + internalGetParams().hashCode();
      @@ -942,151 +887,143 @@ public int hashCode() {
         }
       
         public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(
      -      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      +      java.nio.ByteBuffer data)
      +      throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(
      -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +      java.nio.ByteBuffer data,
      +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(
             com.google.protobuf.ByteString data)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(
             com.google.protobuf.ByteString data,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(byte[] data)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(
      -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +      byte[] data,
      +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
      -
      -  public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(
      -      java.io.InputStream input) throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      +  public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(java.io.InputStream input)
      +      throws java.io.IOException {
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseWithIOException(PARSER, input);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(
      -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +      java.io.InputStream input,
      +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
      -        PARSER, input, extensionRegistry);
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseWithIOException(PARSER, input, extensionRegistry);
         }
      -
      -  public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseDelimitedFrom(
      -      java.io.InputStream input) throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      +  public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseDelimitedFrom(java.io.InputStream input)
      +      throws java.io.IOException {
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseDelimitedWithIOException(PARSER, input);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseDelimitedFrom(
      -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +      java.io.InputStream input,
      +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
      -        PARSER, input, extensionRegistry);
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(
      -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      +      com.google.protobuf.CodedInputStream input)
      +      throws java.io.IOException {
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseWithIOException(PARSER, input);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
      -        PARSER, input, extensionRegistry);
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseWithIOException(PARSER, input, extensionRegistry);
         }
       
         @java.lang.Override
      -  public Builder newBuilderForType() {
      -    return newBuilder();
      -  }
      -
      +  public Builder newBuilderForType() { return newBuilder(); }
         public static Builder newBuilder() {
           return DEFAULT_INSTANCE.toBuilder();
         }
      -
      -  public static Builder newBuilder(
      -      com.google.cloud.recommendationengine.v1beta1.PredictRequest prototype) {
      +  public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.PredictRequest prototype) {
           return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
         }
      -
         @java.lang.Override
         public Builder toBuilder() {
      -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
      +    return this == DEFAULT_INSTANCE
      +        ? new Builder() : new Builder().mergeFrom(this);
         }
       
         @java.lang.Override
      -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +  protected Builder newBuilderForType(
      +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           Builder builder = new Builder(parent);
           return builder;
         }
         /**
      -   *
      -   *
          * 
          * Request message for Predict method.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PredictRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.PredictRequest) com.google.cloud.recommendationengine.v1beta1.PredictRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetParams(); case 9: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 6: return internalGetMutableParams(); case 9: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PredictRequest.class, - com.google.cloud.recommendationengine.v1beta1.PredictRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.PredictRequest.class, com.google.cloud.recommendationengine.v1beta1.PredictRequest.Builder.class); } // Construct using com.google.cloud.recommendationengine.v1beta1.PredictRequest.newBuilder() @@ -1094,15 +1031,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1128,14 +1066,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictRequest - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.PredictRequest getDefaultInstanceForType() { return com.google.cloud.recommendationengine.v1beta1.PredictRequest.getDefaultInstance(); } @@ -1150,8 +1087,7 @@ public com.google.cloud.recommendationengine.v1beta1.PredictRequest build() { @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.PredictRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.PredictRequest result = - new com.google.cloud.recommendationengine.v1beta1.PredictRequest(this); + com.google.cloud.recommendationengine.v1beta1.PredictRequest result = new com.google.cloud.recommendationengine.v1beta1.PredictRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (userEventBuilder_ == null) { @@ -1175,39 +1111,38 @@ public com.google.cloud.recommendationengine.v1beta1.PredictRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.PredictRequest) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PredictRequest) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PredictRequest)other); } else { super.mergeFrom(other); return this; @@ -1215,9 +1150,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PredictRequest other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.PredictRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.recommendationengine.v1beta1.PredictRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1239,8 +1172,10 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PredictRe if (other.getDryRun() != false) { setDryRun(other.getDryRun()); } - internalGetMutableParams().mergeFrom(other.internalGetParams()); - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableParams().mergeFrom( + other.internalGetParams()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1260,8 +1195,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.PredictRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.PredictRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1270,13 +1204,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
            * Required. Full resource name of the format:
            * `{name=projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/placements/*}`
      @@ -1303,16 +1234,14 @@ public Builder mergeFrom(
            * https://console.cloud.google.com/recommendation/datafeeds/default_catalog/dashboard
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1321,8 +1250,6 @@ public java.lang.String getName() { } } /** - * - * *
            * Required. Full resource name of the format:
            * `{name=projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/placements/*}`
      @@ -1349,17 +1276,16 @@ public java.lang.String getName() {
            * https://console.cloud.google.com/recommendation/datafeeds/default_catalog/dashboard
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1367,8 +1293,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
            * Required. Full resource name of the format:
            * `{name=projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/placements/*}`
      @@ -1395,25 +1319,21 @@ public com.google.protobuf.ByteString getNameBytes() {
            * https://console.cloud.google.com/recommendation/datafeeds/default_catalog/dashboard
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
            * Required. Full resource name of the format:
            * `{name=projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/placements/*}`
      @@ -1440,21 +1360,16 @@ public Builder setName(java.lang.String value) {
            * https://console.cloud.google.com/recommendation/datafeeds/default_catalog/dashboard
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
            * Required. Full resource name of the format:
            * `{name=projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/placements/*}`
      @@ -1481,19 +1396,17 @@ public Builder clearName() {
            * https://console.cloud.google.com/recommendation/datafeeds/default_catalog/dashboard
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1501,13 +1414,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.recommendationengine.v1beta1.UserEvent userEvent_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, - com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> - userEventBuilder_; + com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> userEventBuilder_; /** - * - * *
            * Required. Context about the user, what they are looking at and what action
            * they took to trigger the predict request. Note that this user event detail
      @@ -1515,18 +1423,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
            * request is required for event logging.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the userEvent field is set. */ public boolean hasUserEvent() { return userEventBuilder_ != null || userEvent_ != null; } /** - * - * *
            * Required. Context about the user, what they are looking at and what action
            * they took to trigger the predict request. Note that this user event detail
      @@ -1534,24 +1437,17 @@ public boolean hasUserEvent() {
            * request is required for event logging.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The userEvent. */ public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvent() { if (userEventBuilder_ == null) { - return userEvent_ == null - ? com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() - : userEvent_; + return userEvent_ == null ? com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() : userEvent_; } else { return userEventBuilder_.getMessage(); } } /** - * - * *
            * Required. Context about the user, what they are looking at and what action
            * they took to trigger the predict request. Note that this user event detail
      @@ -1559,9 +1455,7 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvent() {
            * request is required for event logging.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUserEvent(com.google.cloud.recommendationengine.v1beta1.UserEvent value) { if (userEventBuilder_ == null) { @@ -1577,8 +1471,6 @@ public Builder setUserEvent(com.google.cloud.recommendationengine.v1beta1.UserEv return this; } /** - * - * *
            * Required. Context about the user, what they are looking at and what action
            * they took to trigger the predict request. Note that this user event detail
      @@ -1586,9 +1478,7 @@ public Builder setUserEvent(com.google.cloud.recommendationengine.v1beta1.UserEv
            * request is required for event logging.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUserEvent( com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { @@ -1602,8 +1492,6 @@ public Builder setUserEvent( return this; } /** - * - * *
            * Required. Context about the user, what they are looking at and what action
            * they took to trigger the predict request. Note that this user event detail
      @@ -1611,17 +1499,13 @@ public Builder setUserEvent(
            * request is required for event logging.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUserEvent(com.google.cloud.recommendationengine.v1beta1.UserEvent value) { if (userEventBuilder_ == null) { if (userEvent_ != null) { userEvent_ = - com.google.cloud.recommendationengine.v1beta1.UserEvent.newBuilder(userEvent_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.recommendationengine.v1beta1.UserEvent.newBuilder(userEvent_).mergeFrom(value).buildPartial(); } else { userEvent_ = value; } @@ -1633,8 +1517,6 @@ public Builder mergeUserEvent(com.google.cloud.recommendationengine.v1beta1.User return this; } /** - * - * *
            * Required. Context about the user, what they are looking at and what action
            * they took to trigger the predict request. Note that this user event detail
      @@ -1642,9 +1524,7 @@ public Builder mergeUserEvent(com.google.cloud.recommendationengine.v1beta1.User
            * request is required for event logging.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUserEvent() { if (userEventBuilder_ == null) { @@ -1658,8 +1538,6 @@ public Builder clearUserEvent() { return this; } /** - * - * *
            * Required. Context about the user, what they are looking at and what action
            * they took to trigger the predict request. Note that this user event detail
      @@ -1667,18 +1545,14 @@ public Builder clearUserEvent() {
            * request is required for event logging.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder getUserEventBuilder() { - + onChanged(); return getUserEventFieldBuilder().getBuilder(); } /** - * - * *
            * Required. Context about the user, what they are looking at and what action
            * they took to trigger the predict request. Note that this user event detail
      @@ -1686,23 +1560,17 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder getUserEv
            * request is required for event logging.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder - getUserEventOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventOrBuilder() { if (userEventBuilder_ != null) { return userEventBuilder_.getMessageOrBuilder(); } else { - return userEvent_ == null - ? com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() - : userEvent_; + return userEvent_ == null ? + com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() : userEvent_; } } /** - * - * *
            * Required. Context about the user, what they are looking at and what action
            * they took to trigger the predict request. Note that this user event detail
      @@ -1710,31 +1578,24 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder getUserEv
            * request is required for event logging.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, - com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> + com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> getUserEventFieldBuilder() { if (userEventBuilder_ == null) { - userEventBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, - com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder>( - getUserEvent(), getParentForChildren(), isClean()); + userEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder>( + getUserEvent(), + getParentForChildren(), + isClean()); userEvent_ = null; } return userEventBuilder_; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
            * Optional. Maximum number of results to return per page. Set this property
            * to the number of prediction results required. If zero, the service will
      @@ -1742,7 +1603,6 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder getUserEv
            * 
      * * int32 page_size = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -1750,8 +1610,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
            * Optional. Maximum number of results to return per page. Set this property
            * to the number of prediction results required. If zero, the service will
      @@ -1759,19 +1617,16 @@ public int getPageSize() {
            * 
      * * int32 page_size = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Maximum number of results to return per page. Set this property
            * to the number of prediction results required. If zero, the service will
      @@ -1779,11 +1634,10 @@ public Builder setPageSize(int value) {
            * 
      * * int32 page_size = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1791,20 +1645,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
            * Optional. The previous PredictResponse.next_page_token.
            * 
      * * string page_token = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1813,21 +1665,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
            * Optional. The previous PredictResponse.next_page_token.
            * 
      * * string page_token = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1835,61 +1686,54 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
            * Optional. The previous PredictResponse.next_page_token.
            * 
      * * string page_token = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
            * Optional. The previous PredictResponse.next_page_token.
            * 
      * * string page_token = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
            * Optional. The previous PredictResponse.next_page_token.
            * 
      * * string page_token = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1897,8 +1741,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
            * Optional. Filter for restricting prediction results. Accepts values for
            * tags and the `filterOutOfStockItems` flag.
      @@ -1917,13 +1759,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
            * 
      * * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1932,8 +1774,6 @@ public java.lang.String getFilter() { } } /** - * - * *
            * Optional. Filter for restricting prediction results. Accepts values for
            * tags and the `filterOutOfStockItems` flag.
      @@ -1952,14 +1792,15 @@ public java.lang.String getFilter() {
            * 
      * * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1967,8 +1808,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
            * Optional. Filter for restricting prediction results. Accepts values for
            * tags and the `filterOutOfStockItems` flag.
      @@ -1987,22 +1826,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
            * 
      * * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Filter for restricting prediction results. Accepts values for
            * tags and the `filterOutOfStockItems` flag.
      @@ -2021,18 +1858,15 @@ public Builder setFilter(java.lang.String value) {
            * 
      * * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
            * Optional. Filter for restricting prediction results. Accepts values for
            * tags and the `filterOutOfStockItems` flag.
      @@ -2051,25 +1885,23 @@ public Builder clearFilter() {
            * 
      * * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private boolean dryRun_; + private boolean dryRun_ ; /** - * - * *
            * Optional. Use dryRun mode for this prediction query. If set to true, a
            * dummy model will be used that returns arbitrary catalog items.
      @@ -2078,7 +1910,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
            * 
      * * bool dry_run = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The dryRun. */ @java.lang.Override @@ -2086,8 +1917,6 @@ public boolean getDryRun() { return dryRun_; } /** - * - * *
            * Optional. Use dryRun mode for this prediction query. If set to true, a
            * dummy model will be used that returns arbitrary catalog items.
      @@ -2096,19 +1925,16 @@ public boolean getDryRun() {
            * 
      * * bool dry_run = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The dryRun to set. * @return This builder for chaining. */ public Builder setDryRun(boolean value) { - + dryRun_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Use dryRun mode for this prediction query. If set to true, a
            * dummy model will be used that returns arbitrary catalog items.
      @@ -2117,32 +1943,31 @@ public Builder setDryRun(boolean value) {
            * 
      * * bool dry_run = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDryRun() { - + dryRun_ = false; onChanged(); return this; } - private com.google.protobuf.MapField params_; - + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> params_; private com.google.protobuf.MapField - internalGetParams() { + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); } return params_; } - private com.google.protobuf.MapField - internalGetMutableParams() { - onChanged(); - ; + internalGetMutableParams() { + onChanged();; if (params_ == null) { - params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); } if (!params_.isMutable()) { params_ = params_.copy(); @@ -2154,8 +1979,6 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** - * - * *
            * Optional. Additional domain specific parameters for the predictions.
            * Allowed values:
      @@ -2170,26 +1993,24 @@ public int getParamsCount() {
            *    and history.
            * 
      * - * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsParams(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsParams( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetParams().getMap().containsKey(key); } - /** Use {@link #getParamsMap()} instead. */ + /** + * Use {@link #getParamsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParams() { return getParamsMap(); } /** - * - * *
            * Optional. Additional domain specific parameters for the predictions.
            * Allowed values:
      @@ -2204,17 +2025,14 @@ public java.util.Map getParams() {
            *    and history.
            * 
      * - * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getParamsMap() { return internalGetParams().getMap(); } /** - * - * *
            * Optional. Additional domain specific parameters for the predictions.
            * Allowed values:
      @@ -2229,22 +2047,19 @@ public java.util.Map getParamsMap()
            *    and history.
            * 
      * - * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.protobuf.Value getParamsOrDefault( - java.lang.String key, com.google.protobuf.Value defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParams().getMap(); + java.lang.String key, + com.google.protobuf.Value defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParams().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
            * Optional. Additional domain specific parameters for the predictions.
            * Allowed values:
      @@ -2259,16 +2074,15 @@ public com.google.protobuf.Value getParamsOrDefault(
            *    and history.
            * 
      * - * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protobuf.Value getParamsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParams().getMap(); + + public com.google.protobuf.Value getParamsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetParams().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2276,12 +2090,11 @@ public com.google.protobuf.Value getParamsOrThrow(java.lang.String key) { } public Builder clearParams() { - internalGetMutableParams().getMutableMap().clear(); + internalGetMutableParams().getMutableMap() + .clear(); return this; } /** - * - * *
            * Optional. Additional domain specific parameters for the predictions.
            * Allowed values:
      @@ -2296,25 +2109,25 @@ public Builder clearParams() {
            *    and history.
            * 
      * - * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeParams(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableParams().getMutableMap().remove(key); + + public Builder removeParams( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableParams().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableParams() { + public java.util.Map + getMutableParams() { return internalGetMutableParams().getMutableMap(); } /** - * - * *
            * Optional. Additional domain specific parameters for the predictions.
            * Allowed values:
      @@ -2329,24 +2142,21 @@ public java.util.Map getMutablePara
            *    and history.
            * 
      * - * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putParams(java.lang.String key, com.google.protobuf.Value value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putParams( + java.lang.String key, + com.google.protobuf.Value value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableParams().getMutableMap().put(key, value); + internalGetMutableParams().getMutableMap() + .put(key, value); return this; } /** - * - * *
            * Optional. Additional domain specific parameters for the predictions.
            * Allowed values:
      @@ -2361,30 +2171,32 @@ public Builder putParams(java.lang.String key, com.google.protobuf.Value value)
            *    and history.
            * 
      * - * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllParams(java.util.Map values) { - internalGetMutableParams().getMutableMap().putAll(values); + + public Builder putAllParams( + java.util.Map values) { + internalGetMutableParams().getMutableMap() + .putAll(values); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2396,8 +2208,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
            * Optional. The labels for the predict request.
            *  * Label keys can contain lowercase letters, digits and hyphens, must start
      @@ -2410,22 +2220,22 @@ public int getLabelsCount() {
            *
            * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
            */
      +
           @java.lang.Override
      -    public boolean containsLabels(java.lang.String key) {
      -      if (key == null) {
      -        throw new NullPointerException("map key");
      -      }
      +    public boolean containsLabels(
      +        java.lang.String key) {
      +      if (key == null) { throw new NullPointerException("map key"); }
             return internalGetLabels().getMap().containsKey(key);
           }
      -    /** Use {@link #getLabelsMap()} instead. */
      +    /**
      +     * Use {@link #getLabelsMap()} instead.
      +     */
           @java.lang.Override
           @java.lang.Deprecated
           public java.util.Map getLabels() {
             return getLabelsMap();
           }
           /**
      -     *
      -     *
            * 
            * Optional. The labels for the predict request.
            *  * Label keys can contain lowercase letters, digits and hyphens, must start
      @@ -2439,12 +2249,11 @@ public java.util.Map getLabels() {
            * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
            */
           @java.lang.Override
      +
           public java.util.Map getLabelsMap() {
             return internalGetLabels().getMap();
           }
           /**
      -     *
      -     *
            * 
            * Optional. The labels for the predict request.
            *  * Label keys can contain lowercase letters, digits and hyphens, must start
      @@ -2458,17 +2267,16 @@ public java.util.Map getLabelsMap() {
            * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
            */
           @java.lang.Override
      +
           public java.lang.String getLabelsOrDefault(
      -        java.lang.String key, java.lang.String defaultValue) {
      -      if (key == null) {
      -        throw new NullPointerException("map key");
      -      }
      -      java.util.Map map = internalGetLabels().getMap();
      +        java.lang.String key,
      +        java.lang.String defaultValue) {
      +      if (key == null) { throw new NullPointerException("map key"); }
      +      java.util.Map map =
      +          internalGetLabels().getMap();
             return map.containsKey(key) ? map.get(key) : defaultValue;
           }
           /**
      -     *
      -     *
            * 
            * Optional. The labels for the predict request.
            *  * Label keys can contain lowercase letters, digits and hyphens, must start
      @@ -2482,11 +2290,12 @@ public java.lang.String getLabelsOrDefault(
            * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
            */
           @java.lang.Override
      -    public java.lang.String getLabelsOrThrow(java.lang.String key) {
      -      if (key == null) {
      -        throw new NullPointerException("map key");
      -      }
      -      java.util.Map map = internalGetLabels().getMap();
      +
      +    public java.lang.String getLabelsOrThrow(
      +        java.lang.String key) {
      +      if (key == null) { throw new NullPointerException("map key"); }
      +      java.util.Map map =
      +          internalGetLabels().getMap();
             if (!map.containsKey(key)) {
               throw new java.lang.IllegalArgumentException();
             }
      @@ -2494,12 +2303,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
           }
       
           public Builder clearLabels() {
      -      internalGetMutableLabels().getMutableMap().clear();
      +      internalGetMutableLabels().getMutableMap()
      +          .clear();
             return this;
           }
           /**
      -     *
      -     *
            * 
            * Optional. The labels for the predict request.
            *  * Label keys can contain lowercase letters, digits and hyphens, must start
      @@ -2512,21 +2320,23 @@ public Builder clearLabels() {
            *
            * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
            */
      -    public Builder removeLabels(java.lang.String key) {
      -      if (key == null) {
      -        throw new NullPointerException("map key");
      -      }
      -      internalGetMutableLabels().getMutableMap().remove(key);
      +
      +    public Builder removeLabels(
      +        java.lang.String key) {
      +      if (key == null) { throw new NullPointerException("map key"); }
      +      internalGetMutableLabels().getMutableMap()
      +          .remove(key);
             return this;
           }
      -    /** Use alternate mutation accessors instead. */
      +    /**
      +     * Use alternate mutation accessors instead.
      +     */
           @java.lang.Deprecated
      -    public java.util.Map getMutableLabels() {
      +    public java.util.Map
      +    getMutableLabels() {
             return internalGetMutableLabels().getMutableMap();
           }
           /**
      -     *
      -     *
            * 
            * Optional. The labels for the predict request.
            *  * Label keys can contain lowercase letters, digits and hyphens, must start
      @@ -2539,20 +2349,19 @@ public java.util.Map getMutableLabels() {
            *
            * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
            */
      -    public Builder putLabels(java.lang.String key, java.lang.String value) {
      -      if (key == null) {
      -        throw new NullPointerException("map key");
      -      }
      +    public Builder putLabels(
      +        java.lang.String key,
      +        java.lang.String value) {
      +      if (key == null) { throw new NullPointerException("map key"); }
             if (value == null) {
      -        throw new NullPointerException("map value");
      -      }
      +  throw new NullPointerException("map value");
      +}
       
      -      internalGetMutableLabels().getMutableMap().put(key, value);
      +      internalGetMutableLabels().getMutableMap()
      +          .put(key, value);
             return this;
           }
           /**
      -     *
      -     *
            * 
            * Optional. The labels for the predict request.
            *  * Label keys can contain lowercase letters, digits and hyphens, must start
      @@ -2565,13 +2374,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
            *
            * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
            */
      -    public Builder putAllLabels(java.util.Map values) {
      -      internalGetMutableLabels().getMutableMap().putAll(values);
      +
      +    public Builder putAllLabels(
      +        java.util.Map values) {
      +      internalGetMutableLabels().getMutableMap()
      +          .putAll(values);
             return this;
           }
      -
           @java.lang.Override
      -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      +    public final Builder setUnknownFields(
      +        final com.google.protobuf.UnknownFieldSet unknownFields) {
             return super.setUnknownFields(unknownFields);
           }
       
      @@ -2581,13 +2393,12 @@ public final Builder mergeUnknownFields(
             return super.mergeUnknownFields(unknownFields);
           }
       
      +
           // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.PredictRequest)
         }
       
         // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.PredictRequest)
      -  private static final com.google.cloud.recommendationengine.v1beta1.PredictRequest
      -      DEFAULT_INSTANCE;
      -
      +  private static final com.google.cloud.recommendationengine.v1beta1.PredictRequest DEFAULT_INSTANCE;
         static {
           DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.PredictRequest();
         }
      @@ -2596,16 +2407,16 @@ public static com.google.cloud.recommendationengine.v1beta1.PredictRequest getDe
           return DEFAULT_INSTANCE;
         }
       
      -  private static final com.google.protobuf.Parser PARSER =
      -      new com.google.protobuf.AbstractParser() {
      -        @java.lang.Override
      -        public PredictRequest parsePartialFrom(
      -            com.google.protobuf.CodedInputStream input,
      -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      -            throws com.google.protobuf.InvalidProtocolBufferException {
      -          return new PredictRequest(input, extensionRegistry);
      -        }
      -      };
      +  private static final com.google.protobuf.Parser
      +      PARSER = new com.google.protobuf.AbstractParser() {
      +    @java.lang.Override
      +    public PredictRequest parsePartialFrom(
      +        com.google.protobuf.CodedInputStream input,
      +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +        throws com.google.protobuf.InvalidProtocolBufferException {
      +      return new PredictRequest(input, extensionRegistry);
      +    }
      +  };
       
         public static com.google.protobuf.Parser parser() {
           return PARSER;
      @@ -2620,4 +2431,6 @@ public com.google.protobuf.Parser getParserForType() {
         public com.google.cloud.recommendationengine.v1beta1.PredictRequest getDefaultInstanceForType() {
           return DEFAULT_INSTANCE;
         }
      +
       }
      +
      diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequestOrBuilder.java
      similarity index 82%
      rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequestOrBuilder.java
      rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequestOrBuilder.java
      index 4cc143f5..40e51b6f 100644
      --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequestOrBuilder.java
      +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequestOrBuilder.java
      @@ -1,31 +1,13 @@
      -/*
      - * Copyright 2020 Google LLC
      - *
      - * Licensed under the Apache License, Version 2.0 (the "License");
      - * you may not use this file except in compliance with the License.
      - * You may obtain a copy of the License at
      - *
      - *     https://www.apache.org/licenses/LICENSE-2.0
      - *
      - * Unless required by applicable law or agreed to in writing, software
      - * distributed under the License is distributed on an "AS IS" BASIS,
      - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      - * See the License for the specific language governing permissions and
      - * limitations under the License.
      - */
       // Generated by the protocol buffer compiler.  DO NOT EDIT!
       // source: google/cloud/recommendationengine/v1beta1/prediction_service.proto
       
       package com.google.cloud.recommendationengine.v1beta1;
       
      -public interface PredictRequestOrBuilder
      -    extends
      +public interface PredictRequestOrBuilder extends
           // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.PredictRequest)
           com.google.protobuf.MessageOrBuilder {
       
         /**
      -   *
      -   *
          * 
          * Required. Full resource name of the format:
          * `{name=projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/placements/*}`
      @@ -52,16 +34,11 @@ public interface PredictRequestOrBuilder
          * https://console.cloud.google.com/recommendation/datafeeds/default_catalog/dashboard
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
          * Required. Full resource name of the format:
          * `{name=projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/placements/*}`
      @@ -88,17 +65,13 @@ public interface PredictRequestOrBuilder
          * https://console.cloud.google.com/recommendation/datafeeds/default_catalog/dashboard
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
          * Required. Context about the user, what they are looking at and what action
          * they took to trigger the predict request. Note that this user event detail
      @@ -106,16 +79,11 @@ public interface PredictRequestOrBuilder
          * request is required for event logging.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the userEvent field is set. */ boolean hasUserEvent(); /** - * - * *
          * Required. Context about the user, what they are looking at and what action
          * they took to trigger the predict request. Note that this user event detail
      @@ -123,16 +91,11 @@ public interface PredictRequestOrBuilder
          * request is required for event logging.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The userEvent. */ com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvent(); /** - * - * *
          * Required. Context about the user, what they are looking at and what action
          * they took to trigger the predict request. Note that this user event detail
      @@ -140,15 +103,11 @@ public interface PredictRequestOrBuilder
          * request is required for event logging.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventOrBuilder(); /** - * - * *
          * Optional. Maximum number of results to return per page. Set this property
          * to the number of prediction results required. If zero, the service will
      @@ -156,39 +115,31 @@ public interface PredictRequestOrBuilder
          * 
      * * int32 page_size = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
          * Optional. The previous PredictResponse.next_page_token.
          * 
      * * string page_token = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
          * Optional. The previous PredictResponse.next_page_token.
          * 
      * * string page_token = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
          * Optional. Filter for restricting prediction results. Accepts values for
          * tags and the `filterOutOfStockItems` flag.
      @@ -207,13 +158,10 @@ public interface PredictRequestOrBuilder
          * 
      * * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
          * Optional. Filter for restricting prediction results. Accepts values for
          * tags and the `filterOutOfStockItems` flag.
      @@ -232,14 +180,12 @@ public interface PredictRequestOrBuilder
          * 
      * * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
          * Optional. Use dryRun mode for this prediction query. If set to true, a
          * dummy model will be used that returns arbitrary catalog items.
      @@ -248,14 +194,11 @@ public interface PredictRequestOrBuilder
          * 
      * * bool dry_run = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The dryRun. */ boolean getDryRun(); /** - * - * *
          * Optional. Additional domain specific parameters for the predictions.
          * Allowed values:
      @@ -270,14 +213,10 @@ public interface PredictRequestOrBuilder
          *    and history.
          * 
      * - * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; */ int getParamsCount(); /** - * - * *
          * Optional. Additional domain specific parameters for the predictions.
          * Allowed values:
      @@ -292,17 +231,17 @@ public interface PredictRequestOrBuilder
          *    and history.
          * 
      * - * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsParams( + java.lang.String key); + /** + * Use {@link #getParamsMap()} instead. */ - boolean containsParams(java.lang.String key); - /** Use {@link #getParamsMap()} instead. */ @java.lang.Deprecated - java.util.Map getParams(); + java.util.Map + getParams(); /** - * - * *
          * Optional. Additional domain specific parameters for the predictions.
          * Allowed values:
      @@ -317,14 +256,11 @@ public interface PredictRequestOrBuilder
          *    and history.
          * 
      * - * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getParamsMap(); + java.util.Map + getParamsMap(); /** - * - * *
          * Optional. Additional domain specific parameters for the predictions.
          * Allowed values:
      @@ -339,19 +275,15 @@ public interface PredictRequestOrBuilder
          *    and history.
          * 
      * - * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - com.google.protobuf.Value getParamsOrDefault( +com.google.protobuf.Value getParamsOrDefault( java.lang.String key, /* nullable */ - com.google.protobuf.Value defaultValue); +com.google.protobuf.Value defaultValue); /** - * - * *
          * Optional. Additional domain specific parameters for the predictions.
          * Allowed values:
      @@ -366,15 +298,13 @@ com.google.protobuf.Value getParamsOrDefault(
          *    and history.
          * 
      * - * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.protobuf.Value getParamsOrThrow(java.lang.String key); + + com.google.protobuf.Value getParamsOrThrow( + java.lang.String key); /** - * - * *
          * Optional. The labels for the predict request.
          *  * Label keys can contain lowercase letters, digits and hyphens, must start
      @@ -389,8 +319,6 @@ com.google.protobuf.Value getParamsOrDefault(
          */
         int getLabelsCount();
         /**
      -   *
      -   *
          * 
          * Optional. The labels for the predict request.
          *  * Label keys can contain lowercase letters, digits and hyphens, must start
      @@ -403,13 +331,15 @@ com.google.protobuf.Value getParamsOrDefault(
          *
          * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
          */
      -  boolean containsLabels(java.lang.String key);
      -  /** Use {@link #getLabelsMap()} instead. */
      +  boolean containsLabels(
      +      java.lang.String key);
      +  /**
      +   * Use {@link #getLabelsMap()} instead.
      +   */
         @java.lang.Deprecated
      -  java.util.Map getLabels();
      +  java.util.Map
      +  getLabels();
         /**
      -   *
      -   *
          * 
          * Optional. The labels for the predict request.
          *  * Label keys can contain lowercase letters, digits and hyphens, must start
      @@ -422,10 +352,9 @@ com.google.protobuf.Value getParamsOrDefault(
          *
          * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
          */
      -  java.util.Map getLabelsMap();
      +  java.util.Map
      +  getLabelsMap();
         /**
      -   *
      -   *
          * 
          * Optional. The labels for the predict request.
          *  * Label keys can contain lowercase letters, digits and hyphens, must start
      @@ -440,13 +369,11 @@ com.google.protobuf.Value getParamsOrDefault(
          */
       
         /* nullable */
      -  java.lang.String getLabelsOrDefault(
      +java.lang.String getLabelsOrDefault(
             java.lang.String key,
             /* nullable */
      -      java.lang.String defaultValue);
      +java.lang.String defaultValue);
         /**
      -   *
      -   *
          * 
          * Optional. The labels for the predict request.
          *  * Label keys can contain lowercase letters, digits and hyphens, must start
      @@ -459,5 +386,7 @@ java.lang.String getLabelsOrDefault(
          *
          * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
          */
      -  java.lang.String getLabelsOrThrow(java.lang.String key);
      +
      +  java.lang.String getLabelsOrThrow(
      +      java.lang.String key);
       }
      diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponse.java
      similarity index 65%
      rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponse.java
      rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponse.java
      index ef707ed9..773523cb 100644
      --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponse.java
      +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponse.java
      @@ -1,42 +1,24 @@
      -/*
      - * Copyright 2020 Google LLC
      - *
      - * Licensed under the Apache License, Version 2.0 (the "License");
      - * you may not use this file except in compliance with the License.
      - * You may obtain a copy of the License at
      - *
      - *     https://www.apache.org/licenses/LICENSE-2.0
      - *
      - * Unless required by applicable law or agreed to in writing, software
      - * distributed under the License is distributed on an "AS IS" BASIS,
      - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      - * See the License for the specific language governing permissions and
      - * limitations under the License.
      - */
       // Generated by the protocol buffer compiler.  DO NOT EDIT!
       // source: google/cloud/recommendationengine/v1beta1/prediction_service.proto
       
       package com.google.cloud.recommendationengine.v1beta1;
       
       /**
      - *
      - *
        * 
        * Response message for predict method.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PredictResponse} */ -public final class PredictResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PredictResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.PredictResponse) PredictResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PredictResponse.newBuilder() to construct. private PredictResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PredictResponse() { results_ = java.util.Collections.emptyList(); recommendationToken_ = ""; @@ -46,15 +28,16 @@ private PredictResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PredictResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PredictResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,73 +57,61 @@ private PredictResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - results_ = - new java.util.ArrayList< - com.google.cloud.recommendationengine.v1beta1.PredictResponse - .PredictionResult>(); - mutable_bitField0_ |= 0x00000001; - } - results_.add( - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult - .parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + results_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + results_.add( + input.readMessage(com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - recommendationToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - itemsMissingInCatalog_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - itemsMissingInCatalog_.add(s); - break; - } - case 32: - { - dryRun_ = input.readBool(); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - metadata_ = - com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); - break; + recommendationToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + itemsMissingInCatalog_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + itemsMissingInCatalog_.add(s); + break; + } + case 32: { - nextPageToken_ = s; - break; + dryRun_ = input.readBool(); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + metadata_.getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + break; + } + case 50: { + 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) { @@ -148,7 +119,8 @@ private PredictResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { results_ = java.util.Collections.unmodifiableList(results_); @@ -160,66 +132,56 @@ private PredictResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PredictResponse.class, - com.google.cloud.recommendationengine.v1beta1.PredictResponse.Builder.class); + com.google.cloud.recommendationengine.v1beta1.PredictResponse.class, com.google.cloud.recommendationengine.v1beta1.PredictResponse.Builder.class); } - public interface PredictionResultOrBuilder - extends + public interface PredictionResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
            * ID of the recommended catalog item
            * 
      * * string id = 1; - * * @return The id. */ java.lang.String getId(); /** - * - * *
            * ID of the recommended catalog item
            * 
      * * string id = 1; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
            * Additional item metadata / annotations.
            * Possible values:
      @@ -233,8 +195,6 @@ public interface PredictionResultOrBuilder
            */
           int getItemMetadataCount();
           /**
      -     *
      -     *
            * 
            * Additional item metadata / annotations.
            * Possible values:
      @@ -246,13 +206,15 @@ public interface PredictionResultOrBuilder
            *
            * map<string, .google.protobuf.Value> item_metadata = 2;
            */
      -    boolean containsItemMetadata(java.lang.String key);
      -    /** Use {@link #getItemMetadataMap()} instead. */
      +    boolean containsItemMetadata(
      +        java.lang.String key);
      +    /**
      +     * Use {@link #getItemMetadataMap()} instead.
      +     */
           @java.lang.Deprecated
      -    java.util.Map getItemMetadata();
      +    java.util.Map
      +    getItemMetadata();
           /**
      -     *
      -     *
            * 
            * Additional item metadata / annotations.
            * Possible values:
      @@ -264,10 +226,9 @@ public interface PredictionResultOrBuilder
            *
            * map<string, .google.protobuf.Value> item_metadata = 2;
            */
      -    java.util.Map getItemMetadataMap();
      +    java.util.Map
      +    getItemMetadataMap();
           /**
      -     *
      -     *
            * 
            * Additional item metadata / annotations.
            * Possible values:
      @@ -281,13 +242,11 @@ public interface PredictionResultOrBuilder
            */
       
           /* nullable */
      -    com.google.protobuf.Value getItemMetadataOrDefault(
      +com.google.protobuf.Value getItemMetadataOrDefault(
               java.lang.String key,
               /* nullable */
      -        com.google.protobuf.Value defaultValue);
      +com.google.protobuf.Value defaultValue);
           /**
      -     *
      -     *
            * 
            * Additional item metadata / annotations.
            * Possible values:
      @@ -299,43 +258,42 @@ com.google.protobuf.Value getItemMetadataOrDefault(
            *
            * map<string, .google.protobuf.Value> item_metadata = 2;
            */
      -    com.google.protobuf.Value getItemMetadataOrThrow(java.lang.String key);
      +
      +    com.google.protobuf.Value getItemMetadataOrThrow(
      +        java.lang.String key);
         }
         /**
      -   *
      -   *
          * 
          * PredictionResult represents the recommendation prediction results.
          * 
      * - * Protobuf type {@code - * google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult} + * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult} */ - public static final class PredictionResult extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class PredictionResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult) PredictionResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PredictionResult.newBuilder() to construct. private PredictionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PredictionResult() { id_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PredictionResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PredictionResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -355,38 +313,32 @@ private PredictionResult( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - itemMetadata_ = - com.google.protobuf.MapField.newMapField( - ItemMetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - itemMetadata__ = - input.readMessage( - ItemMetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - itemMetadata_ - .getMutableMap() - .put(itemMetadata__.getKey(), itemMetadata__.getValue()); - break; + id_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + itemMetadata_ = com.google.protobuf.MapField.newMapField( + ItemMetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + itemMetadata__ = input.readMessage( + ItemMetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + itemMetadata_.getMutableMap().put( + itemMetadata__.getKey(), itemMetadata__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -394,51 +346,46 @@ private PredictionResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetItemMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.class, - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder - .class); + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.class, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** - * - * *
            * ID of the recommended catalog item
            * 
      * * string id = 1; - * * @return The id. */ @java.lang.Override @@ -447,29 +394,29 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** - * - * *
            * ID of the recommended catalog item
            * 
      * * string id = 1; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -478,24 +425,21 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int ITEM_METADATA_FIELD_NUMBER = 2; - private static final class ItemMetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.Value> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); - } - - private com.google.protobuf.MapField itemMetadata_; - + .newDefaultInstance( + com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> itemMetadata_; private com.google.protobuf.MapField - internalGetItemMetadata() { + internalGetItemMetadata() { if (itemMetadata_ == null) { return com.google.protobuf.MapField.emptyMapField( ItemMetadataDefaultEntryHolder.defaultEntry); @@ -507,8 +451,6 @@ public int getItemMetadataCount() { return internalGetItemMetadata().getMap().size(); } /** - * - * *
            * Additional item metadata / annotations.
            * Possible values:
      @@ -520,22 +462,22 @@ public int getItemMetadataCount() {
            *
            * map<string, .google.protobuf.Value> item_metadata = 2;
            */
      +
           @java.lang.Override
      -    public boolean containsItemMetadata(java.lang.String key) {
      -      if (key == null) {
      -        throw new NullPointerException("map key");
      -      }
      +    public boolean containsItemMetadata(
      +        java.lang.String key) {
      +      if (key == null) { throw new NullPointerException("map key"); }
             return internalGetItemMetadata().getMap().containsKey(key);
           }
      -    /** Use {@link #getItemMetadataMap()} instead. */
      +    /**
      +     * Use {@link #getItemMetadataMap()} instead.
      +     */
           @java.lang.Override
           @java.lang.Deprecated
           public java.util.Map getItemMetadata() {
             return getItemMetadataMap();
           }
           /**
      -     *
      -     *
            * 
            * Additional item metadata / annotations.
            * Possible values:
      @@ -548,12 +490,11 @@ public java.util.Map getItemMetadat
            * map<string, .google.protobuf.Value> item_metadata = 2;
            */
           @java.lang.Override
      +
           public java.util.Map getItemMetadataMap() {
             return internalGetItemMetadata().getMap();
           }
           /**
      -     *
      -     *
            * 
            * Additional item metadata / annotations.
            * Possible values:
      @@ -566,18 +507,16 @@ public java.util.Map getItemMetadat
            * map<string, .google.protobuf.Value> item_metadata = 2;
            */
           @java.lang.Override
      +
           public com.google.protobuf.Value getItemMetadataOrDefault(
      -        java.lang.String key, com.google.protobuf.Value defaultValue) {
      -      if (key == null) {
      -        throw new NullPointerException("map key");
      -      }
      +        java.lang.String key,
      +        com.google.protobuf.Value defaultValue) {
      +      if (key == null) { throw new NullPointerException("map key"); }
             java.util.Map map =
                 internalGetItemMetadata().getMap();
             return map.containsKey(key) ? map.get(key) : defaultValue;
           }
           /**
      -     *
      -     *
            * 
            * Additional item metadata / annotations.
            * Possible values:
      @@ -590,10 +529,10 @@ public com.google.protobuf.Value getItemMetadataOrDefault(
            * map<string, .google.protobuf.Value> item_metadata = 2;
            */
           @java.lang.Override
      -    public com.google.protobuf.Value getItemMetadataOrThrow(java.lang.String key) {
      -      if (key == null) {
      -        throw new NullPointerException("map key");
      -      }
      +
      +    public com.google.protobuf.Value getItemMetadataOrThrow(
      +        java.lang.String key) {
      +      if (key == null) { throw new NullPointerException("map key"); }
             java.util.Map map =
                 internalGetItemMetadata().getMap();
             if (!map.containsKey(key)) {
      @@ -603,7 +542,6 @@ public com.google.protobuf.Value getItemMetadataOrThrow(java.lang.String key) {
           }
       
           private byte memoizedIsInitialized = -1;
      -
           @java.lang.Override
           public final boolean isInitialized() {
             byte isInitialized = memoizedIsInitialized;
      @@ -615,12 +553,17 @@ public final boolean isInitialized() {
           }
       
           @java.lang.Override
      -    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      +    public void writeTo(com.google.protobuf.CodedOutputStream output)
      +                        throws java.io.IOException {
             if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
               com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
             }
      -      com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
      -          output, internalGetItemMetadata(), ItemMetadataDefaultEntryHolder.defaultEntry, 2);
      +      com.google.protobuf.GeneratedMessageV3
      +        .serializeStringMapTo(
      +          output,
      +          internalGetItemMetadata(),
      +          ItemMetadataDefaultEntryHolder.defaultEntry,
      +          2);
             unknownFields.writeTo(output);
           }
       
      @@ -633,15 +576,15 @@ public int getSerializedSize() {
             if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
               size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
             }
      -      for (java.util.Map.Entry entry :
      -          internalGetItemMetadata().getMap().entrySet()) {
      -        com.google.protobuf.MapEntry itemMetadata__ =
      -            ItemMetadataDefaultEntryHolder.defaultEntry
      -                .newBuilderForType()
      -                .setKey(entry.getKey())
      -                .setValue(entry.getValue())
      -                .build();
      -        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, itemMetadata__);
      +      for (java.util.Map.Entry entry
      +           : internalGetItemMetadata().getMap().entrySet()) {
      +        com.google.protobuf.MapEntry
      +        itemMetadata__ = ItemMetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
      +            .setKey(entry.getKey())
      +            .setValue(entry.getValue())
      +            .build();
      +        size += com.google.protobuf.CodedOutputStream
      +            .computeMessageSize(2, itemMetadata__);
             }
             size += unknownFields.getSerializedSize();
             memoizedSize = size;
      @@ -651,18 +594,17 @@ public int getSerializedSize() {
           @java.lang.Override
           public boolean equals(final java.lang.Object obj) {
             if (obj == this) {
      -        return true;
      +       return true;
             }
      -      if (!(obj
      -          instanceof
      -          com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult)) {
      +      if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult)) {
               return super.equals(obj);
             }
      -      com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult other =
      -          (com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult) obj;
      +      com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult other = (com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult) obj;
       
      -      if (!getId().equals(other.getId())) return false;
      -      if (!internalGetItemMetadata().equals(other.internalGetItemMetadata())) return false;
      +      if (!getId()
      +          .equals(other.getId())) return false;
      +      if (!internalGetItemMetadata().equals(
      +          other.internalGetItemMetadata())) return false;
             if (!unknownFields.equals(other.unknownFields)) return false;
             return true;
           }
      @@ -685,101 +627,88 @@ public int hashCode() {
             return hash;
           }
       
      -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
      -        parseFrom(java.nio.ByteBuffer data)
      -            throws com.google.protobuf.InvalidProtocolBufferException {
      +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseFrom(
      +        java.nio.ByteBuffer data)
      +        throws com.google.protobuf.InvalidProtocolBufferException {
             return PARSER.parseFrom(data);
           }
      -
      -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
      -        parseFrom(
      -            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      -            throws com.google.protobuf.InvalidProtocolBufferException {
      +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseFrom(
      +        java.nio.ByteBuffer data,
      +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +        throws com.google.protobuf.InvalidProtocolBufferException {
             return PARSER.parseFrom(data, extensionRegistry);
           }
      -
      -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
      -        parseFrom(com.google.protobuf.ByteString data)
      -            throws com.google.protobuf.InvalidProtocolBufferException {
      +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseFrom(
      +        com.google.protobuf.ByteString data)
      +        throws com.google.protobuf.InvalidProtocolBufferException {
             return PARSER.parseFrom(data);
           }
      -
      -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
      -        parseFrom(
      -            com.google.protobuf.ByteString data,
      -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      -            throws com.google.protobuf.InvalidProtocolBufferException {
      +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseFrom(
      +        com.google.protobuf.ByteString data,
      +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +        throws com.google.protobuf.InvalidProtocolBufferException {
             return PARSER.parseFrom(data, extensionRegistry);
           }
      -
      -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
      -        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseFrom(byte[] data)
      +        throws com.google.protobuf.InvalidProtocolBufferException {
             return PARSER.parseFrom(data);
           }
      -
      -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
      -        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      -            throws com.google.protobuf.InvalidProtocolBufferException {
      +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseFrom(
      +        byte[] data,
      +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +        throws com.google.protobuf.InvalidProtocolBufferException {
             return PARSER.parseFrom(data, extensionRegistry);
           }
      -
      -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
      -        parseFrom(java.io.InputStream input) throws java.io.IOException {
      -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseFrom(java.io.InputStream input)
      +        throws java.io.IOException {
      +      return com.google.protobuf.GeneratedMessageV3
      +          .parseWithIOException(PARSER, input);
           }
      -
      -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
      -        parseFrom(
      -            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      -            throws java.io.IOException {
      -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
      -          PARSER, input, extensionRegistry);
      +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseFrom(
      +        java.io.InputStream input,
      +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +        throws java.io.IOException {
      +      return com.google.protobuf.GeneratedMessageV3
      +          .parseWithIOException(PARSER, input, extensionRegistry);
           }
      -
      -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
      -        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
      -      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseDelimitedFrom(java.io.InputStream input)
      +        throws java.io.IOException {
      +      return com.google.protobuf.GeneratedMessageV3
      +          .parseDelimitedWithIOException(PARSER, input);
           }
      -
      -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
      -        parseDelimitedFrom(
      -            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      -            throws java.io.IOException {
      -      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
      -          PARSER, input, extensionRegistry);
      +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseDelimitedFrom(
      +        java.io.InputStream input,
      +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +        throws java.io.IOException {
      +      return com.google.protobuf.GeneratedMessageV3
      +          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
           }
      -
      -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
      -        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseFrom(
      +        com.google.protobuf.CodedInputStream input)
      +        throws java.io.IOException {
      +      return com.google.protobuf.GeneratedMessageV3
      +          .parseWithIOException(PARSER, input);
           }
      -
      -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
      -        parseFrom(
      -            com.google.protobuf.CodedInputStream input,
      -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      -            throws java.io.IOException {
      -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
      -          PARSER, input, extensionRegistry);
      +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseFrom(
      +        com.google.protobuf.CodedInputStream input,
      +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +        throws java.io.IOException {
      +      return com.google.protobuf.GeneratedMessageV3
      +          .parseWithIOException(PARSER, input, extensionRegistry);
           }
       
           @java.lang.Override
      -    public Builder newBuilderForType() {
      -      return newBuilder();
      -    }
      -
      +    public Builder newBuilderForType() { return newBuilder(); }
           public static Builder newBuilder() {
             return DEFAULT_INSTANCE.toBuilder();
           }
      -
      -    public static Builder newBuilder(
      -        com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult prototype) {
      +    public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult prototype) {
             return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
           }
      -
           @java.lang.Override
           public Builder toBuilder() {
      -      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
      +      return this == DEFAULT_INSTANCE
      +          ? new Builder() : new Builder().mergeFrom(this);
           }
       
           @java.lang.Override
      @@ -789,72 +718,66 @@ protected Builder newBuilderForType(
             return builder;
           }
           /**
      -     *
      -     *
            * 
            * PredictionResult represents the recommendation prediction results.
            * 
      * - * Protobuf type {@code - * google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult} + * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult) com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetItemMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 2: return internalGetMutableItemMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult - .class, - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult - .Builder.class); + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.class, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -865,23 +788,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult - build() { - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult result = - buildPartial(); + public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult build() { + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -889,11 +808,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult - buildPartial() { - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult result = - new com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult( - this); + public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult buildPartial() { + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult result = new com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.itemMetadata_ = internalGetItemMetadata(); @@ -906,61 +822,52 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult) - other); + if (other instanceof com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult) { + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult other) { + if (other == com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } - internalGetMutableItemMetadata().mergeFrom(other.internalGetItemMetadata()); + internalGetMutableItemMetadata().mergeFrom( + other.internalGetItemMetadata()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -976,14 +883,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult - parsedMessage = null; + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -992,25 +896,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object id_ = ""; /** - * - * *
              * ID of the recommended catalog item
              * 
      * * string id = 1; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -1019,21 +920,20 @@ public java.lang.String getId() { } } /** - * - * *
              * ID of the recommended catalog item
              * 
      * * string id = 1; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -1041,85 +941,75 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
              * ID of the recommended catalog item
              * 
      * * string id = 1; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { + public Builder setId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** - * - * *
              * ID of the recommended catalog item
              * 
      * * string id = 1; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
              * ID of the recommended catalog item
              * 
      * * string id = 1; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { + public Builder setIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; } + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> itemMetadata_; private com.google.protobuf.MapField - itemMetadata_; - - private com.google.protobuf.MapField - internalGetItemMetadata() { + internalGetItemMetadata() { if (itemMetadata_ == null) { return com.google.protobuf.MapField.emptyMapField( ItemMetadataDefaultEntryHolder.defaultEntry); } return itemMetadata_; } - private com.google.protobuf.MapField - internalGetMutableItemMetadata() { - onChanged(); - ; + internalGetMutableItemMetadata() { + onChanged();; if (itemMetadata_ == null) { - itemMetadata_ = - com.google.protobuf.MapField.newMapField(ItemMetadataDefaultEntryHolder.defaultEntry); + itemMetadata_ = com.google.protobuf.MapField.newMapField( + ItemMetadataDefaultEntryHolder.defaultEntry); } if (!itemMetadata_.isMutable()) { itemMetadata_ = itemMetadata_.copy(); @@ -1131,8 +1021,6 @@ public int getItemMetadataCount() { return internalGetItemMetadata().getMap().size(); } /** - * - * *
              * Additional item metadata / annotations.
              * Possible values:
      @@ -1144,22 +1032,22 @@ public int getItemMetadataCount() {
              *
              * map<string, .google.protobuf.Value> item_metadata = 2;
              */
      +
             @java.lang.Override
      -      public boolean containsItemMetadata(java.lang.String key) {
      -        if (key == null) {
      -          throw new NullPointerException("map key");
      -        }
      +      public boolean containsItemMetadata(
      +          java.lang.String key) {
      +        if (key == null) { throw new NullPointerException("map key"); }
               return internalGetItemMetadata().getMap().containsKey(key);
             }
      -      /** Use {@link #getItemMetadataMap()} instead. */
      +      /**
      +       * Use {@link #getItemMetadataMap()} instead.
      +       */
             @java.lang.Override
             @java.lang.Deprecated
             public java.util.Map getItemMetadata() {
               return getItemMetadataMap();
             }
             /**
      -       *
      -       *
              * 
              * Additional item metadata / annotations.
              * Possible values:
      @@ -1172,12 +1060,11 @@ public java.util.Map getItemMetadat
              * map<string, .google.protobuf.Value> item_metadata = 2;
              */
             @java.lang.Override
      +
             public java.util.Map getItemMetadataMap() {
               return internalGetItemMetadata().getMap();
             }
             /**
      -       *
      -       *
              * 
              * Additional item metadata / annotations.
              * Possible values:
      @@ -1190,18 +1077,16 @@ public java.util.Map getItemMetadat
              * map<string, .google.protobuf.Value> item_metadata = 2;
              */
             @java.lang.Override
      +
             public com.google.protobuf.Value getItemMetadataOrDefault(
      -          java.lang.String key, com.google.protobuf.Value defaultValue) {
      -        if (key == null) {
      -          throw new NullPointerException("map key");
      -        }
      +          java.lang.String key,
      +          com.google.protobuf.Value defaultValue) {
      +        if (key == null) { throw new NullPointerException("map key"); }
               java.util.Map map =
                   internalGetItemMetadata().getMap();
               return map.containsKey(key) ? map.get(key) : defaultValue;
             }
             /**
      -       *
      -       *
              * 
              * Additional item metadata / annotations.
              * Possible values:
      @@ -1214,10 +1099,10 @@ public com.google.protobuf.Value getItemMetadataOrDefault(
              * map<string, .google.protobuf.Value> item_metadata = 2;
              */
             @java.lang.Override
      -      public com.google.protobuf.Value getItemMetadataOrThrow(java.lang.String key) {
      -        if (key == null) {
      -          throw new NullPointerException("map key");
      -        }
      +
      +      public com.google.protobuf.Value getItemMetadataOrThrow(
      +          java.lang.String key) {
      +        if (key == null) { throw new NullPointerException("map key"); }
               java.util.Map map =
                   internalGetItemMetadata().getMap();
               if (!map.containsKey(key)) {
      @@ -1227,12 +1112,11 @@ public com.google.protobuf.Value getItemMetadataOrThrow(java.lang.String key) {
             }
       
             public Builder clearItemMetadata() {
      -        internalGetMutableItemMetadata().getMutableMap().clear();
      +        internalGetMutableItemMetadata().getMutableMap()
      +            .clear();
               return this;
             }
             /**
      -       *
      -       *
              * 
              * Additional item metadata / annotations.
              * Possible values:
      @@ -1244,21 +1128,23 @@ public Builder clearItemMetadata() {
              *
              * map<string, .google.protobuf.Value> item_metadata = 2;
              */
      -      public Builder removeItemMetadata(java.lang.String key) {
      -        if (key == null) {
      -          throw new NullPointerException("map key");
      -        }
      -        internalGetMutableItemMetadata().getMutableMap().remove(key);
      +
      +      public Builder removeItemMetadata(
      +          java.lang.String key) {
      +        if (key == null) { throw new NullPointerException("map key"); }
      +        internalGetMutableItemMetadata().getMutableMap()
      +            .remove(key);
               return this;
             }
      -      /** Use alternate mutation accessors instead. */
      +      /**
      +       * Use alternate mutation accessors instead.
      +       */
             @java.lang.Deprecated
      -      public java.util.Map getMutableItemMetadata() {
      +      public java.util.Map
      +      getMutableItemMetadata() {
               return internalGetMutableItemMetadata().getMutableMap();
             }
             /**
      -       *
      -       *
              * 
              * Additional item metadata / annotations.
              * Possible values:
      @@ -1270,20 +1156,19 @@ public java.util.Map getMutableItem
              *
              * map<string, .google.protobuf.Value> item_metadata = 2;
              */
      -      public Builder putItemMetadata(java.lang.String key, com.google.protobuf.Value value) {
      -        if (key == null) {
      -          throw new NullPointerException("map key");
      -        }
      +      public Builder putItemMetadata(
      +          java.lang.String key,
      +          com.google.protobuf.Value value) {
      +        if (key == null) { throw new NullPointerException("map key"); }
               if (value == null) {
      -          throw new NullPointerException("map value");
      -        }
      +  throw new NullPointerException("map value");
      +}
       
      -        internalGetMutableItemMetadata().getMutableMap().put(key, value);
      +        internalGetMutableItemMetadata().getMutableMap()
      +            .put(key, value);
               return this;
             }
             /**
      -       *
      -       *
              * 
              * Additional item metadata / annotations.
              * Possible values:
      @@ -1295,12 +1180,13 @@ public Builder putItemMetadata(java.lang.String key, com.google.protobuf.Value v
              *
              * map<string, .google.protobuf.Value> item_metadata = 2;
              */
      +
             public Builder putAllItemMetadata(
                 java.util.Map values) {
      -        internalGetMutableItemMetadata().getMutableMap().putAll(values);
      +        internalGetMutableItemMetadata().getMutableMap()
      +            .putAll(values);
               return this;
             }
      -
             @java.lang.Override
             public final Builder setUnknownFields(
                 final com.google.protobuf.UnknownFieldSet unknownFields) {
      @@ -1313,34 +1199,30 @@ public final Builder mergeUnknownFields(
               return super.mergeUnknownFields(unknownFields);
             }
       
      +
             // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult)
           }
       
           // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult)
      -    private static final com.google.cloud.recommendationengine.v1beta1.PredictResponse
      -            .PredictionResult
      -        DEFAULT_INSTANCE;
      -
      +    private static final com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult DEFAULT_INSTANCE;
           static {
      -      DEFAULT_INSTANCE =
      -          new com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult();
      +      DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult();
           }
       
      -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
      -        getDefaultInstance() {
      +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult getDefaultInstance() {
             return DEFAULT_INSTANCE;
           }
       
      -    private static final com.google.protobuf.Parser PARSER =
      -        new com.google.protobuf.AbstractParser() {
      -          @java.lang.Override
      -          public PredictionResult parsePartialFrom(
      -              com.google.protobuf.CodedInputStream input,
      -              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      -              throws com.google.protobuf.InvalidProtocolBufferException {
      -            return new PredictionResult(input, extensionRegistry);
      -          }
      -        };
      +    private static final com.google.protobuf.Parser
      +        PARSER = new com.google.protobuf.AbstractParser() {
      +      @java.lang.Override
      +      public PredictionResult parsePartialFrom(
      +          com.google.protobuf.CodedInputStream input,
      +          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +          throws com.google.protobuf.InvalidProtocolBufferException {
      +        return new PredictionResult(input, extensionRegistry);
      +      }
      +    };
       
           public static com.google.protobuf.Parser parser() {
             return PARSER;
      @@ -1352,110 +1234,80 @@ public com.google.protobuf.Parser getParserForType() {
           }
       
           @java.lang.Override
      -    public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
      -        getDefaultInstanceForType() {
      +    public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult getDefaultInstanceForType() {
             return DEFAULT_INSTANCE;
           }
      +
         }
       
         public static final int RESULTS_FIELD_NUMBER = 1;
      -  private java.util.List<
      -          com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult>
      -      results_;
      +  private java.util.List results_;
         /**
      -   *
      -   *
          * 
          * A list of recommended items. The order represents the ranking (from the
          * most relevant item to the least).
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ @java.lang.Override - public java.util.List< - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult> - getResultsList() { + public java.util.List getResultsList() { return results_; } /** - * - * *
          * A list of recommended items. The order represents the ranking (from the
          * most relevant item to the least).
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.recommendationengine.v1beta1.PredictResponse - .PredictionResultOrBuilder> + public java.util.List getResultsOrBuilderList() { return results_; } /** - * - * *
          * A list of recommended items. The order represents the ranking (from the
          * most relevant item to the least).
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ @java.lang.Override public int getResultsCount() { return results_.size(); } /** - * - * *
          * A list of recommended items. The order represents the ranking (from the
          * most relevant item to the least).
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult getResults( - int index) { + public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult getResults(int index) { return results_.get(index); } /** - * - * *
          * A list of recommended items. The order represents the ranking (from the
          * most relevant item to the least).
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder - getResultsOrBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder getResultsOrBuilder( + int index) { return results_.get(index); } public static final int RECOMMENDATION_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object recommendationToken_; /** - * - * *
          * A unique recommendation token. This should be included in the user event
          * logs resulting from this recommendation, which enables accurate attribution
      @@ -1463,7 +1315,6 @@ public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionR
          * 
      * * string recommendation_token = 2; - * * @return The recommendationToken. */ @java.lang.Override @@ -1472,15 +1323,14 @@ public java.lang.String getRecommendationToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recommendationToken_ = s; return s; } } /** - * - * *
          * A unique recommendation token. This should be included in the user event
          * logs resulting from this recommendation, which enables accurate attribution
      @@ -1488,15 +1338,16 @@ public java.lang.String getRecommendationToken() {
          * 
      * * string recommendation_token = 2; - * * @return The bytes for recommendationToken. */ @java.lang.Override - public com.google.protobuf.ByteString getRecommendationTokenBytes() { + public com.google.protobuf.ByteString + getRecommendationTokenBytes() { java.lang.Object ref = recommendationToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); recommendationToken_ = b; return b; } else { @@ -1507,42 +1358,34 @@ public com.google.protobuf.ByteString getRecommendationTokenBytes() { public static final int ITEMS_MISSING_IN_CATALOG_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList itemsMissingInCatalog_; /** - * - * *
          * IDs of items in the request that were missing from the catalog.
          * 
      * * repeated string items_missing_in_catalog = 3; - * * @return A list containing the itemsMissingInCatalog. */ - public com.google.protobuf.ProtocolStringList getItemsMissingInCatalogList() { + public com.google.protobuf.ProtocolStringList + getItemsMissingInCatalogList() { return itemsMissingInCatalog_; } /** - * - * *
          * IDs of items in the request that were missing from the catalog.
          * 
      * * repeated string items_missing_in_catalog = 3; - * * @return The count of itemsMissingInCatalog. */ public int getItemsMissingInCatalogCount() { return itemsMissingInCatalog_.size(); } /** - * - * *
          * IDs of items in the request that were missing from the catalog.
          * 
      * * repeated string items_missing_in_catalog = 3; - * * @param index The index of the element to return. * @return The itemsMissingInCatalog at the given index. */ @@ -1550,32 +1393,27 @@ public java.lang.String getItemsMissingInCatalog(int index) { return itemsMissingInCatalog_.get(index); } /** - * - * *
          * IDs of items in the request that were missing from the catalog.
          * 
      * * repeated string items_missing_in_catalog = 3; - * * @param index The index of the value to return. * @return The bytes of the itemsMissingInCatalog at the given index. */ - public com.google.protobuf.ByteString getItemsMissingInCatalogBytes(int index) { + public com.google.protobuf.ByteString + getItemsMissingInCatalogBytes(int index) { return itemsMissingInCatalog_.getByteString(index); } public static final int DRY_RUN_FIELD_NUMBER = 4; private boolean dryRun_; - /** - * - * + /** *
          * True if the dryRun property was set in the request.
          * 
      * * bool dry_run = 4; - * * @return The dryRun. */ @java.lang.Override @@ -1584,26 +1422,24 @@ public boolean getDryRun() { } public static final int METADATA_FIELD_NUMBER = 5; - private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.Value> defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); } - - private com.google.protobuf.MapField metadata_; - + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> metadata_; private com.google.protobuf.MapField - internalGetMetadata() { + internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } @@ -1612,30 +1448,28 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** - * - * *
          * Additional domain specific prediction response metadata.
          * 
      * * map<string, .google.protobuf.Value> metadata = 5; */ + @java.lang.Override - public boolean containsMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); } - /** Use {@link #getMetadataMap()} instead. */ + /** + * Use {@link #getMetadataMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** - * - * *
          * Additional domain specific prediction response metadata.
          * 
      @@ -1643,12 +1477,11 @@ public java.util.Map getMetadata() * map<string, .google.protobuf.Value> metadata = 5; */ @java.lang.Override + public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** - * - * *
          * Additional domain specific prediction response metadata.
          * 
      @@ -1656,17 +1489,16 @@ public java.util.Map getMetadataMap * map<string, .google.protobuf.Value> metadata = 5; */ @java.lang.Override + public com.google.protobuf.Value getMetadataOrDefault( - java.lang.String key, com.google.protobuf.Value defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); + java.lang.String key, + com.google.protobuf.Value defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
          * Additional domain specific prediction response metadata.
          * 
      @@ -1674,11 +1506,12 @@ public com.google.protobuf.Value getMetadataOrDefault( * map<string, .google.protobuf.Value> metadata = 5; */ @java.lang.Override - public com.google.protobuf.Value getMetadataOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); + + public com.google.protobuf.Value getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1688,15 +1521,12 @@ public com.google.protobuf.Value getMetadataOrThrow(java.lang.String key) { public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 6; private volatile java.lang.Object nextPageToken_; /** - * - * *
          * If empty, the list is complete. If nonempty, the token to pass to the next
          * request's PredictRequest.page_token.
          * 
      * * string next_page_token = 6; - * * @return The nextPageToken. */ @java.lang.Override @@ -1705,30 +1535,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
          * If empty, the list is complete. If nonempty, the token to pass to the next
          * request's PredictRequest.page_token.
          * 
      * * string next_page_token = 6; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1737,7 +1567,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1749,7 +1578,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(1, results_.get(i)); } @@ -1757,14 +1587,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 2, recommendationToken_); } for (int i = 0; i < itemsMissingInCatalog_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, itemsMissingInCatalog_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, itemsMissingInCatalog_.getRaw(i)); } if (dryRun_ != false) { output.writeBool(4, dryRun_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 5); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, nextPageToken_); } @@ -1778,7 +1611,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, results_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recommendationToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, recommendationToken_); @@ -1792,17 +1626,18 @@ public int getSerializedSize() { size += 1 * getItemsMissingInCatalogList().size(); } if (dryRun_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, dryRun_); - } - for (java.util.Map.Entry entry : - internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry metadata__ = - MetadataDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, metadata__); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, dryRun_); + } + for (java.util.Map.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, metadata__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, nextPageToken_); @@ -1815,20 +1650,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.PredictResponse)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.PredictResponse other = - (com.google.cloud.recommendationengine.v1beta1.PredictResponse) obj; - - if (!getResultsList().equals(other.getResultsList())) return false; - if (!getRecommendationToken().equals(other.getRecommendationToken())) return false; - if (!getItemsMissingInCatalogList().equals(other.getItemsMissingInCatalogList())) return false; - if (getDryRun() != other.getDryRun()) return false; - if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + com.google.cloud.recommendationengine.v1beta1.PredictResponse other = (com.google.cloud.recommendationengine.v1beta1.PredictResponse) obj; + + if (!getResultsList() + .equals(other.getResultsList())) return false; + if (!getRecommendationToken() + .equals(other.getRecommendationToken())) return false; + if (!getItemsMissingInCatalogList() + .equals(other.getItemsMissingInCatalogList())) return false; + if (getDryRun() + != other.getDryRun()) return false; + if (!internalGetMetadata().equals( + other.internalGetMetadata())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1851,7 +1691,8 @@ public int hashCode() { hash = (53 * hash) + getItemsMissingInCatalogList().hashCode(); } hash = (37 * hash) + DRY_RUN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDryRun()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDryRun()); if (!internalGetMetadata().getMap().isEmpty()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetMetadata().hashCode(); @@ -1864,147 +1705,139 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.PredictResponse prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.PredictResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Response message for predict method.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PredictResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.PredictResponse) com.google.cloud.recommendationengine.v1beta1.PredictResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 5: return internalGetMutableMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PredictResponse.class, - com.google.cloud.recommendationengine.v1beta1.PredictResponse.Builder.class); + com.google.cloud.recommendationengine.v1beta1.PredictResponse.class, com.google.cloud.recommendationengine.v1beta1.PredictResponse.Builder.class); } // Construct using com.google.cloud.recommendationengine.v1beta1.PredictResponse.newBuilder() @@ -2012,17 +1845,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResultsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2045,14 +1878,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictResponse - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.PredictResponse getDefaultInstanceForType() { return com.google.cloud.recommendationengine.v1beta1.PredictResponse.getDefaultInstance(); } @@ -2067,8 +1899,7 @@ public com.google.cloud.recommendationengine.v1beta1.PredictResponse build() { @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.PredictResponse buildPartial() { - com.google.cloud.recommendationengine.v1beta1.PredictResponse result = - new com.google.cloud.recommendationengine.v1beta1.PredictResponse(this); + com.google.cloud.recommendationengine.v1beta1.PredictResponse result = new com.google.cloud.recommendationengine.v1beta1.PredictResponse(this); int from_bitField0_ = bitField0_; if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -2097,39 +1928,38 @@ public com.google.cloud.recommendationengine.v1beta1.PredictResponse buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.PredictResponse) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PredictResponse) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PredictResponse)other); } else { super.mergeFrom(other); return this; @@ -2137,9 +1967,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PredictResponse other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.PredictResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.recommendationengine.v1beta1.PredictResponse.getDefaultInstance()) return this; if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { @@ -2158,10 +1986,9 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PredictRe resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); - resultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResultsFieldBuilder() - : null; + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultsFieldBuilder() : null; } else { resultsBuilder_.addAllMessages(other.results_); } @@ -2184,7 +2011,8 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PredictRe if (other.getDryRun() != false) { setDryRun(other.getDryRun()); } - internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; onChanged(); @@ -2208,9 +2036,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.PredictResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.PredictResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2219,44 +2045,29 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List< - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult> - results_ = java.util.Collections.emptyList(); - + private java.util.List results_ = + java.util.Collections.emptyList(); private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - results_ = - new java.util.ArrayList< - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult>( - results_); + results_ = new java.util.ArrayList(results_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult, - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder, - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder> - resultsBuilder_; + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder> resultsBuilder_; /** - * - * *
            * A list of recommended items. The order represents the ranking (from the
            * most relevant item to the least).
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ - public java.util.List< - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult> - getResultsList() { + public java.util.List getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { @@ -2264,16 +2075,12 @@ private void ensureResultsIsMutable() { } } /** - * - * *
            * A list of recommended items. The order represents the ranking (from the
            * most relevant item to the least).
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ public int getResultsCount() { if (resultsBuilder_ == null) { @@ -2283,19 +2090,14 @@ public int getResultsCount() { } } /** - * - * *
            * A list of recommended items. The order represents the ranking (from the
            * most relevant item to the least).
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ - public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult - getResults(int index) { + public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult getResults(int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { @@ -2303,20 +2105,15 @@ public int getResultsCount() { } } /** - * - * *
            * A list of recommended items. The order represents the ranking (from the
            * most relevant item to the least).
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ public Builder setResults( - int index, - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult value) { + int index, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2330,21 +2127,15 @@ public Builder setResults( return this; } /** - * - * *
            * A list of recommended items. The order represents the ranking (from the
            * most relevant item to the least).
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ public Builder setResults( - int index, - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder - builderForValue) { + int index, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); @@ -2355,19 +2146,14 @@ public Builder setResults( return this; } /** - * - * *
            * A list of recommended items. The order represents the ranking (from the
            * most relevant item to the least).
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ - public Builder addResults( - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult value) { + public Builder addResults(com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2381,20 +2167,15 @@ public Builder addResults( return this; } /** - * - * *
            * A list of recommended items. The order represents the ranking (from the
            * most relevant item to the least).
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ public Builder addResults( - int index, - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult value) { + int index, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2408,20 +2189,15 @@ public Builder addResults( return this; } /** - * - * *
            * A list of recommended items. The order represents the ranking (from the
            * most relevant item to the least).
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ public Builder addResults( - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder - builderForValue) { + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(builderForValue.build()); @@ -2432,21 +2208,15 @@ public Builder addResults( return this; } /** - * - * *
            * A list of recommended items. The order represents the ranking (from the
            * most relevant item to the least).
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ public Builder addResults( - int index, - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder - builderForValue) { + int index, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); @@ -2457,25 +2227,19 @@ public Builder addResults( return this; } /** - * - * *
            * A list of recommended items. The order represents the ranking (from the
            * most relevant item to the least).
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ public Builder addAllResults( - java.lang.Iterable< - ? extends - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult> - values) { + java.lang.Iterable values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); @@ -2483,16 +2247,12 @@ public Builder addAllResults( return this; } /** - * - * *
            * A list of recommended items. The order represents the ranking (from the
            * most relevant item to the least).
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ public Builder clearResults() { if (resultsBuilder_ == null) { @@ -2505,16 +2265,12 @@ public Builder clearResults() { return this; } /** - * - * *
            * A list of recommended items. The order represents the ranking (from the
            * most relevant item to the least).
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ public Builder removeResults(int index) { if (resultsBuilder_ == null) { @@ -2527,58 +2283,42 @@ public Builder removeResults(int index) { return this; } /** - * - * *
            * A list of recommended items. The order represents the ranking (from the
            * most relevant item to the least).
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ - public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder - getResultsBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder getResultsBuilder( + int index) { return getResultsFieldBuilder().getBuilder(index); } /** - * - * *
            * A list of recommended items. The order represents the ranking (from the
            * most relevant item to the least).
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ - public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder - getResultsOrBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder getResultsOrBuilder( + int index) { if (resultsBuilder_ == null) { - return results_.get(index); - } else { + return results_.get(index); } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
            * A list of recommended items. The order represents the ranking (from the
            * most relevant item to the least).
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * - */ - public java.util.List< - ? extends - com.google.cloud.recommendationengine.v1beta1.PredictResponse - .PredictionResultOrBuilder> - getResultsOrBuilderList() { + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + */ + public java.util.List + getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { @@ -2586,76 +2326,52 @@ public Builder removeResults(int index) { } } /** - * - * *
            * A list of recommended items. The order represents the ranking (from the
            * most relevant item to the least).
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ - public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder - addResultsBuilder() { - return getResultsFieldBuilder() - .addBuilder( - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult - .getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder addResultsBuilder() { + return getResultsFieldBuilder().addBuilder( + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.getDefaultInstance()); } /** - * - * *
            * A list of recommended items. The order represents the ranking (from the
            * most relevant item to the least).
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ - public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder - addResultsBuilder(int index) { - return getResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult - .getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder addResultsBuilder( + int index) { + return getResultsFieldBuilder().addBuilder( + index, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.getDefaultInstance()); } /** - * - * *
            * A list of recommended items. The order represents the ranking (from the
            * most relevant item to the least).
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ - public java.util.List< - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder> - getResultsBuilderList() { + public java.util.List + getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult, - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder, - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder> + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { - resultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult, - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult - .Builder, - com.google.cloud.recommendationengine.v1beta1.PredictResponse - .PredictionResultOrBuilder>( - results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder>( + results_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); results_ = null; } return resultsBuilder_; @@ -2663,8 +2379,6 @@ public Builder removeResults(int index) { private java.lang.Object recommendationToken_ = ""; /** - * - * *
            * A unique recommendation token. This should be included in the user event
            * logs resulting from this recommendation, which enables accurate attribution
      @@ -2672,13 +2386,13 @@ public Builder removeResults(int index) {
            * 
      * * string recommendation_token = 2; - * * @return The recommendationToken. */ public java.lang.String getRecommendationToken() { java.lang.Object ref = recommendationToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recommendationToken_ = s; return s; @@ -2687,8 +2401,6 @@ public java.lang.String getRecommendationToken() { } } /** - * - * *
            * A unique recommendation token. This should be included in the user event
            * logs resulting from this recommendation, which enables accurate attribution
      @@ -2696,14 +2408,15 @@ public java.lang.String getRecommendationToken() {
            * 
      * * string recommendation_token = 2; - * * @return The bytes for recommendationToken. */ - public com.google.protobuf.ByteString getRecommendationTokenBytes() { + public com.google.protobuf.ByteString + getRecommendationTokenBytes() { java.lang.Object ref = recommendationToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); recommendationToken_ = b; return b; } else { @@ -2711,8 +2424,6 @@ public com.google.protobuf.ByteString getRecommendationTokenBytes() { } } /** - * - * *
            * A unique recommendation token. This should be included in the user event
            * logs resulting from this recommendation, which enables accurate attribution
      @@ -2720,22 +2431,20 @@ public com.google.protobuf.ByteString getRecommendationTokenBytes() {
            * 
      * * string recommendation_token = 2; - * * @param value The recommendationToken to set. * @return This builder for chaining. */ - public Builder setRecommendationToken(java.lang.String value) { + public Builder setRecommendationToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + recommendationToken_ = value; onChanged(); return this; } /** - * - * *
            * A unique recommendation token. This should be included in the user event
            * logs resulting from this recommendation, which enables accurate attribution
      @@ -2743,18 +2452,15 @@ public Builder setRecommendationToken(java.lang.String value) {
            * 
      * * string recommendation_token = 2; - * * @return This builder for chaining. */ public Builder clearRecommendationToken() { - + recommendationToken_ = getDefaultInstance().getRecommendationToken(); onChanged(); return this; } /** - * - * *
            * A unique recommendation token. This should be included in the user event
            * logs resulting from this recommendation, which enables accurate attribution
      @@ -2762,68 +2468,57 @@ public Builder clearRecommendationToken() {
            * 
      * * string recommendation_token = 2; - * * @param value The bytes for recommendationToken to set. * @return This builder for chaining. */ - public Builder setRecommendationTokenBytes(com.google.protobuf.ByteString value) { + public Builder setRecommendationTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + recommendationToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList itemsMissingInCatalog_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList itemsMissingInCatalog_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureItemsMissingInCatalogIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - itemsMissingInCatalog_ = - new com.google.protobuf.LazyStringArrayList(itemsMissingInCatalog_); + itemsMissingInCatalog_ = new com.google.protobuf.LazyStringArrayList(itemsMissingInCatalog_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
            * IDs of items in the request that were missing from the catalog.
            * 
      * * repeated string items_missing_in_catalog = 3; - * * @return A list containing the itemsMissingInCatalog. */ - public com.google.protobuf.ProtocolStringList getItemsMissingInCatalogList() { + public com.google.protobuf.ProtocolStringList + getItemsMissingInCatalogList() { return itemsMissingInCatalog_.getUnmodifiableView(); } /** - * - * *
            * IDs of items in the request that were missing from the catalog.
            * 
      * * repeated string items_missing_in_catalog = 3; - * * @return The count of itemsMissingInCatalog. */ public int getItemsMissingInCatalogCount() { return itemsMissingInCatalog_.size(); } /** - * - * *
            * IDs of items in the request that were missing from the catalog.
            * 
      * * repeated string items_missing_in_catalog = 3; - * * @param index The index of the element to return. * @return The itemsMissingInCatalog at the given index. */ @@ -2831,90 +2526,80 @@ public java.lang.String getItemsMissingInCatalog(int index) { return itemsMissingInCatalog_.get(index); } /** - * - * *
            * IDs of items in the request that were missing from the catalog.
            * 
      * * repeated string items_missing_in_catalog = 3; - * * @param index The index of the value to return. * @return The bytes of the itemsMissingInCatalog at the given index. */ - public com.google.protobuf.ByteString getItemsMissingInCatalogBytes(int index) { + public com.google.protobuf.ByteString + getItemsMissingInCatalogBytes(int index) { return itemsMissingInCatalog_.getByteString(index); } /** - * - * *
            * IDs of items in the request that were missing from the catalog.
            * 
      * * repeated string items_missing_in_catalog = 3; - * * @param index The index to set the value at. * @param value The itemsMissingInCatalog to set. * @return This builder for chaining. */ - public Builder setItemsMissingInCatalog(int index, java.lang.String value) { + public Builder setItemsMissingInCatalog( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureItemsMissingInCatalogIsMutable(); + throw new NullPointerException(); + } + ensureItemsMissingInCatalogIsMutable(); itemsMissingInCatalog_.set(index, value); onChanged(); return this; } /** - * - * *
            * IDs of items in the request that were missing from the catalog.
            * 
      * * repeated string items_missing_in_catalog = 3; - * * @param value The itemsMissingInCatalog to add. * @return This builder for chaining. */ - public Builder addItemsMissingInCatalog(java.lang.String value) { + public Builder addItemsMissingInCatalog( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureItemsMissingInCatalogIsMutable(); + throw new NullPointerException(); + } + ensureItemsMissingInCatalogIsMutable(); itemsMissingInCatalog_.add(value); onChanged(); return this; } /** - * - * *
            * IDs of items in the request that were missing from the catalog.
            * 
      * * repeated string items_missing_in_catalog = 3; - * * @param values The itemsMissingInCatalog to add. * @return This builder for chaining. */ - public Builder addAllItemsMissingInCatalog(java.lang.Iterable values) { + public Builder addAllItemsMissingInCatalog( + java.lang.Iterable values) { ensureItemsMissingInCatalogIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, itemsMissingInCatalog_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, itemsMissingInCatalog_); onChanged(); return this; } /** - * - * *
            * IDs of items in the request that were missing from the catalog.
            * 
      * * repeated string items_missing_in_catalog = 3; - * * @return This builder for chaining. */ public Builder clearItemsMissingInCatalog() { @@ -2924,38 +2609,33 @@ public Builder clearItemsMissingInCatalog() { return this; } /** - * - * *
            * IDs of items in the request that were missing from the catalog.
            * 
      * * repeated string items_missing_in_catalog = 3; - * * @param value The bytes of the itemsMissingInCatalog to add. * @return This builder for chaining. */ - public Builder addItemsMissingInCatalogBytes(com.google.protobuf.ByteString value) { + public Builder addItemsMissingInCatalogBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureItemsMissingInCatalogIsMutable(); itemsMissingInCatalog_.add(value); onChanged(); return this; } - private boolean dryRun_; + private boolean dryRun_ ; /** - * - * *
            * True if the dryRun property was set in the request.
            * 
      * * bool dry_run = 4; - * * @return The dryRun. */ @java.lang.Override @@ -2963,58 +2643,51 @@ public boolean getDryRun() { return dryRun_; } /** - * - * *
            * True if the dryRun property was set in the request.
            * 
      * * bool dry_run = 4; - * * @param value The dryRun to set. * @return This builder for chaining. */ public Builder setDryRun(boolean value) { - + dryRun_ = value; onChanged(); return this; } /** - * - * *
            * True if the dryRun property was set in the request.
            * 
      * * bool dry_run = 4; - * * @return This builder for chaining. */ public Builder clearDryRun() { - + dryRun_ = false; onChanged(); return this; } - private com.google.protobuf.MapField metadata_; - + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.Value> metadata_; private com.google.protobuf.MapField - internalGetMetadata() { + internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } - private com.google.protobuf.MapField - internalGetMutableMetadata() { - onChanged(); - ; + internalGetMutableMetadata() { + onChanged();; if (metadata_ == null) { - metadata_ = - com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); @@ -3026,30 +2699,28 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** - * - * *
            * Additional domain specific prediction response metadata.
            * 
      * * map<string, .google.protobuf.Value> metadata = 5; */ + @java.lang.Override - public boolean containsMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); } - /** Use {@link #getMetadataMap()} instead. */ + /** + * Use {@link #getMetadataMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** - * - * *
            * Additional domain specific prediction response metadata.
            * 
      @@ -3057,12 +2728,11 @@ public java.util.Map getMetadata() * map<string, .google.protobuf.Value> metadata = 5; */ @java.lang.Override + public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** - * - * *
            * Additional domain specific prediction response metadata.
            * 
      @@ -3070,18 +2740,16 @@ public java.util.Map getMetadataMap * map<string, .google.protobuf.Value> metadata = 5; */ @java.lang.Override + public com.google.protobuf.Value getMetadataOrDefault( - java.lang.String key, com.google.protobuf.Value defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.protobuf.Value defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
            * Additional domain specific prediction response metadata.
            * 
      @@ -3089,10 +2757,10 @@ public com.google.protobuf.Value getMetadataOrDefault( * map<string, .google.protobuf.Value> metadata = 5; */ @java.lang.Override - public com.google.protobuf.Value getMetadataOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + + public com.google.protobuf.Value getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { @@ -3102,82 +2770,82 @@ public com.google.protobuf.Value getMetadataOrThrow(java.lang.String key) { } public Builder clearMetadata() { - internalGetMutableMetadata().getMutableMap().clear(); + internalGetMutableMetadata().getMutableMap() + .clear(); return this; } /** - * - * *
            * Additional domain specific prediction response metadata.
            * 
      * * map<string, .google.protobuf.Value> metadata = 5; */ - public Builder removeMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableMetadata().getMutableMap().remove(key); + + public Builder removeMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableMetadata().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableMetadata() { + public java.util.Map + getMutableMetadata() { return internalGetMutableMetadata().getMutableMap(); } /** - * - * *
            * Additional domain specific prediction response metadata.
            * 
      * * map<string, .google.protobuf.Value> metadata = 5; */ - public Builder putMetadata(java.lang.String key, com.google.protobuf.Value value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder putMetadata( + java.lang.String key, + com.google.protobuf.Value value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableMetadata().getMutableMap().put(key, value); + internalGetMutableMetadata().getMutableMap() + .put(key, value); return this; } /** - * - * *
            * Additional domain specific prediction response metadata.
            * 
      * * map<string, .google.protobuf.Value> metadata = 5; */ + public Builder putAllMetadata( java.util.Map values) { - internalGetMutableMetadata().getMutableMap().putAll(values); + internalGetMutableMetadata().getMutableMap() + .putAll(values); return this; } private java.lang.Object nextPageToken_ = ""; /** - * - * *
            * If empty, the list is complete. If nonempty, the token to pass to the next
            * request's PredictRequest.page_token.
            * 
      * * string next_page_token = 6; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -3186,22 +2854,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
            * If empty, the list is complete. If nonempty, the token to pass to the next
            * request's PredictRequest.page_token.
            * 
      * * string next_page_token = 6; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -3209,71 +2876,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
            * If empty, the list is complete. If nonempty, the token to pass to the next
            * request's PredictRequest.page_token.
            * 
      * * string next_page_token = 6; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
            * If empty, the list is complete. If nonempty, the token to pass to the next
            * request's PredictRequest.page_token.
            * 
      * * string next_page_token = 6; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
            * If empty, the list is complete. If nonempty, the token to pass to the next
            * request's PredictRequest.page_token.
            * 
      * * string next_page_token = 6; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3283,13 +2943,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.PredictResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.PredictResponse) - private static final com.google.cloud.recommendationengine.v1beta1.PredictResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.PredictResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.PredictResponse(); } @@ -3298,16 +2957,16 @@ public static com.google.cloud.recommendationengine.v1beta1.PredictResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredictResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PredictResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PredictResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PredictResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3322,4 +2981,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.recommendationengine.v1beta1.PredictResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponseOrBuilder.java index 6ddb53b2..d569eb7b 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponseOrBuilder.java @@ -1,104 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/prediction_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface PredictResponseOrBuilder - extends +public interface PredictResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.PredictResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * A list of recommended items. The order represents the ranking (from the
          * most relevant item to the least).
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ - java.util.List + java.util.List getResultsList(); /** - * - * *
          * A list of recommended items. The order represents the ranking (from the
          * most relevant item to the least).
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult getResults( - int index); + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult getResults(int index); /** - * - * *
          * A list of recommended items. The order represents the ranking (from the
          * most relevant item to the least).
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ int getResultsCount(); /** - * - * *
          * A list of recommended items. The order represents the ranking (from the
          * most relevant item to the least).
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ - java.util.List< - ? extends - com.google.cloud.recommendationengine.v1beta1.PredictResponse - .PredictionResultOrBuilder> + java.util.List getResultsOrBuilderList(); /** - * - * *
          * A list of recommended items. The order represents the ranking (from the
          * most relevant item to the least).
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; */ - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder - getResultsOrBuilder(int index); + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder getResultsOrBuilder( + int index); /** - * - * *
          * A unique recommendation token. This should be included in the user event
          * logs resulting from this recommendation, which enables accurate attribution
      @@ -106,13 +64,10 @@ com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult g
          * 
      * * string recommendation_token = 2; - * * @return The recommendationToken. */ java.lang.String getRecommendationToken(); /** - * - * *
          * A unique recommendation token. This should be included in the user event
          * logs resulting from this recommendation, which enables accurate attribution
      @@ -120,78 +75,63 @@ com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult g
          * 
      * * string recommendation_token = 2; - * * @return The bytes for recommendationToken. */ - com.google.protobuf.ByteString getRecommendationTokenBytes(); + com.google.protobuf.ByteString + getRecommendationTokenBytes(); /** - * - * *
          * IDs of items in the request that were missing from the catalog.
          * 
      * * repeated string items_missing_in_catalog = 3; - * * @return A list containing the itemsMissingInCatalog. */ - java.util.List getItemsMissingInCatalogList(); + java.util.List + getItemsMissingInCatalogList(); /** - * - * *
          * IDs of items in the request that were missing from the catalog.
          * 
      * * repeated string items_missing_in_catalog = 3; - * * @return The count of itemsMissingInCatalog. */ int getItemsMissingInCatalogCount(); /** - * - * *
          * IDs of items in the request that were missing from the catalog.
          * 
      * * repeated string items_missing_in_catalog = 3; - * * @param index The index of the element to return. * @return The itemsMissingInCatalog at the given index. */ java.lang.String getItemsMissingInCatalog(int index); /** - * - * *
          * IDs of items in the request that were missing from the catalog.
          * 
      * * repeated string items_missing_in_catalog = 3; - * * @param index The index of the value to return. * @return The bytes of the itemsMissingInCatalog at the given index. */ - com.google.protobuf.ByteString getItemsMissingInCatalogBytes(int index); + com.google.protobuf.ByteString + getItemsMissingInCatalogBytes(int index); /** - * - * *
          * True if the dryRun property was set in the request.
          * 
      * * bool dry_run = 4; - * * @return The dryRun. */ boolean getDryRun(); /** - * - * *
          * Additional domain specific prediction response metadata.
          * 
      @@ -200,31 +140,30 @@ com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult g */ int getMetadataCount(); /** - * - * *
          * Additional domain specific prediction response metadata.
          * 
      * * map<string, .google.protobuf.Value> metadata = 5; */ - boolean containsMetadata(java.lang.String key); - /** Use {@link #getMetadataMap()} instead. */ + boolean containsMetadata( + java.lang.String key); + /** + * Use {@link #getMetadataMap()} instead. + */ @java.lang.Deprecated - java.util.Map getMetadata(); + java.util.Map + getMetadata(); /** - * - * *
          * Additional domain specific prediction response metadata.
          * 
      * * map<string, .google.protobuf.Value> metadata = 5; */ - java.util.Map getMetadataMap(); + java.util.Map + getMetadataMap(); /** - * - * *
          * Additional domain specific prediction response metadata.
          * 
      @@ -233,45 +172,40 @@ com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult g */ /* nullable */ - com.google.protobuf.Value getMetadataOrDefault( +com.google.protobuf.Value getMetadataOrDefault( java.lang.String key, /* nullable */ - com.google.protobuf.Value defaultValue); +com.google.protobuf.Value defaultValue); /** - * - * *
          * Additional domain specific prediction response metadata.
          * 
      * * map<string, .google.protobuf.Value> metadata = 5; */ - com.google.protobuf.Value getMetadataOrThrow(java.lang.String key); + + com.google.protobuf.Value getMetadataOrThrow( + java.lang.String key); /** - * - * *
          * If empty, the list is complete. If nonempty, the token to pass to the next
          * request's PredictRequest.page_token.
          * 
      * * string next_page_token = 6; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
          * If empty, the list is complete. If nonempty, the token to pass to the next
          * request's PredictRequest.page_token.
          * 
      * * string next_page_token = 6; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistration.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistration.java similarity index 57% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistration.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistration.java index 675e00e7..4cb32000 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistration.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistration.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Registered Api Key.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration} */ -public final class PredictionApiKeyRegistration extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PredictionApiKeyRegistration extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) PredictionApiKeyRegistrationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PredictionApiKeyRegistration.newBuilder() to construct. private PredictionApiKeyRegistration(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PredictionApiKeyRegistration() { apiKey_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PredictionApiKeyRegistration(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PredictionApiKeyRegistration( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private PredictionApiKeyRegistration( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - apiKey_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + apiKey_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,40 +73,34 @@ private PredictionApiKeyRegistration( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.class, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder - .class); + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.class, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder.class); } public static final int API_KEY_FIELD_NUMBER = 1; private volatile java.lang.Object apiKey_; /** - * - * *
          * The API key.
          * 
      * * string api_key = 1; - * * @return The apiKey. */ @java.lang.Override @@ -133,29 +109,29 @@ public java.lang.String getApiKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiKey_ = s; return s; } } /** - * - * *
          * The API key.
          * 
      * * string api_key = 1; - * * @return The bytes for apiKey. */ @java.lang.Override - public com.google.protobuf.ByteString getApiKeyBytes() { + public com.google.protobuf.ByteString + getApiKeyBytes() { java.lang.Object ref = apiKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiKey_ = b; return b; } else { @@ -164,7 +140,6 @@ public com.google.protobuf.ByteString getApiKeyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiKey_); } @@ -200,16 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration)) { + if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration other = - (com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) obj; + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration other = (com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) obj; - if (!getApiKey().equals(other.getApiKey())) return false; + if (!getApiKey() + .equals(other.getApiKey())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,152 +203,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Registered Api Key.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.class, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder - .class); + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.class, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -383,22 +341,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.getDefaultInstance(); } @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration build() { - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration result = - buildPartial(); + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -406,10 +361,8 @@ public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistratio } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - buildPartial() { - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration result = - new com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration(this); + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration buildPartial() { + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration result = new com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration(this); result.apiKey_ = apiKey_; onBuilt(); return result; @@ -419,52 +372,46 @@ public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistratio public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) other); + if (other instanceof com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) { + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration other) { + if (other == com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.getDefaultInstance()) return this; if (!other.getApiKey().isEmpty()) { apiKey_ = other.apiKey_; onChanged(); @@ -484,14 +431,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parsedMessage = - null; + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -503,20 +447,18 @@ public Builder mergeFrom( private java.lang.Object apiKey_ = ""; /** - * - * *
            * The API key.
            * 
      * * string api_key = 1; - * * @return The apiKey. */ public java.lang.String getApiKey() { java.lang.Object ref = apiKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiKey_ = s; return s; @@ -525,21 +467,20 @@ public java.lang.String getApiKey() { } } /** - * - * *
            * The API key.
            * 
      * * string api_key = 1; - * * @return The bytes for apiKey. */ - public com.google.protobuf.ByteString getApiKeyBytes() { + public com.google.protobuf.ByteString + getApiKeyBytes() { java.lang.Object ref = apiKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiKey_ = b; return b; } else { @@ -547,68 +488,61 @@ public com.google.protobuf.ByteString getApiKeyBytes() { } } /** - * - * *
            * The API key.
            * 
      * * string api_key = 1; - * * @param value The apiKey to set. * @return This builder for chaining. */ - public Builder setApiKey(java.lang.String value) { + public Builder setApiKey( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiKey_ = value; onChanged(); return this; } /** - * - * *
            * The API key.
            * 
      * * string api_key = 1; - * * @return This builder for chaining. */ public Builder clearApiKey() { - + apiKey_ = getDefaultInstance().getApiKey(); onChanged(); return this; } /** - * - * *
            * The API key.
            * 
      * * string api_key = 1; - * * @param value The bytes for apiKey to set. * @return This builder for chaining. */ - public Builder setApiKeyBytes(com.google.protobuf.ByteString value) { + public Builder setApiKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiKey_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -618,33 +552,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) - private static final com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration(); + DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration(); } - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredictionApiKeyRegistration parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PredictionApiKeyRegistration(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PredictionApiKeyRegistration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PredictionApiKeyRegistration(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -656,8 +587,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationName.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationName.java similarity index 100% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationOrBuilder.java new file mode 100644 index 00000000..a9b801ff --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public interface PredictionApiKeyRegistrationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * The API key.
      +   * 
      + * + * string api_key = 1; + * @return The apiKey. + */ + java.lang.String getApiKey(); + /** + *
      +   * The API key.
      +   * 
      + * + * string api_key = 1; + * @return The bytes for apiKey. + */ + com.google.protobuf.ByteString + getApiKeyBytes(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApikeyRegistryService.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApikeyRegistryService.java new file mode 100644 index 00000000..7a1b7c60 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApikeyRegistryService.java @@ -0,0 +1,173 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public final class PredictionApikeyRegistryService { + private PredictionApikeyRegistryService() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nRgoogle/cloud/recommendationengine/v1be" + + "ta1/prediction_apikey_registry_service.p" + + "roto\022)google.cloud.recommendationengine." + + "v1beta1\032\034google/api/annotations.proto\032\037g" + + "oogle/api/field_behavior.proto\032\031google/a" + + "pi/resource.proto\032\033google/protobuf/empty" + + ".proto\032\027google/api/client.proto\032Ngoogle/" + + "cloud/recommendationengine/v1beta1/recom" + + "mendationengine_resources.proto\"/\n\034Predi" + + "ctionApiKeyRegistration\022\017\n\007api_key\030\001 \001(\t" + + "\"\352\001\n)CreatePredictionApiKeyRegistrationR" + + "equest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.recommen" + + "dationengine.googleapis.com/EventStore\022u" + + "\n\037prediction_api_key_registration\030\002 \001(\0132" + + "G.google.cloud.recommendationengine.v1be" + + "ta1.PredictionApiKeyRegistrationB\003\340A\002\"\243\001" + + "\n(ListPredictionApiKeyRegistrationsReque" + + "st\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.recommendati" + + "onengine.googleapis.com/EventStore\022\026\n\tpa" + + "ge_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003" + + "\340A\001\"\267\001\n)ListPredictionApiKeyRegistration" + + "sResponse\022q\n prediction_api_key_registra" + + "tions\030\001 \003(\0132G.google.cloud.recommendatio" + + "nengine.v1beta1.PredictionApiKeyRegistra" + + "tion\022\027\n\017next_page_token\030\002 \001(\t\"\203\001\n)Delete" + + "PredictionApiKeyRegistrationRequest\022V\n\004n" + + "ame\030\001 \001(\tBH\340A\002\372AB\n@recommendationengine." + + "googleapis.com/PredictionApiKeyRegistrat" + + "ion2\227\010\n\030PredictionApiKeyRegistry\022\331\002\n\"Cre" + + "atePredictionApiKeyRegistration\022T.google" + + ".cloud.recommendationengine.v1beta1.Crea" + + "tePredictionApiKeyRegistrationRequest\032G." + + "google.cloud.recommendationengine.v1beta" + + "1.PredictionApiKeyRegistration\"\223\001\202\323\344\223\002d\"" + + "_/v1beta1/{parent=projects/*/locations/*" + + "/catalogs/*/eventStores/*}/predictionApi" + + "KeyRegistrations:\001*\332A&parent,prediction_" + + "api_key_registration\022\300\002\n!ListPredictionA" + + "piKeyRegistrations\022S.google.cloud.recomm" + + "endationengine.v1beta1.ListPredictionApi" + + "KeyRegistrationsRequest\032T.google.cloud.r" + + "ecommendationengine.v1beta1.ListPredicti" + + "onApiKeyRegistrationsResponse\"p\202\323\344\223\002a\022_/" + + "v1beta1/{parent=projects/*/locations/*/c" + + "atalogs/*/eventStores/*}/predictionApiKe" + + "yRegistrations\332A\006parent\022\202\002\n\"DeletePredic" + + "tionApiKeyRegistration\022T.google.cloud.re" + + "commendationengine.v1beta1.DeletePredict" + + "ionApiKeyRegistrationRequest\032\026.google.pr" + + "otobuf.Empty\"n\202\323\344\223\002a*_/v1beta1/{name=pro" + + "jects/*/locations/*/catalogs/*/eventStor" + + "es/*/predictionApiKeyRegistrations/*}\332A\004" + + "name\032W\312A#recommendationengine.googleapis" + + ".com\322A.https://www.googleapis.com/auth/c" + + "loud-platformB\237\002\n-com.google.cloud.recom" + + "mendationengine.v1beta1P\001Z]google.golang" + + ".org/genproto/googleapis/cloud/recommend" + + "ationengine/v1beta1;recommendationengine" + + "\242\002\005RECAI\252\002)Google.Cloud.RecommendationEn" + + "gine.V1Beta1\312\002)Google\\Cloud\\Recommendati" + + "onEngine\\V1beta1\352\002,Google::Cloud::Recomm" + + "endationEngine::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources.getDescriptor(), + }); + internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor, + new java.lang.String[] { "ApiKey", }); + internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor, + new java.lang.String[] { "Parent", "PredictionApiKeyRegistration", }); + internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor, + new java.lang.String[] { "PredictionApiKeyRegistrations", "NextPageToken", }); + internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor, + new java.lang.String[] { "Name", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceOuterClass.java new file mode 100644 index 00000000..54a93772 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceOuterClass.java @@ -0,0 +1,187 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/prediction_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public final class PredictionServiceOuterClass { + private PredictionServiceOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nBgoogle/cloud/recommendationengine/v1be" + + "ta1/prediction_service.proto\022)google.clo" + + "ud.recommendationengine.v1beta1\032\034google/" + + "api/annotations.proto\032\037google/api/field_" + + "behavior.proto\032\031google/api/resource.prot" + + "o\032:google/cloud/recommendationengine/v1b" + + "eta1/user_event.proto\032\034google/protobuf/s" + + "truct.proto\032\027google/api/client.proto\"\256\004\n" + + "\016PredictRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-r" + + "ecommendationengine.googleapis.com/Place" + + "ment\022M\n\nuser_event\030\002 \001(\01324.google.cloud." + + "recommendationengine.v1beta1.UserEventB\003" + + "\340A\002\022\026\n\tpage_size\030\007 \001(\005B\003\340A\001\022\027\n\npage_toke" + + "n\030\010 \001(\tB\003\340A\001\022\023\n\006filter\030\003 \001(\tB\003\340A\001\022\024\n\007dry" + + "_run\030\004 \001(\010B\003\340A\001\022Z\n\006params\030\006 \003(\0132E.google" + + ".cloud.recommendationengine.v1beta1.Pred" + + "ictRequest.ParamsEntryB\003\340A\001\022Z\n\006labels\030\t " + + "\003(\0132E.google.cloud.recommendationengine." + + "v1beta1.PredictRequest.LabelsEntryB\003\340A\001\032" + + "E\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001" + + "(\0132\026.google.protobuf.Value:\0028\001\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\342\004" + + "\n\017PredictResponse\022\\\n\007results\030\001 \003(\0132K.goo" + + "gle.cloud.recommendationengine.v1beta1.P" + + "redictResponse.PredictionResult\022\034\n\024recom" + + "mendation_token\030\002 \001(\t\022 \n\030items_missing_i" + + "n_catalog\030\003 \003(\t\022\017\n\007dry_run\030\004 \001(\010\022Z\n\010meta" + + "data\030\005 \003(\0132H.google.cloud.recommendation" + + "engine.v1beta1.PredictResponse.MetadataE" + + "ntry\022\027\n\017next_page_token\030\006 \001(\t\032\341\001\n\020Predic" + + "tionResult\022\n\n\002id\030\001 \001(\t\022t\n\ritem_metadata\030" + + "\002 \003(\0132].google.cloud.recommendationengin" + + "e.v1beta1.PredictResponse.PredictionResu" + + "lt.ItemMetadataEntry\032K\n\021ItemMetadataEntr" + + "y\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.p" + + "rotobuf.Value:\0028\001\032G\n\rMetadataEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf" + + ".Value:\0028\0012\342\002\n\021PredictionService\022\363\001\n\007Pre" + + "dict\0229.google.cloud.recommendationengine" + + ".v1beta1.PredictRequest\032:.google.cloud.r" + + "ecommendationengine.v1beta1.PredictRespo" + + "nse\"q\202\323\344\223\002Y\"T/v1beta1/{name=projects/*/l" + + "ocations/*/catalogs/*/eventStores/*/plac" + + "ements/*}:predict:\001*\332A\017name,user_event\032W" + + "\312A#recommendationengine.googleapis.com\322A" + + ".https://www.googleapis.com/auth/cloud-p" + + "latformB\237\002\n-com.google.cloud.recommendat" + + "ionengine.v1beta1P\001Z]google.golang.org/g" + + "enproto/googleapis/cloud/recommendatione" + + "ngine/v1beta1;recommendationengine\242\002\005REC" + + "AI\252\002)Google.Cloud.RecommendationEngine.V" + + "1Beta1\312\002)Google\\Cloud\\RecommendationEngi" + + "ne\\V1beta1\352\002,Google::Cloud::Recommendati" + + "onEngine::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + }); + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor, + new java.lang.String[] { "Name", "UserEvent", "PageSize", "PageToken", "Filter", "DryRun", "Params", "Labels", }); + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor, + new java.lang.String[] { "Results", "RecommendationToken", "ItemsMissingInCatalog", "DryRun", "Metadata", "NextPageToken", }); + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor, + new java.lang.String[] { "Id", "ItemMetadata", }); + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItem.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItem.java similarity index 62% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItem.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItem.java index 655b9fd0..fa28c26c 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItem.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItem.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * ProductCatalogItem captures item metadata specific to retail products.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ProductCatalogItem} */ -public final class ProductCatalogItem extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ProductCatalogItem extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ProductCatalogItem) ProductCatalogItemOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ProductCatalogItem.newBuilder() to construct. private ProductCatalogItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProductCatalogItem() { currencyCode_ = ""; stockState_ = 0; @@ -46,15 +28,16 @@ private ProductCatalogItem() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProductCatalogItem(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ProductCatalogItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,113 +57,86 @@ private ProductCatalogItem( case 0: done = true; break; - case 10: - { - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder - subBuilder = null; - if (priceCase_ == 1) { - subBuilder = - ((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) - price_) - .toBuilder(); - } - price_ = - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) - price_); - price_ = subBuilder.buildPartial(); - } - priceCase_ = 1; - break; - } - case 18: - { - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder - subBuilder = null; - if (priceCase_ == 2) { - subBuilder = - ((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) - price_) - .toBuilder(); - } - price_ = - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) - price_); - price_ = subBuilder.buildPartial(); - } - priceCase_ = 2; - break; + case 10: { + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder subBuilder = null; + if (priceCase_ == 1) { + subBuilder = ((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_).toBuilder(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - costs_ = - com.google.protobuf.MapField.newMapField(CostsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry costs__ = - input.readMessage( - CostsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - costs_.getMutableMap().put(costs__.getKey(), costs__.getValue()); - break; + price_ = + input.readMessage(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_); + price_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - currencyCode_ = s; - break; + priceCase_ = 1; + break; + } + case 18: { + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder subBuilder = null; + if (priceCase_ == 2) { + subBuilder = ((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_).toBuilder(); } - case 40: - { - int rawValue = input.readEnum(); - - stockState_ = rawValue; - break; + price_ = + input.readMessage(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_); + price_ = subBuilder.buildPartial(); } - case 48: - { - availableQuantity_ = input.readInt64(); - break; + priceCase_ = 2; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + costs_ = com.google.protobuf.MapField.newMapField( + CostsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + com.google.protobuf.MapEntry + costs__ = input.readMessage( + CostsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + costs_.getMutableMap().put( + costs__.getKey(), costs__.getValue()); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - canonicalProductUri_ = s; - break; - } - case 66: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - images_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - images_.add( - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.Image.parser(), - extensionRegistry)); - break; + currencyCode_ = s; + break; + } + case 40: { + int rawValue = input.readEnum(); + + stockState_ = rawValue; + break; + } + case 48: { + + availableQuantity_ = input.readInt64(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + canonicalProductUri_ = s; + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + images_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + images_.add( + input.readMessage(com.google.cloud.recommendationengine.v1beta1.Image.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -188,7 +144,8 @@ private ProductCatalogItem( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { images_ = java.util.Collections.unmodifiableList(images_); @@ -197,36 +154,32 @@ private ProductCatalogItem( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetCosts(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.class, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.class, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder.class); } /** - * - * *
          * Item stock state. If this field is unspecified, the item is
          * assumed to be in stock.
      @@ -234,10 +187,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
          *
          * Protobuf enum {@code google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState}
          */
      -  public enum StockState implements com.google.protobuf.ProtocolMessageEnum {
      +  public enum StockState
      +      implements com.google.protobuf.ProtocolMessageEnum {
           /**
      -     *
      -     *
            * 
            * Default item stock status. Should never be used.
            * 
      @@ -246,8 +198,6 @@ public enum StockState implements com.google.protobuf.ProtocolMessageEnum { */ STOCK_STATE_UNSPECIFIED(0, 0), /** - * - * *
            * Item out of stock.
            * 
      @@ -256,8 +206,6 @@ public enum StockState implements com.google.protobuf.ProtocolMessageEnum { */ OUT_OF_STOCK(2, 1), /** - * - * *
            * Item that is in pre-order state.
            * 
      @@ -266,8 +214,6 @@ public enum StockState implements com.google.protobuf.ProtocolMessageEnum { */ PREORDER(3, 2), /** - * - * *
            * Item that is back-ordered (i.e. temporarily out of stock).
            * 
      @@ -279,8 +225,6 @@ public enum StockState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
            * Item in stock.
            * 
      @@ -289,8 +233,6 @@ public enum StockState implements com.google.protobuf.ProtocolMessageEnum { */ public static final StockState IN_STOCK = STOCK_STATE_UNSPECIFIED; /** - * - * *
            * Default item stock status. Should never be used.
            * 
      @@ -299,8 +241,6 @@ public enum StockState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STOCK_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
            * Item in stock.
            * 
      @@ -309,8 +249,6 @@ public enum StockState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IN_STOCK_VALUE = 0; /** - * - * *
            * Item out of stock.
            * 
      @@ -319,8 +257,6 @@ public enum StockState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OUT_OF_STOCK_VALUE = 1; /** - * - * *
            * Item that is in pre-order state.
            * 
      @@ -329,8 +265,6 @@ public enum StockState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PREORDER_VALUE = 2; /** - * - * *
            * Item that is back-ordered (i.e. temporarily out of stock).
            * 
      @@ -339,6 +273,7 @@ public enum StockState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BACKORDER_VALUE = 3; + public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( @@ -363,59 +298,54 @@ public static StockState valueOf(int value) { */ public static StockState forNumber(int value) { switch (value) { - case 0: - return STOCK_STATE_UNSPECIFIED; - case 1: - return OUT_OF_STOCK; - case 2: - return PREORDER; - case 3: - return BACKORDER; - default: - return null; + case 0: return STOCK_STATE_UNSPECIFIED; + case 1: return OUT_OF_STOCK; + case 2: return PREORDER; + case 3: return BACKORDER; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + StockState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StockState findValueByNumber(int number) { + return StockState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StockState findValueByNumber(int number) { - return StockState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (index == -1) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(index); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDescriptor().getEnumTypes().get(0); } private static final StockState[] VALUES = getStaticValuesArray(); - private static StockState[] getStaticValuesArray() { return new StockState[] { - STOCK_STATE_UNSPECIFIED, IN_STOCK, OUT_OF_STOCK, PREORDER, BACKORDER, + STOCK_STATE_UNSPECIFIED, IN_STOCK, OUT_OF_STOCK, PREORDER, BACKORDER, }; } - - public static StockState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static StockState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -434,70 +364,62 @@ private StockState(int index, int value) { // @@protoc_insertion_point(enum_scope:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState) } - public interface ExactPriceOrBuilder - extends + public interface ExactPriceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) com.google.protobuf.MessageOrBuilder { /** - * - * *
            * Optional. Display price of the product.
            * 
      * * float display_price = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayPrice. */ float getDisplayPrice(); /** - * - * *
            * Optional. Price of the product without any discount. If zero, by default
            * set to be the 'displayPrice'.
            * 
      * * float original_price = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The originalPrice. */ float getOriginalPrice(); } /** - * - * *
          * Exact product price.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice} */ - public static final class ExactPrice extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ExactPrice extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) ExactPriceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExactPrice.newBuilder() to construct. private ExactPrice(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ExactPrice() {} + private ExactPrice() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExactPrice(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExactPrice( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -516,23 +438,23 @@ private ExactPrice( case 0: done = true; break; - case 13: - { - displayPrice_ = input.readFloat(); - break; - } - case 21: - { - originalPrice_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 13: { + + displayPrice_ = input.readFloat(); + break; + } + case 21: { + + originalPrice_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -540,40 +462,34 @@ private ExactPrice( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.class, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder - .class); + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.class, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder.class); } public static final int DISPLAY_PRICE_FIELD_NUMBER = 1; private float displayPrice_; /** - * - * *
            * Optional. Display price of the product.
            * 
      * * float display_price = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayPrice. */ @java.lang.Override @@ -584,15 +500,12 @@ public float getDisplayPrice() { public static final int ORIGINAL_PRICE_FIELD_NUMBER = 2; private float originalPrice_; /** - * - * *
            * Optional. Price of the product without any discount. If zero, by default
            * set to be the 'displayPrice'.
            * 
      * * float original_price = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The originalPrice. */ @java.lang.Override @@ -601,7 +514,6 @@ public float getOriginalPrice() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -613,7 +525,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(displayPrice_) != 0) { output.writeFloat(1, displayPrice_); } @@ -630,10 +543,12 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(displayPrice_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, displayPrice_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, displayPrice_); } if (java.lang.Float.floatToRawIntBits(originalPrice_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, originalPrice_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, originalPrice_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -643,19 +558,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice)) { + if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice other = - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) obj; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice other = (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) obj; if (java.lang.Float.floatToIntBits(getDisplayPrice()) - != java.lang.Float.floatToIntBits(other.getDisplayPrice())) return false; + != java.lang.Float.floatToIntBits( + other.getDisplayPrice())) return false; if (java.lang.Float.floatToIntBits(getOriginalPrice()) - != java.lang.Float.floatToIntBits(other.getOriginalPrice())) return false; + != java.lang.Float.floatToIntBits( + other.getOriginalPrice())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -668,109 +583,98 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DISPLAY_PRICE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getDisplayPrice()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getDisplayPrice()); hash = (37 * hash) + ORIGINAL_PRICE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getOriginalPrice()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getOriginalPrice()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -780,50 +684,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
            * Exact product price.
            * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.class, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder - .class); + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.class, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -835,22 +733,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.getDefaultInstance(); } @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice build() { - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice result = - buildPartial(); + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -858,10 +753,8 @@ public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPri } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice result = - new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice(this); + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice buildPartial() { + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice result = new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice(this); result.displayPrice_ = displayPrice_; result.originalPrice_ = originalPrice_; onBuilt(); @@ -872,55 +765,46 @@ public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPri public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) other); + if (other instanceof com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) { + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice other) { + if (other == com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.getDefaultInstance()) return this; if (other.getDisplayPrice() != 0F) { setDisplayPrice(other.getDisplayPrice()); } @@ -942,14 +826,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parsedMessage = - null; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -959,16 +840,13 @@ public Builder mergeFrom( return this; } - private float displayPrice_; + private float displayPrice_ ; /** - * - * *
              * Optional. Display price of the product.
              * 
      * * float display_price = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayPrice. */ @java.lang.Override @@ -976,52 +854,43 @@ public float getDisplayPrice() { return displayPrice_; } /** - * - * *
              * Optional. Display price of the product.
              * 
      * * float display_price = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayPrice to set. * @return This builder for chaining. */ public Builder setDisplayPrice(float value) { - + displayPrice_ = value; onChanged(); return this; } /** - * - * *
              * Optional. Display price of the product.
              * 
      * * float display_price = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayPrice() { - + displayPrice_ = 0F; onChanged(); return this; } - private float originalPrice_; + private float originalPrice_ ; /** - * - * *
              * Optional. Price of the product without any discount. If zero, by default
              * set to be the 'displayPrice'.
              * 
      * * float original_price = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The originalPrice. */ @java.lang.Override @@ -1029,43 +898,36 @@ public float getOriginalPrice() { return originalPrice_; } /** - * - * *
              * Optional. Price of the product without any discount. If zero, by default
              * set to be the 'displayPrice'.
              * 
      * * float original_price = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The originalPrice to set. * @return This builder for chaining. */ public Builder setOriginalPrice(float value) { - + originalPrice_ = value; onChanged(); return this; } /** - * - * *
              * Optional. Price of the product without any discount. If zero, by default
              * set to be the 'displayPrice'.
              * 
      * * float original_price = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOriginalPrice() { - + originalPrice_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1078,33 +940,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) - private static final com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice(); + DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice(); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExactPrice parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExactPrice(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExactPrice parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExactPrice(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1116,46 +975,37 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface PriceRangeOrBuilder - extends + public interface PriceRangeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) com.google.protobuf.MessageOrBuilder { /** - * - * *
            * Required. The minimum product price.
            * 
      * * float min = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The min. */ float getMin(); /** - * - * *
            * Required. The maximum product price.
            * 
      * * float max = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The max. */ float getMax(); } /** - * - * *
          * Product price range when there are a range of prices for different
          * variations of the same product.
      @@ -1163,29 +1013,30 @@ public interface PriceRangeOrBuilder
          *
          * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange}
          */
      -  public static final class PriceRange extends com.google.protobuf.GeneratedMessageV3
      -      implements
      +  public static final class PriceRange extends
      +      com.google.protobuf.GeneratedMessageV3 implements
             // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange)
             PriceRangeOrBuilder {
      -    private static final long serialVersionUID = 0L;
      +  private static final long serialVersionUID = 0L;
           // Use PriceRange.newBuilder() to construct.
           private PriceRange(com.google.protobuf.GeneratedMessageV3.Builder builder) {
             super(builder);
           }
      -
      -    private PriceRange() {}
      +    private PriceRange() {
      +    }
       
           @java.lang.Override
           @SuppressWarnings({"unused"})
      -    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      +    protected java.lang.Object newInstance(
      +        UnusedPrivateParameter unused) {
             return new PriceRange();
           }
       
           @java.lang.Override
      -    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      +    public final com.google.protobuf.UnknownFieldSet
      +    getUnknownFields() {
             return this.unknownFields;
           }
      -
           private PriceRange(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      @@ -1204,23 +1055,23 @@ private PriceRange(
                   case 0:
                     done = true;
                     break;
      -            case 13:
      -              {
      -                min_ = input.readFloat();
      -                break;
      -              }
      -            case 21:
      -              {
      -                max_ = input.readFloat();
      -                break;
      -              }
      -            default:
      -              {
      -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
      -                  done = true;
      -                }
      -                break;
      +            case 13: {
      +
      +              min_ = input.readFloat();
      +              break;
      +            }
      +            case 21: {
      +
      +              max_ = input.readFloat();
      +              break;
      +            }
      +            default: {
      +              if (!parseUnknownField(
      +                  input, unknownFields, extensionRegistry, tag)) {
      +                done = true;
                     }
      +              break;
      +            }
                 }
               }
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      @@ -1228,40 +1079,34 @@ private PriceRange(
             } catch (com.google.protobuf.UninitializedMessageException e) {
               throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
             } catch (java.io.IOException e) {
      -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      +        throw new com.google.protobuf.InvalidProtocolBufferException(
      +            e).setUnfinishedMessage(this);
             } finally {
               this.unknownFields = unknownFields.build();
               makeExtensionsImmutable();
             }
           }
      -
      -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -      return com.google.cloud.recommendationengine.v1beta1.Catalog
      -          .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor;
      +    public static final com.google.protobuf.Descriptors.Descriptor
      +        getDescriptor() {
      +      return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor;
           }
       
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
      -      return com.google.cloud.recommendationengine.v1beta1.Catalog
      -          .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_fieldAccessorTable
      +      return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
      -              com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.class,
      -              com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder
      -                  .class);
      +              com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.class, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder.class);
           }
       
           public static final int MIN_FIELD_NUMBER = 1;
           private float min_;
           /**
      -     *
      -     *
            * 
            * Required. The minimum product price.
            * 
      * * float min = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The min. */ @java.lang.Override @@ -1272,14 +1117,11 @@ public float getMin() { public static final int MAX_FIELD_NUMBER = 2; private float max_; /** - * - * *
            * Required. The maximum product price.
            * 
      * * float max = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The max. */ @java.lang.Override @@ -1288,7 +1130,6 @@ public float getMax() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1300,7 +1141,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(min_) != 0) { output.writeFloat(1, min_); } @@ -1317,10 +1159,12 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(min_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, min_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, min_); } if (java.lang.Float.floatToRawIntBits(max_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, max_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, max_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1330,19 +1174,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange)) { + if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange other = - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) obj; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange other = (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) obj; if (java.lang.Float.floatToIntBits(getMin()) - != java.lang.Float.floatToIntBits(other.getMin())) return false; + != java.lang.Float.floatToIntBits( + other.getMin())) return false; if (java.lang.Float.floatToIntBits(getMax()) - != java.lang.Float.floatToIntBits(other.getMax())) return false; + != java.lang.Float.floatToIntBits( + other.getMax())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1355,109 +1199,98 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MIN_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getMin()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getMin()); hash = (37 * hash) + MAX_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getMax()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getMax()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1467,8 +1300,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
            * Product price range when there are a range of prices for different
            * variations of the same product.
      @@ -1476,42 +1307,38 @@ protected Builder newBuilderForType(
            *
            * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange}
            */
      -    public static final class Builder
      -        extends com.google.protobuf.GeneratedMessageV3.Builder
      -        implements
      +    public static final class Builder extends
      +        com.google.protobuf.GeneratedMessageV3.Builder implements
               // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange)
               com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder {
      -      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -        return com.google.cloud.recommendationengine.v1beta1.Catalog
      -            .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor;
      +      public static final com.google.protobuf.Descriptors.Descriptor
      +          getDescriptor() {
      +        return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor;
             }
       
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
      -        return com.google.cloud.recommendationengine.v1beta1.Catalog
      -            .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_fieldAccessorTable
      +        return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
      -                com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.class,
      -                com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder
      -                    .class);
      +                com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.class, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder.class);
             }
       
      -      // Construct using
      -      // com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.newBuilder()
      +      // Construct using com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.newBuilder()
             private Builder() {
               maybeForceBuilderInitialization();
             }
       
      -      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +      private Builder(
      +          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
               super(parent);
               maybeForceBuilderInitialization();
             }
      -
             private void maybeForceBuilderInitialization() {
      -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
      +        if (com.google.protobuf.GeneratedMessageV3
      +                .alwaysUseFieldBuilders) {
      +        }
             }
      -
             @java.lang.Override
             public Builder clear() {
               super.clear();
      @@ -1523,22 +1350,19 @@ public Builder clear() {
             }
       
             @java.lang.Override
      -      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      -        return com.google.cloud.recommendationengine.v1beta1.Catalog
      -            .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor;
      +      public com.google.protobuf.Descriptors.Descriptor
      +          getDescriptorForType() {
      +        return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor;
             }
       
             @java.lang.Override
      -      public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange
      -          getDefaultInstanceForType() {
      -        return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange
      -            .getDefaultInstance();
      +      public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange getDefaultInstanceForType() {
      +        return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.getDefaultInstance();
             }
       
             @java.lang.Override
             public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange build() {
      -        com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange result =
      -            buildPartial();
      +        com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange result = buildPartial();
               if (!result.isInitialized()) {
                 throw newUninitializedMessageException(result);
               }
      @@ -1546,10 +1370,8 @@ public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRan
             }
       
             @java.lang.Override
      -      public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange
      -          buildPartial() {
      -        com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange result =
      -            new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange(this);
      +      public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange buildPartial() {
      +        com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange result = new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange(this);
               result.min_ = min_;
               result.max_ = max_;
               onBuilt();
      @@ -1560,55 +1382,46 @@ public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRan
             public Builder clone() {
               return super.clone();
             }
      -
             @java.lang.Override
             public Builder setField(
      -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +          com.google.protobuf.Descriptors.FieldDescriptor field,
      +          java.lang.Object value) {
               return super.setField(field, value);
             }
      -
             @java.lang.Override
      -      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      +      public Builder clearField(
      +          com.google.protobuf.Descriptors.FieldDescriptor field) {
               return super.clearField(field);
             }
      -
             @java.lang.Override
      -      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      +      public Builder clearOneof(
      +          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
               return super.clearOneof(oneof);
             }
      -
             @java.lang.Override
             public Builder setRepeatedField(
                 com.google.protobuf.Descriptors.FieldDescriptor field,
      -          int index,
      -          java.lang.Object value) {
      +          int index, java.lang.Object value) {
               return super.setRepeatedField(field, index, value);
             }
      -
             @java.lang.Override
             public Builder addRepeatedField(
      -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +          com.google.protobuf.Descriptors.FieldDescriptor field,
      +          java.lang.Object value) {
               return super.addRepeatedField(field, value);
             }
      -
             @java.lang.Override
             public Builder mergeFrom(com.google.protobuf.Message other) {
      -        if (other
      -            instanceof
      -            com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) {
      -          return mergeFrom(
      -              (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) other);
      +        if (other instanceof com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) {
      +          return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange)other);
               } else {
                 super.mergeFrom(other);
                 return this;
               }
             }
       
      -      public Builder mergeFrom(
      -          com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange other) {
      -        if (other
      -            == com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange
      -                .getDefaultInstance()) return this;
      +      public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange other) {
      +        if (other == com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.getDefaultInstance()) return this;
               if (other.getMin() != 0F) {
                 setMin(other.getMin());
               }
      @@ -1630,14 +1443,11 @@ public Builder mergeFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
      -        com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parsedMessage =
      -            null;
      +        com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parsedMessage = null;
               try {
                 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      -          parsedMessage =
      -              (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange)
      -                  e.getUnfinishedMessage();
      +          parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) e.getUnfinishedMessage();
                 throw e.unwrapIOException();
               } finally {
                 if (parsedMessage != null) {
      @@ -1647,16 +1457,13 @@ public Builder mergeFrom(
               return this;
             }
       
      -      private float min_;
      +      private float min_ ;
             /**
      -       *
      -       *
              * 
              * Required. The minimum product price.
              * 
      * * float min = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The min. */ @java.lang.Override @@ -1664,51 +1471,42 @@ public float getMin() { return min_; } /** - * - * *
              * Required. The minimum product price.
              * 
      * * float min = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The min to set. * @return This builder for chaining. */ public Builder setMin(float value) { - + min_ = value; onChanged(); return this; } /** - * - * *
              * Required. The minimum product price.
              * 
      * * float min = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMin() { - + min_ = 0F; onChanged(); return this; } - private float max_; + private float max_ ; /** - * - * *
              * Required. The maximum product price.
              * 
      * * float max = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The max. */ @java.lang.Override @@ -1716,41 +1514,34 @@ public float getMax() { return max_; } /** - * - * *
              * Required. The maximum product price.
              * 
      * * float max = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The max to set. * @return This builder for chaining. */ public Builder setMax(float value) { - + max_ = value; onChanged(); return this; } /** - * - * *
              * Required. The maximum product price.
              * 
      * * float max = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMax() { - + max_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1763,33 +1554,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) - private static final com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange(); + DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange(); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PriceRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PriceRange(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PriceRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PriceRange(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1801,24 +1589,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int priceCase_ = 0; private java.lang.Object price_; - public enum PriceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { EXACT_PRICE(1), PRICE_RANGE(2), PRICE_NOT_SET(0); private final int value; - private PriceCase(int value) { this.value = value; } @@ -1834,38 +1619,30 @@ public static PriceCase valueOf(int value) { public static PriceCase forNumber(int value) { switch (value) { - case 1: - return EXACT_PRICE; - case 2: - return PRICE_RANGE; - case 0: - return PRICE_NOT_SET; - default: - return null; + case 1: return EXACT_PRICE; + case 2: return PRICE_RANGE; + case 0: return PRICE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public PriceCase getPriceCase() { - return PriceCase.forNumber(priceCase_); + public PriceCase + getPriceCase() { + return PriceCase.forNumber( + priceCase_); } public static final int EXACT_PRICE_FIELD_NUMBER = 1; /** - * - * *
          * Optional. The exact product price.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the exactPrice field is set. */ @java.lang.Override @@ -1873,60 +1650,42 @@ public boolean hasExactPrice() { return priceCase_ == 1; } /** - * - * *
          * Optional. The exact product price.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The exactPrice. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - getExactPrice() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice getExactPrice() { if (priceCase_ == 1) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_; } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - .getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.getDefaultInstance(); } /** - * - * *
          * Optional. The exact product price.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder - getExactPriceOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder getExactPriceOrBuilder() { if (priceCase_ == 1) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_; } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - .getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.getDefaultInstance(); } public static final int PRICE_RANGE_FIELD_NUMBER = 2; /** - * - * *
          * Optional. The product price range.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the priceRange field is set. */ @java.lang.Override @@ -1934,66 +1693,54 @@ public boolean hasPriceRange() { return priceCase_ == 2; } /** - * - * *
          * Optional. The product price range.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The priceRange. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - getPriceRange() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange getPriceRange() { if (priceCase_ == 2) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_; } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - .getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.getDefaultInstance(); } /** - * - * *
          * Optional. The product price range.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder - getPriceRangeOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder getPriceRangeOrBuilder() { if (priceCase_ == 2) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_; } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - .getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.getDefaultInstance(); } public static final int COSTS_FIELD_NUMBER = 3; - private static final class CostsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.FLOAT, - 0F); - } - - private com.google.protobuf.MapField costs_; - - private com.google.protobuf.MapField internalGetCosts() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.Float> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.FLOAT, + 0F); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.Float> costs_; + private com.google.protobuf.MapField + internalGetCosts() { if (costs_ == null) { - return com.google.protobuf.MapField.emptyMapField(CostsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + CostsDefaultEntryHolder.defaultEntry); } return costs_; } @@ -2002,8 +1749,6 @@ public int getCostsCount() { return internalGetCosts().getMap().size(); } /** - * - * *
          * Optional. A map to pass the costs associated with the product.
          * For example:
      @@ -2015,22 +1760,22 @@ public int getCostsCount() {
          *
          * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
          */
      +
         @java.lang.Override
      -  public boolean containsCosts(java.lang.String key) {
      -    if (key == null) {
      -      throw new NullPointerException("map key");
      -    }
      +  public boolean containsCosts(
      +      java.lang.String key) {
      +    if (key == null) { throw new NullPointerException("map key"); }
           return internalGetCosts().getMap().containsKey(key);
         }
      -  /** Use {@link #getCostsMap()} instead. */
      +  /**
      +   * Use {@link #getCostsMap()} instead.
      +   */
         @java.lang.Override
         @java.lang.Deprecated
         public java.util.Map getCosts() {
           return getCostsMap();
         }
         /**
      -   *
      -   *
          * 
          * Optional. A map to pass the costs associated with the product.
          * For example:
      @@ -2043,12 +1788,11 @@ public java.util.Map getCosts() {
          * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
          */
         @java.lang.Override
      +
         public java.util.Map getCostsMap() {
           return internalGetCosts().getMap();
         }
         /**
      -   *
      -   *
          * 
          * Optional. A map to pass the costs associated with the product.
          * For example:
      @@ -2061,16 +1805,16 @@ public java.util.Map getCostsMap() {
          * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
          */
         @java.lang.Override
      -  public float getCostsOrDefault(java.lang.String key, float defaultValue) {
      -    if (key == null) {
      -      throw new NullPointerException("map key");
      -    }
      -    java.util.Map map = internalGetCosts().getMap();
      +
      +  public float getCostsOrDefault(
      +      java.lang.String key,
      +      float defaultValue) {
      +    if (key == null) { throw new NullPointerException("map key"); }
      +    java.util.Map map =
      +        internalGetCosts().getMap();
           return map.containsKey(key) ? map.get(key) : defaultValue;
         }
         /**
      -   *
      -   *
          * 
          * Optional. A map to pass the costs associated with the product.
          * For example:
      @@ -2083,11 +1827,12 @@ public float getCostsOrDefault(java.lang.String key, float defaultValue) {
          * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
          */
         @java.lang.Override
      -  public float getCostsOrThrow(java.lang.String key) {
      -    if (key == null) {
      -      throw new NullPointerException("map key");
      -    }
      -    java.util.Map map = internalGetCosts().getMap();
      +
      +  public float getCostsOrThrow(
      +      java.lang.String key) {
      +    if (key == null) { throw new NullPointerException("map key"); }
      +    java.util.Map map =
      +        internalGetCosts().getMap();
           if (!map.containsKey(key)) {
             throw new java.lang.IllegalArgumentException();
           }
      @@ -2097,15 +1842,12 @@ public float getCostsOrThrow(java.lang.String key) {
         public static final int CURRENCY_CODE_FIELD_NUMBER = 4;
         private volatile java.lang.Object currencyCode_;
         /**
      -   *
      -   *
          * 
          * Optional. Only required if the price is set. Currency code for price/costs. Use
          * three-character ISO-4217 code.
          * 
      * * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The currencyCode. */ @java.lang.Override @@ -2114,30 +1856,30 @@ public java.lang.String getCurrencyCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; } } /** - * - * *
          * Optional. Only required if the price is set. Currency code for price/costs. Use
          * three-character ISO-4217 code.
          * 
      * * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for currencyCode. */ @java.lang.Override - public com.google.protobuf.ByteString getCurrencyCodeBytes() { + public com.google.protobuf.ByteString + getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -2148,58 +1890,38 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { public static final int STOCK_STATE_FIELD_NUMBER = 5; private int stockState_; /** - * - * *
          * Optional. Online stock state of the catalog item. Default is `IN_STOCK`.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for stockState. */ - @java.lang.Override - public int getStockStateValue() { + @java.lang.Override public int getStockStateValue() { return stockState_; } /** - * - * *
          * Optional. Online stock state of the catalog item. Default is `IN_STOCK`.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The stockState. */ - @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState - getStockState() { + @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState getStockState() { @SuppressWarnings("deprecation") - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState result = - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.valueOf( - stockState_); - return result == null - ? com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.UNRECOGNIZED - : result; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState result = com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.valueOf(stockState_); + return result == null ? com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.UNRECOGNIZED : result; } public static final int AVAILABLE_QUANTITY_FIELD_NUMBER = 6; private long availableQuantity_; /** - * - * *
          * Optional. The available quantity of the item.
          * 
      * * int64 available_quantity = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The availableQuantity. */ @java.lang.Override @@ -2210,15 +1932,12 @@ public long getAvailableQuantity() { public static final int CANONICAL_PRODUCT_URI_FIELD_NUMBER = 7; private volatile java.lang.Object canonicalProductUri_; /** - * - * *
          * Optional. Canonical URL directly linking to the item detail page with a
          * length limit of 5 KiB..
          * 
      * * string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The canonicalProductUri. */ @java.lang.Override @@ -2227,30 +1946,30 @@ public java.lang.String getCanonicalProductUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalProductUri_ = s; return s; } } /** - * - * *
          * Optional. Canonical URL directly linking to the item detail page with a
          * length limit of 5 KiB..
          * 
      * * string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for canonicalProductUri. */ @java.lang.Override - public com.google.protobuf.ByteString getCanonicalProductUriBytes() { + public com.google.protobuf.ByteString + getCanonicalProductUriBytes() { java.lang.Object ref = canonicalProductUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalProductUri_ = b; return b; } else { @@ -2261,76 +1980,56 @@ public com.google.protobuf.ByteString getCanonicalProductUriBytes() { public static final int IMAGES_FIELD_NUMBER = 8; private java.util.List images_; /** - * - * *
          * Optional. Product images for the catalog item.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.List getImagesList() { return images_; } /** - * - * *
          * Optional. Product images for the catalog item.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getImagesOrBuilderList() { return images_; } /** - * - * *
          * Optional. Product images for the catalog item.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getImagesCount() { return images_.size(); } /** - * - * *
          * Optional. Product images for the catalog item.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.Image getImages(int index) { return images_.get(index); } /** - * - * *
          * Optional. Product images for the catalog item.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder getImagesOrBuilder( @@ -2339,7 +2038,6 @@ public com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder getImagesOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2351,24 +2049,24 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (priceCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_); + output.writeMessage(1, (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_); } if (priceCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetCosts(), CostsDefaultEntryHolder.defaultEntry, 3); + output.writeMessage(2, (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetCosts(), + CostsDefaultEntryHolder.defaultEntry, + 3); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, currencyCode_); } - if (stockState_ - != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState - .STOCK_STATE_UNSPECIFIED - .getNumber()) { + if (stockState_ != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.STOCK_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, stockState_); } if (availableQuantity_ != 0L) { @@ -2390,44 +2088,40 @@ public int getSerializedSize() { size = 0; if (priceCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_); } if (priceCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_); - } - for (java.util.Map.Entry entry : - internalGetCosts().getMap().entrySet()) { - com.google.protobuf.MapEntry costs__ = - CostsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, costs__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_); + } + for (java.util.Map.Entry entry + : internalGetCosts().getMap().entrySet()) { + com.google.protobuf.MapEntry + costs__ = CostsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, costs__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, currencyCode_); } - if (stockState_ - != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState - .STOCK_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, stockState_); + if (stockState_ != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.STOCK_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, stockState_); } if (availableQuantity_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, availableQuantity_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, availableQuantity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalProductUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, canonicalProductUri_); } for (int i = 0; i < images_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, images_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, images_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2437,27 +2131,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem other = - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) obj; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem other = (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) obj; - if (!internalGetCosts().equals(other.internalGetCosts())) return false; - if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; + if (!internalGetCosts().equals( + other.internalGetCosts())) return false; + if (!getCurrencyCode() + .equals(other.getCurrencyCode())) return false; if (stockState_ != other.stockState_) return false; - if (getAvailableQuantity() != other.getAvailableQuantity()) return false; - if (!getCanonicalProductUri().equals(other.getCanonicalProductUri())) return false; - if (!getImagesList().equals(other.getImagesList())) return false; + if (getAvailableQuantity() + != other.getAvailableQuantity()) return false; + if (!getCanonicalProductUri() + .equals(other.getCanonicalProductUri())) return false; + if (!getImagesList() + .equals(other.getImagesList())) return false; if (!getPriceCase().equals(other.getPriceCase())) return false; switch (priceCase_) { case 1: - if (!getExactPrice().equals(other.getExactPrice())) return false; + if (!getExactPrice() + .equals(other.getExactPrice())) return false; break; case 2: - if (!getPriceRange().equals(other.getPriceRange())) return false; + if (!getPriceRange() + .equals(other.getPriceRange())) return false; break; case 0: default: @@ -2482,7 +2182,8 @@ public int hashCode() { hash = (37 * hash) + STOCK_STATE_FIELD_NUMBER; hash = (53 * hash) + stockState_; hash = (37 * hash) + AVAILABLE_QUANTITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAvailableQuantity()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAvailableQuantity()); hash = (37 * hash) + CANONICAL_PRODUCT_URI_FIELD_NUMBER; hash = (53 * hash) + getCanonicalProductUri().hashCode(); if (getImagesCount() > 0) { @@ -2507,147 +2208,139 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * ProductCatalogItem captures item metadata specific to retail products.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ProductCatalogItem} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ProductCatalogItem) com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetCosts(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 3: return internalGetMutableCosts(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.class, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.class, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder.class); } // Construct using com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.newBuilder() @@ -2655,17 +2348,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getImagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2690,14 +2383,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Catalog - .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem getDefaultInstanceForType() { return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance(); } @@ -2712,8 +2404,7 @@ public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem build() @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem result = - new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem(this); + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem result = new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem(this); int from_bitField0_ = bitField0_; if (priceCase_ == 1) { if (exactPriceBuilder_ == null) { @@ -2753,51 +2444,48 @@ public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance()) - return this; - internalGetMutableCosts().mergeFrom(other.internalGetCosts()); + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem other) { + if (other == com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance()) return this; + internalGetMutableCosts().mergeFrom( + other.internalGetCosts()); if (!other.getCurrencyCode().isEmpty()) { currencyCode_ = other.currencyCode_; onChanged(); @@ -2830,30 +2518,26 @@ public Builder mergeFrom( imagesBuilder_ = null; images_ = other.images_; bitField0_ = (bitField0_ & ~0x00000002); - imagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getImagesFieldBuilder() - : null; + imagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getImagesFieldBuilder() : null; } else { imagesBuilder_.addAllMessages(other.images_); } } } switch (other.getPriceCase()) { - case EXACT_PRICE: - { - mergeExactPrice(other.getExactPrice()); - break; - } - case PRICE_RANGE: - { - mergePriceRange(other.getPriceRange()); - break; - } - case PRICE_NOT_SET: - { - break; - } + case EXACT_PRICE: { + mergeExactPrice(other.getExactPrice()); + break; + } + case PRICE_RANGE: { + mergePriceRange(other.getPriceRange()); + break; + } + case PRICE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2874,9 +2558,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2885,12 +2567,12 @@ public Builder mergeFrom( } return this; } - private int priceCase_ = 0; private java.lang.Object price_; - - public PriceCase getPriceCase() { - return PriceCase.forNumber(priceCase_); + public PriceCase + getPriceCase() { + return PriceCase.forNumber( + priceCase_); } public Builder clearPrice() { @@ -2903,21 +2585,13 @@ public Builder clearPrice() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder> - exactPriceBuilder_; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder> exactPriceBuilder_; /** - * - * *
            * Optional. The exact product price.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the exactPrice field is set. */ @java.lang.Override @@ -2925,49 +2599,35 @@ public boolean hasExactPrice() { return priceCase_ == 1; } /** - * - * *
            * Optional. The exact product price.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The exactPrice. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - getExactPrice() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice getExactPrice() { if (exactPriceBuilder_ == null) { if (priceCase_ == 1) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) - price_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_; } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - .getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.getDefaultInstance(); } else { if (priceCase_ == 1) { return exactPriceBuilder_.getMessage(); } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - .getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.getDefaultInstance(); } } /** - * - * *
            * Optional. The exact product price.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setExactPrice( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice value) { + public Builder setExactPrice(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice value) { if (exactPriceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2981,19 +2641,14 @@ public Builder setExactPrice( return this; } /** - * - * *
            * Optional. The exact product price.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setExactPrice( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder - builderForValue) { + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder builderForValue) { if (exactPriceBuilder_ == null) { price_ = builderForValue.build(); onChanged(); @@ -3004,30 +2659,18 @@ public Builder setExactPrice( return this; } /** - * - * *
            * Optional. The exact product price.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeExactPrice( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice value) { + public Builder mergeExactPrice(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice value) { if (exactPriceBuilder_ == null) { - if (priceCase_ == 1 - && price_ - != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - .getDefaultInstance()) { - price_ = - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - .newBuilder( - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) - price_) - .mergeFrom(value) - .buildPartial(); + if (priceCase_ == 1 && + price_ != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.getDefaultInstance()) { + price_ = com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.newBuilder((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_) + .mergeFrom(value).buildPartial(); } else { price_ = value; } @@ -3043,15 +2686,11 @@ public Builder mergeExactPrice( return this; } /** - * - * *
            * Optional. The exact product price.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearExactPrice() { if (exactPriceBuilder_ == null) { @@ -3070,101 +2709,67 @@ public Builder clearExactPrice() { return this; } /** - * - * *
            * Optional. The exact product price.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder - getExactPriceBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder getExactPriceBuilder() { return getExactPriceFieldBuilder().getBuilder(); } /** - * - * *
            * Optional. The exact product price.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder - getExactPriceOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder getExactPriceOrBuilder() { if ((priceCase_ == 1) && (exactPriceBuilder_ != null)) { return exactPriceBuilder_.getMessageOrBuilder(); } else { if (priceCase_ == 1) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) - price_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_; } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - .getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.getDefaultInstance(); } } /** - * - * *
            * Optional. The exact product price.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder> + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder> getExactPriceFieldBuilder() { if (exactPriceBuilder_ == null) { if (!(priceCase_ == 1)) { - price_ = - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice - .getDefaultInstance(); + price_ = com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.getDefaultInstance(); } - exactPriceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem - .ExactPriceOrBuilder>( - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) - price_, + exactPriceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder>( + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_, getParentForChildren(), isClean()); price_ = null; } priceCase_ = 1; - onChanged(); - ; + onChanged();; return exactPriceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder> - priceRangeBuilder_; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder> priceRangeBuilder_; /** - * - * *
            * Optional. The product price range.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the priceRange field is set. */ @java.lang.Override @@ -3172,49 +2777,35 @@ public boolean hasPriceRange() { return priceCase_ == 2; } /** - * - * *
            * Optional. The product price range.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The priceRange. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - getPriceRange() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange getPriceRange() { if (priceRangeBuilder_ == null) { if (priceCase_ == 2) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) - price_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_; } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - .getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.getDefaultInstance(); } else { if (priceCase_ == 2) { return priceRangeBuilder_.getMessage(); } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - .getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.getDefaultInstance(); } } /** - * - * *
            * Optional. The product price range.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setPriceRange( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange value) { + public Builder setPriceRange(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange value) { if (priceRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3228,19 +2819,14 @@ public Builder setPriceRange( return this; } /** - * - * *
            * Optional. The product price range.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPriceRange( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder - builderForValue) { + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder builderForValue) { if (priceRangeBuilder_ == null) { price_ = builderForValue.build(); onChanged(); @@ -3251,30 +2837,18 @@ public Builder setPriceRange( return this; } /** - * - * *
            * Optional. The product price range.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergePriceRange( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange value) { + public Builder mergePriceRange(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange value) { if (priceRangeBuilder_ == null) { - if (priceCase_ == 2 - && price_ - != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - .getDefaultInstance()) { - price_ = - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - .newBuilder( - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) - price_) - .mergeFrom(value) - .buildPartial(); + if (priceCase_ == 2 && + price_ != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.getDefaultInstance()) { + price_ = com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.newBuilder((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_) + .mergeFrom(value).buildPartial(); } else { price_ = value; } @@ -3290,15 +2864,11 @@ public Builder mergePriceRange( return this; } /** - * - * *
            * Optional. The product price range.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPriceRange() { if (priceRangeBuilder_ == null) { @@ -3317,100 +2887,75 @@ public Builder clearPriceRange() { return this; } /** - * - * *
            * Optional. The product price range.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder - getPriceRangeBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder getPriceRangeBuilder() { return getPriceRangeFieldBuilder().getBuilder(); } /** - * - * *
            * Optional. The product price range.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder - getPriceRangeOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder getPriceRangeOrBuilder() { if ((priceCase_ == 2) && (priceRangeBuilder_ != null)) { return priceRangeBuilder_.getMessageOrBuilder(); } else { if (priceCase_ == 2) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) - price_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_; } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - .getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.getDefaultInstance(); } } /** - * - * *
            * Optional. The product price range.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder> + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder> getPriceRangeFieldBuilder() { if (priceRangeBuilder_ == null) { if (!(priceCase_ == 2)) { - price_ = - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange - .getDefaultInstance(); + price_ = com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.getDefaultInstance(); } - priceRangeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder, - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem - .PriceRangeOrBuilder>( - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) - price_, + priceRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder>( + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_, getParentForChildren(), isClean()); price_ = null; } priceCase_ = 2; - onChanged(); - ; + onChanged();; return priceRangeBuilder_; } - private com.google.protobuf.MapField costs_; - - private com.google.protobuf.MapField internalGetCosts() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.Float> costs_; + private com.google.protobuf.MapField + internalGetCosts() { if (costs_ == null) { - return com.google.protobuf.MapField.emptyMapField(CostsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + CostsDefaultEntryHolder.defaultEntry); } return costs_; } - private com.google.protobuf.MapField - internalGetMutableCosts() { - onChanged(); - ; + internalGetMutableCosts() { + onChanged();; if (costs_ == null) { - costs_ = com.google.protobuf.MapField.newMapField(CostsDefaultEntryHolder.defaultEntry); + costs_ = com.google.protobuf.MapField.newMapField( + CostsDefaultEntryHolder.defaultEntry); } if (!costs_.isMutable()) { costs_ = costs_.copy(); @@ -3422,8 +2967,6 @@ public int getCostsCount() { return internalGetCosts().getMap().size(); } /** - * - * *
            * Optional. A map to pass the costs associated with the product.
            * For example:
      @@ -3435,22 +2978,22 @@ public int getCostsCount() {
            *
            * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
            */
      +
           @java.lang.Override
      -    public boolean containsCosts(java.lang.String key) {
      -      if (key == null) {
      -        throw new NullPointerException("map key");
      -      }
      +    public boolean containsCosts(
      +        java.lang.String key) {
      +      if (key == null) { throw new NullPointerException("map key"); }
             return internalGetCosts().getMap().containsKey(key);
           }
      -    /** Use {@link #getCostsMap()} instead. */
      +    /**
      +     * Use {@link #getCostsMap()} instead.
      +     */
           @java.lang.Override
           @java.lang.Deprecated
           public java.util.Map getCosts() {
             return getCostsMap();
           }
           /**
      -     *
      -     *
            * 
            * Optional. A map to pass the costs associated with the product.
            * For example:
      @@ -3463,12 +3006,11 @@ public java.util.Map getCosts() {
            * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
            */
           @java.lang.Override
      +
           public java.util.Map getCostsMap() {
             return internalGetCosts().getMap();
           }
           /**
      -     *
      -     *
            * 
            * Optional. A map to pass the costs associated with the product.
            * For example:
      @@ -3481,16 +3023,16 @@ public java.util.Map getCostsMap() {
            * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
            */
           @java.lang.Override
      -    public float getCostsOrDefault(java.lang.String key, float defaultValue) {
      -      if (key == null) {
      -        throw new NullPointerException("map key");
      -      }
      -      java.util.Map map = internalGetCosts().getMap();
      +
      +    public float getCostsOrDefault(
      +        java.lang.String key,
      +        float defaultValue) {
      +      if (key == null) { throw new NullPointerException("map key"); }
      +      java.util.Map map =
      +          internalGetCosts().getMap();
             return map.containsKey(key) ? map.get(key) : defaultValue;
           }
           /**
      -     *
      -     *
            * 
            * Optional. A map to pass the costs associated with the product.
            * For example:
      @@ -3503,11 +3045,12 @@ public float getCostsOrDefault(java.lang.String key, float defaultValue) {
            * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
            */
           @java.lang.Override
      -    public float getCostsOrThrow(java.lang.String key) {
      -      if (key == null) {
      -        throw new NullPointerException("map key");
      -      }
      -      java.util.Map map = internalGetCosts().getMap();
      +
      +    public float getCostsOrThrow(
      +        java.lang.String key) {
      +      if (key == null) { throw new NullPointerException("map key"); }
      +      java.util.Map map =
      +          internalGetCosts().getMap();
             if (!map.containsKey(key)) {
               throw new java.lang.IllegalArgumentException();
             }
      @@ -3515,12 +3058,11 @@ public float getCostsOrThrow(java.lang.String key) {
           }
       
           public Builder clearCosts() {
      -      internalGetMutableCosts().getMutableMap().clear();
      +      internalGetMutableCosts().getMutableMap()
      +          .clear();
             return this;
           }
           /**
      -     *
      -     *
            * 
            * Optional. A map to pass the costs associated with the product.
            * For example:
      @@ -3532,21 +3074,23 @@ public Builder clearCosts() {
            *
            * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
            */
      -    public Builder removeCosts(java.lang.String key) {
      -      if (key == null) {
      -        throw new NullPointerException("map key");
      -      }
      -      internalGetMutableCosts().getMutableMap().remove(key);
      +
      +    public Builder removeCosts(
      +        java.lang.String key) {
      +      if (key == null) { throw new NullPointerException("map key"); }
      +      internalGetMutableCosts().getMutableMap()
      +          .remove(key);
             return this;
           }
      -    /** Use alternate mutation accessors instead. */
      +    /**
      +     * Use alternate mutation accessors instead.
      +     */
           @java.lang.Deprecated
      -    public java.util.Map getMutableCosts() {
      +    public java.util.Map
      +    getMutableCosts() {
             return internalGetMutableCosts().getMutableMap();
           }
           /**
      -     *
      -     *
            * 
            * Optional. A map to pass the costs associated with the product.
            * For example:
      @@ -3558,17 +3102,16 @@ public java.util.Map getMutableCosts() {
            *
            * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
            */
      -    public Builder putCosts(java.lang.String key, float value) {
      -      if (key == null) {
      -        throw new NullPointerException("map key");
      -      }
      -
      -      internalGetMutableCosts().getMutableMap().put(key, value);
      +    public Builder putCosts(
      +        java.lang.String key,
      +        float value) {
      +      if (key == null) { throw new NullPointerException("map key"); }
      +      
      +      internalGetMutableCosts().getMutableMap()
      +          .put(key, value);
             return this;
           }
           /**
      -     *
      -     *
            * 
            * Optional. A map to pass the costs associated with the product.
            * For example:
      @@ -3580,28 +3123,29 @@ public Builder putCosts(java.lang.String key, float value) {
            *
            * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
            */
      -    public Builder putAllCosts(java.util.Map values) {
      -      internalGetMutableCosts().getMutableMap().putAll(values);
      +
      +    public Builder putAllCosts(
      +        java.util.Map values) {
      +      internalGetMutableCosts().getMutableMap()
      +          .putAll(values);
             return this;
           }
       
           private java.lang.Object currencyCode_ = "";
           /**
      -     *
      -     *
            * 
            * Optional. Only required if the price is set. Currency code for price/costs. Use
            * three-character ISO-4217 code.
            * 
      * * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The currencyCode. */ public java.lang.String getCurrencyCode() { java.lang.Object ref = currencyCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; @@ -3610,22 +3154,21 @@ public java.lang.String getCurrencyCode() { } } /** - * - * *
            * Optional. Only required if the price is set. Currency code for price/costs. Use
            * three-character ISO-4217 code.
            * 
      * * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for currencyCode. */ - public com.google.protobuf.ByteString getCurrencyCodeBytes() { + public com.google.protobuf.ByteString + getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -3633,64 +3176,57 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { } } /** - * - * *
            * Optional. Only required if the price is set. Currency code for price/costs. Use
            * three-character ISO-4217 code.
            * 
      * * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCode(java.lang.String value) { + public Builder setCurrencyCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + currencyCode_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Only required if the price is set. Currency code for price/costs. Use
            * three-character ISO-4217 code.
            * 
      * * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCurrencyCode() { - + currencyCode_ = getDefaultInstance().getCurrencyCode(); onChanged(); return this; } /** - * - * *
            * Optional. Only required if the price is set. Currency code for price/costs. Use
            * three-character ISO-4217 code.
            * 
      * * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { + public Builder setCurrencyCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + currencyCode_ = value; onChanged(); return this; @@ -3698,120 +3234,85 @@ public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { private int stockState_ = 0; /** - * - * *
            * Optional. Online stock state of the catalog item. Default is `IN_STOCK`.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for stockState. */ - @java.lang.Override - public int getStockStateValue() { + @java.lang.Override public int getStockStateValue() { return stockState_; } /** - * - * *
            * Optional. Online stock state of the catalog item. Default is `IN_STOCK`.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for stockState to set. * @return This builder for chaining. */ public Builder setStockStateValue(int value) { - + stockState_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Online stock state of the catalog item. Default is `IN_STOCK`.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The stockState. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState - getStockState() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState getStockState() { @SuppressWarnings("deprecation") - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState result = - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.valueOf( - stockState_); - return result == null - ? com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.UNRECOGNIZED - : result; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState result = com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.valueOf(stockState_); + return result == null ? com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.UNRECOGNIZED : result; } /** - * - * *
            * Optional. Online stock state of the catalog item. Default is `IN_STOCK`.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param value The stockState to set. * @return This builder for chaining. */ - public Builder setStockState( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState value) { + public Builder setStockState(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState value) { if (value == null) { throw new NullPointerException(); } - + stockState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
            * Optional. Online stock state of the catalog item. Default is `IN_STOCK`.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearStockState() { - + stockState_ = 0; onChanged(); return this; } - private long availableQuantity_; + private long availableQuantity_ ; /** - * - * *
            * Optional. The available quantity of the item.
            * 
      * * int64 available_quantity = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The availableQuantity. */ @java.lang.Override @@ -3819,36 +3320,30 @@ public long getAvailableQuantity() { return availableQuantity_; } /** - * - * *
            * Optional. The available quantity of the item.
            * 
      * * int64 available_quantity = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The availableQuantity to set. * @return This builder for chaining. */ public Builder setAvailableQuantity(long value) { - + availableQuantity_ = value; onChanged(); return this; } /** - * - * *
            * Optional. The available quantity of the item.
            * 
      * * int64 available_quantity = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAvailableQuantity() { - + availableQuantity_ = 0L; onChanged(); return this; @@ -3856,21 +3351,19 @@ public Builder clearAvailableQuantity() { private java.lang.Object canonicalProductUri_ = ""; /** - * - * *
            * Optional. Canonical URL directly linking to the item detail page with a
            * length limit of 5 KiB..
            * 
      * * string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The canonicalProductUri. */ public java.lang.String getCanonicalProductUri() { java.lang.Object ref = canonicalProductUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalProductUri_ = s; return s; @@ -3879,22 +3372,21 @@ public java.lang.String getCanonicalProductUri() { } } /** - * - * *
            * Optional. Canonical URL directly linking to the item detail page with a
            * length limit of 5 KiB..
            * 
      * * string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for canonicalProductUri. */ - public com.google.protobuf.ByteString getCanonicalProductUriBytes() { + public com.google.protobuf.ByteString + getCanonicalProductUriBytes() { java.lang.Object ref = canonicalProductUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); canonicalProductUri_ = b; return b; } else { @@ -3902,96 +3394,80 @@ public com.google.protobuf.ByteString getCanonicalProductUriBytes() { } } /** - * - * *
            * Optional. Canonical URL directly linking to the item detail page with a
            * length limit of 5 KiB..
            * 
      * * string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The canonicalProductUri to set. * @return This builder for chaining. */ - public Builder setCanonicalProductUri(java.lang.String value) { + public Builder setCanonicalProductUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + canonicalProductUri_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Canonical URL directly linking to the item detail page with a
            * length limit of 5 KiB..
            * 
      * * string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCanonicalProductUri() { - + canonicalProductUri_ = getDefaultInstance().getCanonicalProductUri(); onChanged(); return this; } /** - * - * *
            * Optional. Canonical URL directly linking to the item detail page with a
            * length limit of 5 KiB..
            * 
      * * string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for canonicalProductUri to set. * @return This builder for chaining. */ - public Builder setCanonicalProductUriBytes(com.google.protobuf.ByteString value) { + public Builder setCanonicalProductUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalProductUri_ = value; onChanged(); return this; } private java.util.List images_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - images_ = - new java.util.ArrayList(images_); + images_ = new java.util.ArrayList(images_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.Image, - com.google.cloud.recommendationengine.v1beta1.Image.Builder, - com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder> - imagesBuilder_; + com.google.cloud.recommendationengine.v1beta1.Image, com.google.cloud.recommendationengine.v1beta1.Image.Builder, com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder> imagesBuilder_; /** - * - * *
            * Optional. Product images for the catalog item.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public java.util.List getImagesList() { if (imagesBuilder_ == null) { @@ -4001,15 +3477,11 @@ public java.util.List getIm } } /** - * - * *
            * Optional. Product images for the catalog item.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public int getImagesCount() { if (imagesBuilder_ == null) { @@ -4019,15 +3491,11 @@ public int getImagesCount() { } } /** - * - * *
            * Optional. Product images for the catalog item.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.recommendationengine.v1beta1.Image getImages(int index) { if (imagesBuilder_ == null) { @@ -4037,17 +3505,14 @@ public com.google.cloud.recommendationengine.v1beta1.Image getImages(int index) } } /** - * - * *
            * Optional. Product images for the catalog item.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setImages(int index, com.google.cloud.recommendationengine.v1beta1.Image value) { + public Builder setImages( + int index, com.google.cloud.recommendationengine.v1beta1.Image value) { if (imagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4061,15 +3526,11 @@ public Builder setImages(int index, com.google.cloud.recommendationengine.v1beta return this; } /** - * - * *
            * Optional. Product images for the catalog item.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setImages( int index, com.google.cloud.recommendationengine.v1beta1.Image.Builder builderForValue) { @@ -4083,15 +3544,11 @@ public Builder setImages( return this; } /** - * - * *
            * Optional. Product images for the catalog item.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addImages(com.google.cloud.recommendationengine.v1beta1.Image value) { if (imagesBuilder_ == null) { @@ -4107,17 +3564,14 @@ public Builder addImages(com.google.cloud.recommendationengine.v1beta1.Image val return this; } /** - * - * *
            * Optional. Product images for the catalog item.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addImages(int index, com.google.cloud.recommendationengine.v1beta1.Image value) { + public Builder addImages( + int index, com.google.cloud.recommendationengine.v1beta1.Image value) { if (imagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4131,15 +3585,11 @@ public Builder addImages(int index, com.google.cloud.recommendationengine.v1beta return this; } /** - * - * *
            * Optional. Product images for the catalog item.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addImages( com.google.cloud.recommendationengine.v1beta1.Image.Builder builderForValue) { @@ -4153,15 +3603,11 @@ public Builder addImages( return this; } /** - * - * *
            * Optional. Product images for the catalog item.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addImages( int index, com.google.cloud.recommendationengine.v1beta1.Image.Builder builderForValue) { @@ -4175,21 +3621,18 @@ public Builder addImages( return this; } /** - * - * *
            * Optional. Product images for the catalog item.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllImages( java.lang.Iterable values) { if (imagesBuilder_ == null) { ensureImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, images_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, images_); onChanged(); } else { imagesBuilder_.addAllMessages(values); @@ -4197,15 +3640,11 @@ public Builder addAllImages( return this; } /** - * - * *
            * Optional. Product images for the catalog item.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearImages() { if (imagesBuilder_ == null) { @@ -4218,15 +3657,11 @@ public Builder clearImages() { return this; } /** - * - * *
            * Optional. Product images for the catalog item.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeImages(int index) { if (imagesBuilder_ == null) { @@ -4239,51 +3674,39 @@ public Builder removeImages(int index) { return this; } /** - * - * *
            * Optional. Product images for the catalog item.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.Image.Builder getImagesBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.Image.Builder getImagesBuilder( + int index) { return getImagesFieldBuilder().getBuilder(index); } /** - * - * *
            * Optional. Product images for the catalog item.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder getImagesOrBuilder( int index) { if (imagesBuilder_ == null) { - return images_.get(index); - } else { + return images_.get(index); } else { return imagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
            * Optional. Product images for the catalog item.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getImagesOrBuilderList() { + public java.util.List + getImagesOrBuilderList() { if (imagesBuilder_ != null) { return imagesBuilder_.getMessageOrBuilderList(); } else { @@ -4291,71 +3714,56 @@ public com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder getImagesOrB } } /** - * - * *
            * Optional. Product images for the catalog item.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.recommendationengine.v1beta1.Image.Builder addImagesBuilder() { - return getImagesFieldBuilder() - .addBuilder(com.google.cloud.recommendationengine.v1beta1.Image.getDefaultInstance()); + return getImagesFieldBuilder().addBuilder( + com.google.cloud.recommendationengine.v1beta1.Image.getDefaultInstance()); } /** - * - * *
            * Optional. Product images for the catalog item.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.Image.Builder addImagesBuilder(int index) { - return getImagesFieldBuilder() - .addBuilder( - index, com.google.cloud.recommendationengine.v1beta1.Image.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.Image.Builder addImagesBuilder( + int index) { + return getImagesFieldBuilder().addBuilder( + index, com.google.cloud.recommendationengine.v1beta1.Image.getDefaultInstance()); } /** - * - * *
            * Optional. Product images for the catalog item.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getImagesBuilderList() { + public java.util.List + getImagesBuilderList() { return getImagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.Image, - com.google.cloud.recommendationengine.v1beta1.Image.Builder, - com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder> + com.google.cloud.recommendationengine.v1beta1.Image, com.google.cloud.recommendationengine.v1beta1.Image.Builder, com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder> getImagesFieldBuilder() { if (imagesBuilder_ == null) { - imagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.Image, - com.google.cloud.recommendationengine.v1beta1.Image.Builder, - com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder>( - images_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + imagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.Image, com.google.cloud.recommendationengine.v1beta1.Image.Builder, com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder>( + images_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); images_ = null; } return imagesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4365,32 +3773,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ProductCatalogItem) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ProductCatalogItem) - private static final com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem(); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductCatalogItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductCatalogItem(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductCatalogItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductCatalogItem(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4402,8 +3808,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItemOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItemOrBuilder.java similarity index 64% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItemOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItemOrBuilder.java index 6d9fa853..7a3daf97 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItemOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItemOrBuilder.java @@ -1,115 +1,67 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ProductCatalogItemOrBuilder - extends +public interface ProductCatalogItemOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ProductCatalogItem) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Optional. The exact product price.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the exactPrice field is set. */ boolean hasExactPrice(); /** - * - * *
          * Optional. The exact product price.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The exactPrice. */ com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice getExactPrice(); /** - * - * *
          * Optional. The exact product price.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder - getExactPriceOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder getExactPriceOrBuilder(); /** - * - * *
          * Optional. The product price range.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the priceRange field is set. */ boolean hasPriceRange(); /** - * - * *
          * Optional. The product price range.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The priceRange. */ com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange getPriceRange(); /** - * - * *
          * Optional. The product price range.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder - getPriceRangeOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder getPriceRangeOrBuilder(); /** - * - * *
          * Optional. A map to pass the costs associated with the product.
          * For example:
      @@ -123,8 +75,6 @@ public interface ProductCatalogItemOrBuilder
          */
         int getCostsCount();
         /**
      -   *
      -   *
          * 
          * Optional. A map to pass the costs associated with the product.
          * For example:
      @@ -136,13 +86,15 @@ public interface ProductCatalogItemOrBuilder
          *
          * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
          */
      -  boolean containsCosts(java.lang.String key);
      -  /** Use {@link #getCostsMap()} instead. */
      +  boolean containsCosts(
      +      java.lang.String key);
      +  /**
      +   * Use {@link #getCostsMap()} instead.
      +   */
         @java.lang.Deprecated
      -  java.util.Map getCosts();
      +  java.util.Map
      +  getCosts();
         /**
      -   *
      -   *
          * 
          * Optional. A map to pass the costs associated with the product.
          * For example:
      @@ -154,10 +106,9 @@ public interface ProductCatalogItemOrBuilder
          *
          * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
          */
      -  java.util.Map getCostsMap();
      +  java.util.Map
      +  getCostsMap();
         /**
      -   *
      -   *
          * 
          * Optional. A map to pass the costs associated with the product.
          * For example:
      @@ -169,10 +120,11 @@ public interface ProductCatalogItemOrBuilder
          *
          * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
          */
      -  float getCostsOrDefault(java.lang.String key, float defaultValue);
      +
      +  float getCostsOrDefault(
      +      java.lang.String key,
      +      float defaultValue);
         /**
      -   *
      -   *
          * 
          * Optional. A map to pass the costs associated with the product.
          * For example:
      @@ -184,165 +136,126 @@ public interface ProductCatalogItemOrBuilder
          *
          * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
          */
      -  float getCostsOrThrow(java.lang.String key);
      +
      +  float getCostsOrThrow(
      +      java.lang.String key);
       
         /**
      -   *
      -   *
          * 
          * Optional. Only required if the price is set. Currency code for price/costs. Use
          * three-character ISO-4217 code.
          * 
      * * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The currencyCode. */ java.lang.String getCurrencyCode(); /** - * - * *
          * Optional. Only required if the price is set. Currency code for price/costs. Use
          * three-character ISO-4217 code.
          * 
      * * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for currencyCode. */ - com.google.protobuf.ByteString getCurrencyCodeBytes(); + com.google.protobuf.ByteString + getCurrencyCodeBytes(); /** - * - * *
          * Optional. Online stock state of the catalog item. Default is `IN_STOCK`.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for stockState. */ int getStockStateValue(); /** - * - * *
          * Optional. Online stock state of the catalog item. Default is `IN_STOCK`.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The stockState. */ com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState getStockState(); /** - * - * *
          * Optional. The available quantity of the item.
          * 
      * * int64 available_quantity = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The availableQuantity. */ long getAvailableQuantity(); /** - * - * *
          * Optional. Canonical URL directly linking to the item detail page with a
          * length limit of 5 KiB..
          * 
      * * string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The canonicalProductUri. */ java.lang.String getCanonicalProductUri(); /** - * - * *
          * Optional. Canonical URL directly linking to the item detail page with a
          * length limit of 5 KiB..
          * 
      * * string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for canonicalProductUri. */ - com.google.protobuf.ByteString getCanonicalProductUriBytes(); + com.google.protobuf.ByteString + getCanonicalProductUriBytes(); /** - * - * *
          * Optional. Product images for the catalog item.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getImagesList(); + java.util.List + getImagesList(); /** - * - * *
          * Optional. Product images for the catalog item.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.recommendationengine.v1beta1.Image getImages(int index); /** - * - * *
          * Optional. Product images for the catalog item.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ int getImagesCount(); /** - * - * *
          * Optional. Product images for the catalog item.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getImagesOrBuilderList(); /** - * - * *
          * Optional. Product images for the catalog item.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder getImagesOrBuilder(int index); + com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder getImagesOrBuilder( + int index); public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceCase getPriceCase(); } diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetail.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetail.java similarity index 70% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetail.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetail.java index 56120879..56ddbc2f 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetail.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetail.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Detailed product information associated with a user event.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ProductDetail} */ -public final class ProductDetail extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ProductDetail extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ProductDetail) ProductDetailOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ProductDetail.newBuilder() to construct. private ProductDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProductDetail() { id_ = ""; currencyCode_ = ""; @@ -45,15 +27,16 @@ private ProductDetail() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProductDetail(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ProductDetail( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,71 +55,64 @@ private ProductDetail( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + id_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - currencyCode_ = s; - break; - } - case 29: - { - originalPrice_ = input.readFloat(); - break; - } - case 37: - { - displayPrice_ = input.readFloat(); - break; - } - case 40: - { - int rawValue = input.readEnum(); + currencyCode_ = s; + break; + } + case 29: { - stockState_ = rawValue; - break; - } - case 48: - { - quantity_ = input.readInt32(); - break; - } - case 56: - { - availableQuantity_ = input.readInt32(); - break; + originalPrice_ = input.readFloat(); + break; + } + case 37: { + + displayPrice_ = input.readFloat(); + break; + } + case 40: { + int rawValue = input.readEnum(); + + stockState_ = rawValue; + break; + } + case 48: { + + quantity_ = input.readInt32(); + break; + } + case 56: { + + availableQuantity_ = input.readInt32(); + break; + } + case 66: { + com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder subBuilder = null; + if (itemAttributes_ != null) { + subBuilder = itemAttributes_.toBuilder(); } - case 66: - { - com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder subBuilder = null; - if (itemAttributes_ != null) { - subBuilder = itemAttributes_.toBuilder(); - } - itemAttributes_ = - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.FeatureMap.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(itemAttributes_); - itemAttributes_ = subBuilder.buildPartial(); - } - - break; + itemAttributes_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.FeatureMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(itemAttributes_); + itemAttributes_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -144,40 +120,35 @@ private ProductDetail( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ProductDetail.class, - com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ProductDetail.class, com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** - * - * *
          * Required. Catalog item ID. UTF-8 encoded string with a length limit of 128
          * characters.
          * 
      * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The id. */ @java.lang.Override @@ -186,30 +157,30 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** - * - * *
          * Required. Catalog item ID. UTF-8 encoded string with a length limit of 128
          * characters.
          * 
      * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -220,15 +191,12 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int CURRENCY_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object currencyCode_; /** - * - * *
          * Optional. Currency code for price/costs. Use three-character ISO-4217
          * code. Required only if originalPrice or displayPrice is set.
          * 
      * * string currency_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The currencyCode. */ @java.lang.Override @@ -237,30 +205,30 @@ public java.lang.String getCurrencyCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; } } /** - * - * *
          * Optional. Currency code for price/costs. Use three-character ISO-4217
          * code. Required only if originalPrice or displayPrice is set.
          * 
      * * string currency_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for currencyCode. */ @java.lang.Override - public com.google.protobuf.ByteString getCurrencyCodeBytes() { + public com.google.protobuf.ByteString + getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -271,15 +239,12 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { public static final int ORIGINAL_PRICE_FIELD_NUMBER = 3; private float originalPrice_; /** - * - * *
          * Optional. Original price of the product. If provided, this will override
          * the original price in Catalog for this product.
          * 
      * * float original_price = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The originalPrice. */ @java.lang.Override @@ -290,15 +255,12 @@ public float getOriginalPrice() { public static final int DISPLAY_PRICE_FIELD_NUMBER = 4; private float displayPrice_; /** - * - * *
          * Optional. Display price of the product (e.g. discounted price). If
          * provided, this will override the display price in Catalog for this product.
          * 
      * * float display_price = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayPrice. */ @java.lang.Override @@ -309,54 +271,35 @@ public float getDisplayPrice() { public static final int STOCK_STATE_FIELD_NUMBER = 5; private int stockState_; /** - * - * *
          * Optional. Item stock state. If provided, this overrides the stock state
          * in Catalog for items in this event.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for stockState. */ - @java.lang.Override - public int getStockStateValue() { + @java.lang.Override public int getStockStateValue() { return stockState_; } /** - * - * *
          * Optional. Item stock state. If provided, this overrides the stock state
          * in Catalog for items in this event.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The stockState. */ - @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState - getStockState() { + @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState getStockState() { @SuppressWarnings("deprecation") - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState result = - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.valueOf( - stockState_); - return result == null - ? com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.UNRECOGNIZED - : result; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState result = com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.valueOf(stockState_); + return result == null ? com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.UNRECOGNIZED : result; } public static final int QUANTITY_FIELD_NUMBER = 6; private int quantity_; /** - * - * *
          * Optional. Quantity of the product associated with the user event. For
          * example, this field will be 2 if two products are added to the shopping
      @@ -366,7 +309,6 @@ public int getStockStateValue() {
          * 
      * * int32 quantity = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The quantity. */ @java.lang.Override @@ -377,8 +319,6 @@ public int getQuantity() { public static final int AVAILABLE_QUANTITY_FIELD_NUMBER = 7; private int availableQuantity_; /** - * - * *
          * Optional. Quantity of the products in stock when a user event happens.
          * Optional. If provided, this overrides the available quantity in Catalog for
      @@ -389,7 +329,6 @@ public int getQuantity() {
          * 
      * * int32 available_quantity = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The availableQuantity. */ @java.lang.Override @@ -400,16 +339,11 @@ public int getAvailableQuantity() { public static final int ITEM_ATTRIBUTES_FIELD_NUMBER = 8; private com.google.cloud.recommendationengine.v1beta1.FeatureMap itemAttributes_; /** - * - * *
          * Optional. Extra features associated with a product in the user event.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the itemAttributes field is set. */ @java.lang.Override @@ -417,43 +351,30 @@ public boolean hasItemAttributes() { return itemAttributes_ != null; } /** - * - * *
          * Optional. Extra features associated with a product in the user event.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The itemAttributes. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.FeatureMap getItemAttributes() { - return itemAttributes_ == null - ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() - : itemAttributes_; + return itemAttributes_ == null ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() : itemAttributes_; } /** - * - * *
          * Optional. Extra features associated with a product in the user event.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder - getItemAttributesOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getItemAttributesOrBuilder() { return getItemAttributes(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -465,7 +386,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -478,10 +400,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (java.lang.Float.floatToRawIntBits(displayPrice_) != 0) { output.writeFloat(4, displayPrice_); } - if (stockState_ - != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState - .STOCK_STATE_UNSPECIFIED - .getNumber()) { + if (stockState_ != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.STOCK_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, stockState_); } if (quantity_ != 0) { @@ -509,25 +428,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, currencyCode_); } if (java.lang.Float.floatToRawIntBits(originalPrice_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, originalPrice_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, originalPrice_); } if (java.lang.Float.floatToRawIntBits(displayPrice_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, displayPrice_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, displayPrice_); } - if (stockState_ - != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState - .STOCK_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, stockState_); + if (stockState_ != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.STOCK_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, stockState_); } if (quantity_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, quantity_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, quantity_); } if (availableQuantity_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, availableQuantity_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, availableQuantity_); } if (itemAttributes_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getItemAttributes()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getItemAttributes()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -537,26 +459,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ProductDetail)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ProductDetail other = - (com.google.cloud.recommendationengine.v1beta1.ProductDetail) obj; + com.google.cloud.recommendationengine.v1beta1.ProductDetail other = (com.google.cloud.recommendationengine.v1beta1.ProductDetail) obj; - if (!getId().equals(other.getId())) return false; - if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getCurrencyCode() + .equals(other.getCurrencyCode())) return false; if (java.lang.Float.floatToIntBits(getOriginalPrice()) - != java.lang.Float.floatToIntBits(other.getOriginalPrice())) return false; + != java.lang.Float.floatToIntBits( + other.getOriginalPrice())) return false; if (java.lang.Float.floatToIntBits(getDisplayPrice()) - != java.lang.Float.floatToIntBits(other.getDisplayPrice())) return false; + != java.lang.Float.floatToIntBits( + other.getDisplayPrice())) return false; if (stockState_ != other.stockState_) return false; - if (getQuantity() != other.getQuantity()) return false; - if (getAvailableQuantity() != other.getAvailableQuantity()) return false; + if (getQuantity() + != other.getQuantity()) return false; + if (getAvailableQuantity() + != other.getAvailableQuantity()) return false; if (hasItemAttributes() != other.hasItemAttributes()) return false; if (hasItemAttributes()) { - if (!getItemAttributes().equals(other.getItemAttributes())) return false; + if (!getItemAttributes() + .equals(other.getItemAttributes())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -574,9 +502,11 @@ public int hashCode() { hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; hash = (53 * hash) + getCurrencyCode().hashCode(); hash = (37 * hash) + ORIGINAL_PRICE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getOriginalPrice()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getOriginalPrice()); hash = (37 * hash) + DISPLAY_PRICE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getDisplayPrice()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getDisplayPrice()); hash = (37 * hash) + STOCK_STATE_FIELD_NUMBER; hash = (53 * hash) + stockState_; hash = (37 * hash) + QUANTITY_FIELD_NUMBER; @@ -593,127 +523,117 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.ProductDetail prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ProductDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Detailed product information associated with a user event.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ProductDetail} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ProductDetail) com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ProductDetail.class, - com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ProductDetail.class, com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder.class); } // Construct using com.google.cloud.recommendationengine.v1beta1.ProductDetail.newBuilder() @@ -721,15 +641,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -757,9 +678,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor; } @java.lang.Override @@ -778,8 +699,7 @@ public com.google.cloud.recommendationengine.v1beta1.ProductDetail build() { @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ProductDetail buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ProductDetail result = - new com.google.cloud.recommendationengine.v1beta1.ProductDetail(this); + com.google.cloud.recommendationengine.v1beta1.ProductDetail result = new com.google.cloud.recommendationengine.v1beta1.ProductDetail(this); result.id_ = id_; result.currencyCode_ = currencyCode_; result.originalPrice_ = originalPrice_; @@ -800,39 +720,38 @@ public com.google.cloud.recommendationengine.v1beta1.ProductDetail buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.ProductDetail) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductDetail) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductDetail)other); } else { super.mergeFrom(other); return this; @@ -840,8 +759,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ProductDetail other) { - if (other == com.google.cloud.recommendationengine.v1beta1.ProductDetail.getDefaultInstance()) - return this; + if (other == com.google.cloud.recommendationengine.v1beta1.ProductDetail.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); @@ -887,8 +805,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.ProductDetail) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ProductDetail) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -900,21 +817,19 @@ public Builder mergeFrom( private java.lang.Object id_ = ""; /** - * - * *
            * Required. Catalog item ID. UTF-8 encoded string with a length limit of 128
            * characters.
            * 
      * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -923,22 +838,21 @@ public java.lang.String getId() { } } /** - * - * *
            * Required. Catalog item ID. UTF-8 encoded string with a length limit of 128
            * characters.
            * 
      * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -946,64 +860,57 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
            * Required. Catalog item ID. UTF-8 encoded string with a length limit of 128
            * characters.
            * 
      * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { + public Builder setId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** - * - * *
            * Required. Catalog item ID. UTF-8 encoded string with a length limit of 128
            * characters.
            * 
      * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
            * Required. Catalog item ID. UTF-8 encoded string with a length limit of 128
            * characters.
            * 
      * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { + public Builder setIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -1011,21 +918,19 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object currencyCode_ = ""; /** - * - * *
            * Optional. Currency code for price/costs. Use three-character ISO-4217
            * code. Required only if originalPrice or displayPrice is set.
            * 
      * * string currency_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The currencyCode. */ public java.lang.String getCurrencyCode() { java.lang.Object ref = currencyCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; @@ -1034,22 +939,21 @@ public java.lang.String getCurrencyCode() { } } /** - * - * *
            * Optional. Currency code for price/costs. Use three-character ISO-4217
            * code. Required only if originalPrice or displayPrice is set.
            * 
      * * string currency_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for currencyCode. */ - public com.google.protobuf.ByteString getCurrencyCodeBytes() { + public com.google.protobuf.ByteString + getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -1057,80 +961,70 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { } } /** - * - * *
            * Optional. Currency code for price/costs. Use three-character ISO-4217
            * code. Required only if originalPrice or displayPrice is set.
            * 
      * * string currency_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCode(java.lang.String value) { + public Builder setCurrencyCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + currencyCode_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Currency code for price/costs. Use three-character ISO-4217
            * code. Required only if originalPrice or displayPrice is set.
            * 
      * * string currency_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCurrencyCode() { - + currencyCode_ = getDefaultInstance().getCurrencyCode(); onChanged(); return this; } /** - * - * *
            * Optional. Currency code for price/costs. Use three-character ISO-4217
            * code. Required only if originalPrice or displayPrice is set.
            * 
      * * string currency_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { + public Builder setCurrencyCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + currencyCode_ = value; onChanged(); return this; } - private float originalPrice_; + private float originalPrice_ ; /** - * - * *
            * Optional. Original price of the product. If provided, this will override
            * the original price in Catalog for this product.
            * 
      * * float original_price = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The originalPrice. */ @java.lang.Override @@ -1138,54 +1032,45 @@ public float getOriginalPrice() { return originalPrice_; } /** - * - * *
            * Optional. Original price of the product. If provided, this will override
            * the original price in Catalog for this product.
            * 
      * * float original_price = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The originalPrice to set. * @return This builder for chaining. */ public Builder setOriginalPrice(float value) { - + originalPrice_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Original price of the product. If provided, this will override
            * the original price in Catalog for this product.
            * 
      * * float original_price = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOriginalPrice() { - + originalPrice_ = 0F; onChanged(); return this; } - private float displayPrice_; + private float displayPrice_ ; /** - * - * *
            * Optional. Display price of the product (e.g. discounted price). If
            * provided, this will override the display price in Catalog for this product.
            * 
      * * float display_price = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayPrice. */ @java.lang.Override @@ -1193,38 +1078,32 @@ public float getDisplayPrice() { return displayPrice_; } /** - * - * *
            * Optional. Display price of the product (e.g. discounted price). If
            * provided, this will override the display price in Catalog for this product.
            * 
      * * float display_price = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayPrice to set. * @return This builder for chaining. */ public Builder setDisplayPrice(float value) { - + displayPrice_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Display price of the product (e.g. discounted price). If
            * provided, this will override the display price in Catalog for this product.
            * 
      * * float display_price = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayPrice() { - + displayPrice_ = 0F; onChanged(); return this; @@ -1232,119 +1111,85 @@ public Builder clearDisplayPrice() { private int stockState_ = 0; /** - * - * *
            * Optional. Item stock state. If provided, this overrides the stock state
            * in Catalog for items in this event.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for stockState. */ - @java.lang.Override - public int getStockStateValue() { + @java.lang.Override public int getStockStateValue() { return stockState_; } /** - * - * *
            * Optional. Item stock state. If provided, this overrides the stock state
            * in Catalog for items in this event.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for stockState to set. * @return This builder for chaining. */ public Builder setStockStateValue(int value) { - + stockState_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Item stock state. If provided, this overrides the stock state
            * in Catalog for items in this event.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The stockState. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState - getStockState() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState getStockState() { @SuppressWarnings("deprecation") - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState result = - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.valueOf( - stockState_); - return result == null - ? com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.UNRECOGNIZED - : result; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState result = com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.valueOf(stockState_); + return result == null ? com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.UNRECOGNIZED : result; } /** - * - * *
            * Optional. Item stock state. If provided, this overrides the stock state
            * in Catalog for items in this event.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param value The stockState to set. * @return This builder for chaining. */ - public Builder setStockState( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState value) { + public Builder setStockState(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState value) { if (value == null) { throw new NullPointerException(); } - + stockState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
            * Optional. Item stock state. If provided, this overrides the stock state
            * in Catalog for items in this event.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearStockState() { - + stockState_ = 0; onChanged(); return this; } - private int quantity_; + private int quantity_ ; /** - * - * *
            * Optional. Quantity of the product associated with the user event. For
            * example, this field will be 2 if two products are added to the shopping
      @@ -1354,7 +1199,6 @@ public Builder clearStockState() {
            * 
      * * int32 quantity = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The quantity. */ @java.lang.Override @@ -1362,8 +1206,6 @@ public int getQuantity() { return quantity_; } /** - * - * *
            * Optional. Quantity of the product associated with the user event. For
            * example, this field will be 2 if two products are added to the shopping
      @@ -1373,19 +1215,16 @@ public int getQuantity() {
            * 
      * * int32 quantity = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The quantity to set. * @return This builder for chaining. */ public Builder setQuantity(int value) { - + quantity_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Quantity of the product associated with the user event. For
            * example, this field will be 2 if two products are added to the shopping
      @@ -1395,20 +1234,17 @@ public Builder setQuantity(int value) {
            * 
      * * int32 quantity = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearQuantity() { - + quantity_ = 0; onChanged(); return this; } - private int availableQuantity_; + private int availableQuantity_ ; /** - * - * *
            * Optional. Quantity of the products in stock when a user event happens.
            * Optional. If provided, this overrides the available quantity in Catalog for
      @@ -1419,7 +1255,6 @@ public Builder clearQuantity() {
            * 
      * * int32 available_quantity = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The availableQuantity. */ @java.lang.Override @@ -1427,8 +1262,6 @@ public int getAvailableQuantity() { return availableQuantity_; } /** - * - * *
            * Optional. Quantity of the products in stock when a user event happens.
            * Optional. If provided, this overrides the available quantity in Catalog for
      @@ -1439,19 +1272,16 @@ public int getAvailableQuantity() {
            * 
      * * int32 available_quantity = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The availableQuantity to set. * @return This builder for chaining. */ public Builder setAvailableQuantity(int value) { - + availableQuantity_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Quantity of the products in stock when a user event happens.
            * Optional. If provided, this overrides the available quantity in Catalog for
      @@ -1462,11 +1292,10 @@ public Builder setAvailableQuantity(int value) {
            * 
      * * int32 available_quantity = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAvailableQuantity() { - + availableQuantity_ = 0; onChanged(); return this; @@ -1474,61 +1303,41 @@ public Builder clearAvailableQuantity() { private com.google.cloud.recommendationengine.v1beta1.FeatureMap itemAttributes_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.FeatureMap, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, - com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> - itemAttributesBuilder_; + com.google.cloud.recommendationengine.v1beta1.FeatureMap, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> itemAttributesBuilder_; /** - * - * *
            * Optional. Extra features associated with a product in the user event.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the itemAttributes field is set. */ public boolean hasItemAttributes() { return itemAttributesBuilder_ != null || itemAttributes_ != null; } /** - * - * *
            * Optional. Extra features associated with a product in the user event.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The itemAttributes. */ public com.google.cloud.recommendationengine.v1beta1.FeatureMap getItemAttributes() { if (itemAttributesBuilder_ == null) { - return itemAttributes_ == null - ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() - : itemAttributes_; + return itemAttributes_ == null ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() : itemAttributes_; } else { return itemAttributesBuilder_.getMessage(); } } /** - * - * *
            * Optional. Extra features associated with a product in the user event.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setItemAttributes( - com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { + public Builder setItemAttributes(com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { if (itemAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1542,15 +1351,11 @@ public Builder setItemAttributes( return this; } /** - * - * *
            * Optional. Extra features associated with a product in the user event.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setItemAttributes( com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder builderForValue) { @@ -1564,24 +1369,17 @@ public Builder setItemAttributes( return this; } /** - * - * *
            * Optional. Extra features associated with a product in the user event.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeItemAttributes( - com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { + public Builder mergeItemAttributes(com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { if (itemAttributesBuilder_ == null) { if (itemAttributes_ != null) { itemAttributes_ = - com.google.cloud.recommendationengine.v1beta1.FeatureMap.newBuilder(itemAttributes_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.recommendationengine.v1beta1.FeatureMap.newBuilder(itemAttributes_).mergeFrom(value).buildPartial(); } else { itemAttributes_ = value; } @@ -1593,15 +1391,11 @@ public Builder mergeItemAttributes( return this; } /** - * - * *
            * Optional. Extra features associated with a product in the user event.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearItemAttributes() { if (itemAttributesBuilder_ == null) { @@ -1615,73 +1409,55 @@ public Builder clearItemAttributes() { return this; } /** - * - * *
            * Optional. Extra features associated with a product in the user event.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder - getItemAttributesBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder getItemAttributesBuilder() { + onChanged(); return getItemAttributesFieldBuilder().getBuilder(); } /** - * - * *
            * Optional. Extra features associated with a product in the user event.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder - getItemAttributesOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getItemAttributesOrBuilder() { if (itemAttributesBuilder_ != null) { return itemAttributesBuilder_.getMessageOrBuilder(); } else { - return itemAttributes_ == null - ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() - : itemAttributes_; + return itemAttributes_ == null ? + com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() : itemAttributes_; } } /** - * - * *
            * Optional. Extra features associated with a product in the user event.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.FeatureMap, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, - com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> + com.google.cloud.recommendationengine.v1beta1.FeatureMap, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> getItemAttributesFieldBuilder() { if (itemAttributesBuilder_ == null) { - itemAttributesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.FeatureMap, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, - com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder>( - getItemAttributes(), getParentForChildren(), isClean()); + itemAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.FeatureMap, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder>( + getItemAttributes(), + getParentForChildren(), + isClean()); itemAttributes_ = null; } return itemAttributesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1691,12 +1467,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ProductDetail) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ProductDetail) private static final com.google.cloud.recommendationengine.v1beta1.ProductDetail DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ProductDetail(); } @@ -1705,16 +1481,16 @@ public static com.google.cloud.recommendationengine.v1beta1.ProductDetail getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductDetail(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductDetail(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1729,4 +1505,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.recommendationengine.v1beta1.ProductDetail getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetailOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetailOrBuilder.java similarity index 72% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetailOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetailOrBuilder.java index f628f0a2..64562f69 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetailOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetailOrBuilder.java @@ -1,144 +1,100 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ProductDetailOrBuilder - extends +public interface ProductDetailOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ProductDetail) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required. Catalog item ID. UTF-8 encoded string with a length limit of 128
          * characters.
          * 
      * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The id. */ java.lang.String getId(); /** - * - * *
          * Required. Catalog item ID. UTF-8 encoded string with a length limit of 128
          * characters.
          * 
      * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
          * Optional. Currency code for price/costs. Use three-character ISO-4217
          * code. Required only if originalPrice or displayPrice is set.
          * 
      * * string currency_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The currencyCode. */ java.lang.String getCurrencyCode(); /** - * - * *
          * Optional. Currency code for price/costs. Use three-character ISO-4217
          * code. Required only if originalPrice or displayPrice is set.
          * 
      * * string currency_code = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for currencyCode. */ - com.google.protobuf.ByteString getCurrencyCodeBytes(); + com.google.protobuf.ByteString + getCurrencyCodeBytes(); /** - * - * *
          * Optional. Original price of the product. If provided, this will override
          * the original price in Catalog for this product.
          * 
      * * float original_price = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The originalPrice. */ float getOriginalPrice(); /** - * - * *
          * Optional. Display price of the product (e.g. discounted price). If
          * provided, this will override the display price in Catalog for this product.
          * 
      * * float display_price = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayPrice. */ float getDisplayPrice(); /** - * - * *
          * Optional. Item stock state. If provided, this overrides the stock state
          * in Catalog for items in this event.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for stockState. */ int getStockStateValue(); /** - * - * *
          * Optional. Item stock state. If provided, this overrides the stock state
          * in Catalog for items in this event.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The stockState. */ com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState getStockState(); /** - * - * *
          * Optional. Quantity of the product associated with the user event. For
          * example, this field will be 2 if two products are added to the shopping
      @@ -148,14 +104,11 @@ public interface ProductDetailOrBuilder
          * 
      * * int32 quantity = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The quantity. */ int getQuantity(); /** - * - * *
          * Optional. Quantity of the products in stock when a user event happens.
          * Optional. If provided, this overrides the available quantity in Catalog for
      @@ -166,49 +119,34 @@ public interface ProductDetailOrBuilder
          * 
      * * int32 available_quantity = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The availableQuantity. */ int getAvailableQuantity(); /** - * - * *
          * Optional. Extra features associated with a product in the user event.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the itemAttributes field is set. */ boolean hasItemAttributes(); /** - * - * *
          * Optional. Extra features associated with a product in the user event.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The itemAttributes. */ com.google.cloud.recommendationengine.v1beta1.FeatureMap getItemAttributes(); /** - * - * *
          * Optional. Extra features associated with a product in the user event.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getItemAttributesOrBuilder(); } diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetail.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetail.java similarity index 73% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetail.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetail.java index bf2dbea4..110324d7 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetail.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetail.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * ProductEventDetail captures user event information specific to retail
        * products.
      @@ -28,16 +11,15 @@
        *
        * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ProductEventDetail}
        */
      -public final class ProductEventDetail extends com.google.protobuf.GeneratedMessageV3
      -    implements
      +public final class ProductEventDetail extends
      +    com.google.protobuf.GeneratedMessageV3 implements
           // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ProductEventDetail)
           ProductEventDetailOrBuilder {
      -  private static final long serialVersionUID = 0L;
      +private static final long serialVersionUID = 0L;
         // Use ProductEventDetail.newBuilder() to construct.
         private ProductEventDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
      -
         private ProductEventDetail() {
           searchQuery_ = "";
           pageCategories_ = java.util.Collections.emptyList();
      @@ -48,15 +30,16 @@ private ProductEventDetail() {
       
         @java.lang.Override
         @SuppressWarnings({"unused"})
      -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      +  protected java.lang.Object newInstance(
      +      UnusedPrivateParameter unused) {
           return new ProductEventDetail();
         }
       
         @java.lang.Override
      -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      +  public final com.google.protobuf.UnknownFieldSet
      +  getUnknownFields() {
           return this.unknownFields;
         }
      -
         private ProductEventDetail(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      @@ -76,82 +59,62 @@ private ProductEventDetail(
                 case 0:
                   done = true;
                   break;
      -          case 10:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +          case 10: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              searchQuery_ = s;
      -              break;
      -            }
      -          case 18:
      -            {
      -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
      -                pageCategories_ =
      -                    new java.util.ArrayList<
      -                        com.google.cloud.recommendationengine.v1beta1.CatalogItem
      -                            .CategoryHierarchy>();
      -                mutable_bitField0_ |= 0x00000001;
      -              }
      -              pageCategories_.add(
      -                  input.readMessage(
      -                      com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy
      -                          .parser(),
      -                      extensionRegistry));
      -              break;
      +            searchQuery_ = s;
      +            break;
      +          }
      +          case 18: {
      +            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
      +              pageCategories_ = new java.util.ArrayList();
      +              mutable_bitField0_ |= 0x00000001;
                   }
      -          case 26:
      -            {
      -              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
      -                productDetails_ =
      -                    new java.util.ArrayList<
      -                        com.google.cloud.recommendationengine.v1beta1.ProductDetail>();
      -                mutable_bitField0_ |= 0x00000002;
      -              }
      -              productDetails_.add(
      -                  input.readMessage(
      -                      com.google.cloud.recommendationengine.v1beta1.ProductDetail.parser(),
      -                      extensionRegistry));
      -              break;
      +            pageCategories_.add(
      +                input.readMessage(com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.parser(), extensionRegistry));
      +            break;
      +          }
      +          case 26: {
      +            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
      +              productDetails_ = new java.util.ArrayList();
      +              mutable_bitField0_ |= 0x00000002;
                   }
      -          case 34:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +            productDetails_.add(
      +                input.readMessage(com.google.cloud.recommendationengine.v1beta1.ProductDetail.parser(), extensionRegistry));
      +            break;
      +          }
      +          case 34: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              listId_ = s;
      -              break;
      -            }
      -          case 42:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +            listId_ = s;
      +            break;
      +          }
      +          case 42: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              cartId_ = s;
      -              break;
      +            cartId_ = s;
      +            break;
      +          }
      +          case 50: {
      +            com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder subBuilder = null;
      +            if (purchaseTransaction_ != null) {
      +              subBuilder = purchaseTransaction_.toBuilder();
                   }
      -          case 50:
      -            {
      -              com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder subBuilder =
      -                  null;
      -              if (purchaseTransaction_ != null) {
      -                subBuilder = purchaseTransaction_.toBuilder();
      -              }
      -              purchaseTransaction_ =
      -                  input.readMessage(
      -                      com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.parser(),
      -                      extensionRegistry);
      -              if (subBuilder != null) {
      -                subBuilder.mergeFrom(purchaseTransaction_);
      -                purchaseTransaction_ = subBuilder.buildPartial();
      -              }
      -
      -              break;
      +            purchaseTransaction_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.parser(), extensionRegistry);
      +            if (subBuilder != null) {
      +              subBuilder.mergeFrom(purchaseTransaction_);
      +              purchaseTransaction_ = subBuilder.buildPartial();
                   }
      -          default:
      -            {
      -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
      -                done = true;
      -              }
      -              break;
      +
      +            break;
      +          }
      +          default: {
      +            if (!parseUnknownField(
      +                input, unknownFields, extensionRegistry, tag)) {
      +              done = true;
                   }
      +            break;
      +          }
               }
             }
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      @@ -159,7 +122,8 @@ private ProductEventDetail(
           } catch (com.google.protobuf.UninitializedMessageException e) {
             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
           } catch (java.io.IOException e) {
      -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      +      throw new com.google.protobuf.InvalidProtocolBufferException(
      +          e).setUnfinishedMessage(this);
           } finally {
             if (((mutable_bitField0_ & 0x00000001) != 0)) {
               pageCategories_ = java.util.Collections.unmodifiableList(pageCategories_);
      @@ -171,34 +135,28 @@ private ProductEventDetail(
             makeExtensionsImmutable();
           }
         }
      -
      -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -    return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass
      -        .internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor;
      +  public static final com.google.protobuf.Descriptors.Descriptor
      +      getDescriptor() {
      +    return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor;
         }
       
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
      -    return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass
      -        .internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_fieldAccessorTable
      +    return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
      -            com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.class,
      -            com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder.class);
      +            com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.class, com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder.class);
         }
       
         public static final int SEARCH_QUERY_FIELD_NUMBER = 1;
         private volatile java.lang.Object searchQuery_;
         /**
      -   *
      -   *
          * 
          * Required for `search` events. Other event types should not set this field.
          * The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
          * 
      * * string search_query = 1; - * * @return The searchQuery. */ @java.lang.Override @@ -207,30 +165,30 @@ public java.lang.String getSearchQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); searchQuery_ = s; return s; } } /** - * - * *
          * Required for `search` events. Other event types should not set this field.
          * The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
          * 
      * * string search_query = 1; - * * @return The bytes for searchQuery. */ @java.lang.Override - public com.google.protobuf.ByteString getSearchQueryBytes() { + public com.google.protobuf.ByteString + getSearchQueryBytes() { java.lang.Object ref = searchQuery_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); searchQuery_ = b; return b; } else { @@ -239,12 +197,8 @@ public com.google.protobuf.ByteString getSearchQueryBytes() { } public static final int PAGE_CATEGORIES_FIELD_NUMBER = 2; - private java.util.List< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy> - pageCategories_; + private java.util.List pageCategories_; /** - * - * *
          * Required for `category-page-view` events. Other event types should not set
          * this field.
      @@ -254,18 +208,13 @@ public com.google.protobuf.ByteString getSearchQueryBytes() {
          * categories : ["Sales", "2017 Black Friday Deals"].
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ @java.lang.Override - public java.util.List - getPageCategoriesList() { + public java.util.List getPageCategoriesList() { return pageCategories_; } /** - * - * *
          * Required for `category-page-view` events. Other event types should not set
          * this field.
      @@ -275,20 +224,14 @@ public com.google.protobuf.ByteString getSearchQueryBytes() {
          * categories : ["Sales", "2017 Black Friday Deals"].
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> + public java.util.List getPageCategoriesOrBuilderList() { return pageCategories_; } /** - * - * *
          * Required for `category-page-view` events. Other event types should not set
          * this field.
      @@ -298,17 +241,13 @@ public com.google.protobuf.ByteString getSearchQueryBytes() {
          * categories : ["Sales", "2017 Black Friday Deals"].
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ @java.lang.Override public int getPageCategoriesCount() { return pageCategories_.size(); } /** - * - * *
          * Required for `category-page-view` events. Other event types should not set
          * this field.
      @@ -318,18 +257,13 @@ public int getPageCategoriesCount() {
          * categories : ["Sales", "2017 Black Friday Deals"].
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - getPageCategories(int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getPageCategories(int index) { return pageCategories_.get(index); } /** - * - * *
          * Required for `category-page-view` events. Other event types should not set
          * this field.
      @@ -339,22 +273,17 @@ public int getPageCategoriesCount() {
          * categories : ["Sales", "2017 Black Friday Deals"].
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder - getPageCategoriesOrBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder getPageCategoriesOrBuilder( + int index) { return pageCategories_.get(index); } public static final int PRODUCT_DETAILS_FIELD_NUMBER = 3; - private java.util.List - productDetails_; + private java.util.List productDetails_; /** - * - * *
          * The main product details related to the event.
          * This field is required for the following event types:
      @@ -376,17 +305,13 @@ public int getPageCategoriesCount() {
          * * `search`
          * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ @java.lang.Override - public java.util.List - getProductDetailsList() { + public java.util.List getProductDetailsList() { return productDetails_; } /** - * - * *
          * The main product details related to the event.
          * This field is required for the following event types:
      @@ -408,18 +333,14 @@ public int getPageCategoriesCount() {
          * * `search`
          * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder> + public java.util.List getProductDetailsOrBuilderList() { return productDetails_; } /** - * - * *
          * The main product details related to the event.
          * This field is required for the following event types:
      @@ -441,16 +362,13 @@ public int getPageCategoriesCount() {
          * * `search`
          * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ @java.lang.Override public int getProductDetailsCount() { return productDetails_.size(); } /** - * - * *
          * The main product details related to the event.
          * This field is required for the following event types:
      @@ -472,16 +390,13 @@ public int getProductDetailsCount() {
          * * `search`
          * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ProductDetail getProductDetails(int index) { return productDetails_.get(index); } /** - * - * *
          * The main product details related to the event.
          * This field is required for the following event types:
      @@ -503,20 +418,17 @@ public com.google.cloud.recommendationengine.v1beta1.ProductDetail getProductDet
          * * `search`
          * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder - getProductDetailsOrBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder getProductDetailsOrBuilder( + int index) { return productDetails_.get(index); } public static final int LIST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object listId_; /** - * - * *
          * Required for `add-to-list` and `remove-from-list` events. The id or name of
          * the list that the item is being added to or removed from. Other event types
      @@ -524,7 +436,6 @@ public com.google.cloud.recommendationengine.v1beta1.ProductDetail getProductDet
          * 
      * * string list_id = 4; - * * @return The listId. */ @java.lang.Override @@ -533,15 +444,14 @@ public java.lang.String getListId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); listId_ = s; return s; } } /** - * - * *
          * Required for `add-to-list` and `remove-from-list` events. The id or name of
          * the list that the item is being added to or removed from. Other event types
      @@ -549,15 +459,16 @@ public java.lang.String getListId() {
          * 
      * * string list_id = 4; - * * @return The bytes for listId. */ @java.lang.Override - public com.google.protobuf.ByteString getListIdBytes() { + public com.google.protobuf.ByteString + getListIdBytes() { java.lang.Object ref = listId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); listId_ = b; return b; } else { @@ -568,8 +479,6 @@ public com.google.protobuf.ByteString getListIdBytes() { public static final int CART_ID_FIELD_NUMBER = 5; private volatile java.lang.Object cartId_; /** - * - * *
          * Optional. The id or name of the associated shopping cart. This id is used
          * to associate multiple items added or present in the cart before purchase.
      @@ -578,7 +487,6 @@ public com.google.protobuf.ByteString getListIdBytes() {
          * 
      * * string cart_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The cartId. */ @java.lang.Override @@ -587,15 +495,14 @@ public java.lang.String getCartId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cartId_ = s; return s; } } /** - * - * *
          * Optional. The id or name of the associated shopping cart. This id is used
          * to associate multiple items added or present in the cart before purchase.
      @@ -604,15 +511,16 @@ public java.lang.String getCartId() {
          * 
      * * string cart_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for cartId. */ @java.lang.Override - public com.google.protobuf.ByteString getCartIdBytes() { + public com.google.protobuf.ByteString + getCartIdBytes() { java.lang.Object ref = cartId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cartId_ = b; return b; } else { @@ -623,18 +531,13 @@ public com.google.protobuf.ByteString getCartIdBytes() { public static final int PURCHASE_TRANSACTION_FIELD_NUMBER = 6; private com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchaseTransaction_; /** - * - * *
          * Optional. A transaction represents the entire purchase transaction.
          * Required for `purchase-complete` events. Optional for `checkout-start`
          * events. Other event types should not set this field.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the purchaseTransaction field is set. */ @java.lang.Override @@ -642,48 +545,34 @@ public boolean hasPurchaseTransaction() { return purchaseTransaction_ != null; } /** - * - * *
          * Optional. A transaction represents the entire purchase transaction.
          * Required for `purchase-complete` events. Optional for `checkout-start`
          * events. Other event types should not set this field.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The purchaseTransaction. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction - getPurchaseTransaction() { - return purchaseTransaction_ == null - ? com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.getDefaultInstance() - : purchaseTransaction_; + public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction getPurchaseTransaction() { + return purchaseTransaction_ == null ? com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.getDefaultInstance() : purchaseTransaction_; } /** - * - * *
          * Optional. A transaction represents the entire purchase transaction.
          * Required for `purchase-complete` events. Optional for `checkout-start`
          * events. Other event types should not set this field.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder - getPurchaseTransactionOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder getPurchaseTransactionOrBuilder() { return getPurchaseTransaction(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -695,7 +584,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(searchQuery_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, searchQuery_); } @@ -727,10 +617,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, searchQuery_); } for (int i = 0; i < pageCategories_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, pageCategories_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, pageCategories_.get(i)); } for (int i = 0; i < productDetails_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, productDetails_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, productDetails_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(listId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, listId_); @@ -739,7 +631,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, cartId_); } if (purchaseTransaction_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPurchaseTransaction()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getPurchaseTransaction()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -749,22 +642,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ProductEventDetail)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ProductEventDetail other = - (com.google.cloud.recommendationengine.v1beta1.ProductEventDetail) obj; - - if (!getSearchQuery().equals(other.getSearchQuery())) return false; - if (!getPageCategoriesList().equals(other.getPageCategoriesList())) return false; - if (!getProductDetailsList().equals(other.getProductDetailsList())) return false; - if (!getListId().equals(other.getListId())) return false; - if (!getCartId().equals(other.getCartId())) return false; + com.google.cloud.recommendationengine.v1beta1.ProductEventDetail other = (com.google.cloud.recommendationengine.v1beta1.ProductEventDetail) obj; + + if (!getSearchQuery() + .equals(other.getSearchQuery())) return false; + if (!getPageCategoriesList() + .equals(other.getPageCategoriesList())) return false; + if (!getProductDetailsList() + .equals(other.getProductDetailsList())) return false; + if (!getListId() + .equals(other.getListId())) return false; + if (!getCartId() + .equals(other.getCartId())) return false; if (hasPurchaseTransaction() != other.hasPurchaseTransaction()) return false; if (hasPurchaseTransaction()) { - if (!getPurchaseTransaction().equals(other.getPurchaseTransaction())) return false; + if (!getPurchaseTransaction() + .equals(other.getPurchaseTransaction())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -801,104 +699,96 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.ProductEventDetail prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ProductEventDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * ProductEventDetail captures user event information specific to retail
          * products.
      @@ -906,23 +796,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *
          * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ProductEventDetail}
          */
      -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
      -      implements
      +  public static final class Builder extends
      +      com.google.protobuf.GeneratedMessageV3.Builder implements
             // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ProductEventDetail)
             com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder {
      -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass
      -          .internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor;
      +    public static final com.google.protobuf.Descriptors.Descriptor
      +        getDescriptor() {
      +      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor;
           }
       
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
      -      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass
      -          .internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_fieldAccessorTable
      +      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
      -              com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.class,
      -              com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder.class);
      +              com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.class, com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder.class);
           }
       
           // Construct using com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.newBuilder()
      @@ -930,18 +818,18 @@ private Builder() {
             maybeForceBuilderInitialization();
           }
       
      -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +    private Builder(
      +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
             maybeForceBuilderInitialization();
           }
      -
           private void maybeForceBuilderInitialization() {
      -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
      +      if (com.google.protobuf.GeneratedMessageV3
      +              .alwaysUseFieldBuilders) {
               getPageCategoriesFieldBuilder();
               getProductDetailsFieldBuilder();
             }
           }
      -
           @java.lang.Override
           public Builder clear() {
             super.clear();
      @@ -973,14 +861,13 @@ public Builder clear() {
           }
       
           @java.lang.Override
      -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      -      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass
      -          .internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor;
      +    public com.google.protobuf.Descriptors.Descriptor
      +        getDescriptorForType() {
      +      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor;
           }
       
           @java.lang.Override
      -    public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail
      -        getDefaultInstanceForType() {
      +    public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail getDefaultInstanceForType() {
             return com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.getDefaultInstance();
           }
       
      @@ -995,8 +882,7 @@ public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail build()
       
           @java.lang.Override
           public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail buildPartial() {
      -      com.google.cloud.recommendationengine.v1beta1.ProductEventDetail result =
      -          new com.google.cloud.recommendationengine.v1beta1.ProductEventDetail(this);
      +      com.google.cloud.recommendationengine.v1beta1.ProductEventDetail result = new com.google.cloud.recommendationengine.v1beta1.ProductEventDetail(this);
             int from_bitField0_ = bitField0_;
             result.searchQuery_ = searchQuery_;
             if (pageCategoriesBuilder_ == null) {
      @@ -1032,50 +918,46 @@ public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail buildPar
           public Builder clone() {
             return super.clone();
           }
      -
           @java.lang.Override
           public Builder setField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        java.lang.Object value) {
             return super.setField(field, value);
           }
      -
           @java.lang.Override
      -    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      +    public Builder clearField(
      +        com.google.protobuf.Descriptors.FieldDescriptor field) {
             return super.clearField(field);
           }
      -
           @java.lang.Override
      -    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      +    public Builder clearOneof(
      +        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
             return super.clearOneof(oneof);
           }
      -
           @java.lang.Override
           public Builder setRepeatedField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        int index, java.lang.Object value) {
             return super.setRepeatedField(field, index, value);
           }
      -
           @java.lang.Override
           public Builder addRepeatedField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        java.lang.Object value) {
             return super.addRepeatedField(field, value);
           }
      -
           @java.lang.Override
           public Builder mergeFrom(com.google.protobuf.Message other) {
             if (other instanceof com.google.cloud.recommendationengine.v1beta1.ProductEventDetail) {
      -        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductEventDetail) other);
      +        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductEventDetail)other);
             } else {
               super.mergeFrom(other);
               return this;
             }
           }
       
      -    public Builder mergeFrom(
      -        com.google.cloud.recommendationengine.v1beta1.ProductEventDetail other) {
      -      if (other
      -          == com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.getDefaultInstance())
      -        return this;
      +    public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ProductEventDetail other) {
      +      if (other == com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.getDefaultInstance()) return this;
             if (!other.getSearchQuery().isEmpty()) {
               searchQuery_ = other.searchQuery_;
               onChanged();
      @@ -1098,10 +980,9 @@ public Builder mergeFrom(
                   pageCategoriesBuilder_ = null;
                   pageCategories_ = other.pageCategories_;
                   bitField0_ = (bitField0_ & ~0x00000001);
      -            pageCategoriesBuilder_ =
      -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
      -                    ? getPageCategoriesFieldBuilder()
      -                    : null;
      +            pageCategoriesBuilder_ = 
      +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
      +                 getPageCategoriesFieldBuilder() : null;
                 } else {
                   pageCategoriesBuilder_.addAllMessages(other.pageCategories_);
                 }
      @@ -1125,10 +1006,9 @@ public Builder mergeFrom(
                   productDetailsBuilder_ = null;
                   productDetails_ = other.productDetails_;
                   bitField0_ = (bitField0_ & ~0x00000002);
      -            productDetailsBuilder_ =
      -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
      -                    ? getProductDetailsFieldBuilder()
      -                    : null;
      +            productDetailsBuilder_ = 
      +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
      +                 getProductDetailsFieldBuilder() : null;
                 } else {
                   productDetailsBuilder_.addAllMessages(other.productDetails_);
                 }
      @@ -1164,9 +1044,7 @@ public Builder mergeFrom(
             try {
               parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      -        parsedMessage =
      -            (com.google.cloud.recommendationengine.v1beta1.ProductEventDetail)
      -                e.getUnfinishedMessage();
      +        parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ProductEventDetail) e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
               if (parsedMessage != null) {
      @@ -1175,26 +1053,23 @@ public Builder mergeFrom(
             }
             return this;
           }
      -
           private int bitField0_;
       
           private java.lang.Object searchQuery_ = "";
           /**
      -     *
      -     *
            * 
            * Required for `search` events. Other event types should not set this field.
            * The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
            * 
      * * string search_query = 1; - * * @return The searchQuery. */ public java.lang.String getSearchQuery() { java.lang.Object ref = searchQuery_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); searchQuery_ = s; return s; @@ -1203,22 +1078,21 @@ public java.lang.String getSearchQuery() { } } /** - * - * *
            * Required for `search` events. Other event types should not set this field.
            * The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
            * 
      * * string search_query = 1; - * * @return The bytes for searchQuery. */ - public com.google.protobuf.ByteString getSearchQueryBytes() { + public com.google.protobuf.ByteString + getSearchQueryBytes() { java.lang.Object ref = searchQuery_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); searchQuery_ = b; return b; } else { @@ -1226,92 +1100,75 @@ public com.google.protobuf.ByteString getSearchQueryBytes() { } } /** - * - * *
            * Required for `search` events. Other event types should not set this field.
            * The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
            * 
      * * string search_query = 1; - * * @param value The searchQuery to set. * @return This builder for chaining. */ - public Builder setSearchQuery(java.lang.String value) { + public Builder setSearchQuery( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + searchQuery_ = value; onChanged(); return this; } /** - * - * *
            * Required for `search` events. Other event types should not set this field.
            * The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
            * 
      * * string search_query = 1; - * * @return This builder for chaining. */ public Builder clearSearchQuery() { - + searchQuery_ = getDefaultInstance().getSearchQuery(); onChanged(); return this; } /** - * - * *
            * Required for `search` events. Other event types should not set this field.
            * The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
            * 
      * * string search_query = 1; - * * @param value The bytes for searchQuery to set. * @return This builder for chaining. */ - public Builder setSearchQueryBytes(com.google.protobuf.ByteString value) { + public Builder setSearchQueryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + searchQuery_ = value; onChanged(); return this; } - private java.util.List< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy> - pageCategories_ = java.util.Collections.emptyList(); - + private java.util.List pageCategories_ = + java.util.Collections.emptyList(); private void ensurePageCategoriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - pageCategories_ = - new java.util.ArrayList< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy>( - pageCategories_); + pageCategories_ = new java.util.ArrayList(pageCategories_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> - pageCategoriesBuilder_; + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> pageCategoriesBuilder_; /** - * - * *
            * Required for `category-page-view` events. Other event types should not set
            * this field.
      @@ -1321,13 +1178,9 @@ private void ensurePageCategoriesIsMutable() {
            * categories : ["Sales", "2017 Black Friday Deals"].
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ - public java.util.List< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy> - getPageCategoriesList() { + public java.util.List getPageCategoriesList() { if (pageCategoriesBuilder_ == null) { return java.util.Collections.unmodifiableList(pageCategories_); } else { @@ -1335,8 +1188,6 @@ private void ensurePageCategoriesIsMutable() { } } /** - * - * *
            * Required for `category-page-view` events. Other event types should not set
            * this field.
      @@ -1346,9 +1197,7 @@ private void ensurePageCategoriesIsMutable() {
            * categories : ["Sales", "2017 Black Friday Deals"].
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ public int getPageCategoriesCount() { if (pageCategoriesBuilder_ == null) { @@ -1358,8 +1207,6 @@ public int getPageCategoriesCount() { } } /** - * - * *
            * Required for `category-page-view` events. Other event types should not set
            * this field.
      @@ -1369,12 +1216,9 @@ public int getPageCategoriesCount() {
            * categories : ["Sales", "2017 Black Friday Deals"].
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - getPageCategories(int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getPageCategories(int index) { if (pageCategoriesBuilder_ == null) { return pageCategories_.get(index); } else { @@ -1382,8 +1226,6 @@ public int getPageCategoriesCount() { } } /** - * - * *
            * Required for `category-page-view` events. Other event types should not set
            * this field.
      @@ -1393,13 +1235,10 @@ public int getPageCategoriesCount() {
            * categories : ["Sales", "2017 Black Friday Deals"].
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ public Builder setPageCategories( - int index, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { + int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { if (pageCategoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1413,8 +1252,6 @@ public Builder setPageCategories( return this; } /** - * - * *
            * Required for `category-page-view` events. Other event types should not set
            * this field.
      @@ -1424,14 +1261,10 @@ public Builder setPageCategories(
            * categories : ["Sales", "2017 Black Friday Deals"].
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ public Builder setPageCategories( - int index, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder - builderForValue) { + int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder builderForValue) { if (pageCategoriesBuilder_ == null) { ensurePageCategoriesIsMutable(); pageCategories_.set(index, builderForValue.build()); @@ -1442,8 +1275,6 @@ public Builder setPageCategories( return this; } /** - * - * *
            * Required for `category-page-view` events. Other event types should not set
            * this field.
      @@ -1453,12 +1284,9 @@ public Builder setPageCategories(
            * categories : ["Sales", "2017 Black Friday Deals"].
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ - public Builder addPageCategories( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { + public Builder addPageCategories(com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { if (pageCategoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1472,8 +1300,6 @@ public Builder addPageCategories( return this; } /** - * - * *
            * Required for `category-page-view` events. Other event types should not set
            * this field.
      @@ -1483,13 +1309,10 @@ public Builder addPageCategories(
            * categories : ["Sales", "2017 Black Friday Deals"].
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ public Builder addPageCategories( - int index, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { + int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { if (pageCategoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1503,8 +1326,6 @@ public Builder addPageCategories( return this; } /** - * - * *
            * Required for `category-page-view` events. Other event types should not set
            * this field.
      @@ -1514,13 +1335,10 @@ public Builder addPageCategories(
            * categories : ["Sales", "2017 Black Friday Deals"].
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ public Builder addPageCategories( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder - builderForValue) { + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder builderForValue) { if (pageCategoriesBuilder_ == null) { ensurePageCategoriesIsMutable(); pageCategories_.add(builderForValue.build()); @@ -1531,8 +1349,6 @@ public Builder addPageCategories( return this; } /** - * - * *
            * Required for `category-page-view` events. Other event types should not set
            * this field.
      @@ -1542,14 +1358,10 @@ public Builder addPageCategories(
            * categories : ["Sales", "2017 Black Friday Deals"].
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ public Builder addPageCategories( - int index, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder - builderForValue) { + int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder builderForValue) { if (pageCategoriesBuilder_ == null) { ensurePageCategoriesIsMutable(); pageCategories_.add(index, builderForValue.build()); @@ -1560,8 +1372,6 @@ public Builder addPageCategories( return this; } /** - * - * *
            * Required for `category-page-view` events. Other event types should not set
            * this field.
      @@ -1571,18 +1381,14 @@ public Builder addPageCategories(
            * categories : ["Sales", "2017 Black Friday Deals"].
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ public Builder addAllPageCategories( - java.lang.Iterable< - ? extends - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy> - values) { + java.lang.Iterable values) { if (pageCategoriesBuilder_ == null) { ensurePageCategoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pageCategories_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pageCategories_); onChanged(); } else { pageCategoriesBuilder_.addAllMessages(values); @@ -1590,8 +1396,6 @@ public Builder addAllPageCategories( return this; } /** - * - * *
            * Required for `category-page-view` events. Other event types should not set
            * this field.
      @@ -1601,9 +1405,7 @@ public Builder addAllPageCategories(
            * categories : ["Sales", "2017 Black Friday Deals"].
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ public Builder clearPageCategories() { if (pageCategoriesBuilder_ == null) { @@ -1616,8 +1418,6 @@ public Builder clearPageCategories() { return this; } /** - * - * *
            * Required for `category-page-view` events. Other event types should not set
            * this field.
      @@ -1627,9 +1427,7 @@ public Builder clearPageCategories() {
            * categories : ["Sales", "2017 Black Friday Deals"].
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ public Builder removePageCategories(int index) { if (pageCategoriesBuilder_ == null) { @@ -1642,8 +1440,6 @@ public Builder removePageCategories(int index) { return this; } /** - * - * *
            * Required for `category-page-view` events. Other event types should not set
            * this field.
      @@ -1653,17 +1449,13 @@ public Builder removePageCategories(int index) {
            * categories : ["Sales", "2017 Black Friday Deals"].
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder - getPageCategoriesBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder getPageCategoriesBuilder( + int index) { return getPageCategoriesFieldBuilder().getBuilder(index); } /** - * - * *
            * Required for `category-page-view` events. Other event types should not set
            * this field.
      @@ -1673,21 +1465,16 @@ public Builder removePageCategories(int index) {
            * categories : ["Sales", "2017 Black Friday Deals"].
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder - getPageCategoriesOrBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder getPageCategoriesOrBuilder( + int index) { if (pageCategoriesBuilder_ == null) { - return pageCategories_.get(index); - } else { + return pageCategories_.get(index); } else { return pageCategoriesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
            * Required for `category-page-view` events. Other event types should not set
            * this field.
      @@ -1697,15 +1484,10 @@ public Builder removePageCategories(int index) {
            * categories : ["Sales", "2017 Black Friday Deals"].
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ - public java.util.List< - ? extends - com.google.cloud.recommendationengine.v1beta1.CatalogItem - .CategoryHierarchyOrBuilder> - getPageCategoriesOrBuilderList() { + public java.util.List + getPageCategoriesOrBuilderList() { if (pageCategoriesBuilder_ != null) { return pageCategoriesBuilder_.getMessageOrBuilderList(); } else { @@ -1713,8 +1495,6 @@ public Builder removePageCategories(int index) { } } /** - * - * *
            * Required for `category-page-view` events. Other event types should not set
            * this field.
      @@ -1724,20 +1504,13 @@ public Builder removePageCategories(int index) {
            * categories : ["Sales", "2017 Black Friday Deals"].
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder - addPageCategoriesBuilder() { - return getPageCategoriesFieldBuilder() - .addBuilder( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - .getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder addPageCategoriesBuilder() { + return getPageCategoriesFieldBuilder().addBuilder( + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.getDefaultInstance()); } /** - * - * *
            * Required for `category-page-view` events. Other event types should not set
            * this field.
      @@ -1747,21 +1520,14 @@ public Builder removePageCategories(int index) {
            * categories : ["Sales", "2017 Black Friday Deals"].
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder - addPageCategoriesBuilder(int index) { - return getPageCategoriesFieldBuilder() - .addBuilder( - index, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy - .getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder addPageCategoriesBuilder( + int index) { + return getPageCategoriesFieldBuilder().addBuilder( + index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.getDefaultInstance()); } /** - * - * *
            * Required for `category-page-view` events. Other event types should not set
            * this field.
      @@ -1771,28 +1537,18 @@ public Builder removePageCategories(int index) {
            * categories : ["Sales", "2017 Black Friday Deals"].
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ - public java.util.List< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder> - getPageCategoriesBuilderList() { + public java.util.List + getPageCategoriesBuilderList() { return getPageCategoriesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> getPageCategoriesFieldBuilder() { if (pageCategoriesBuilder_ == null) { - pageCategoriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, - com.google.cloud.recommendationengine.v1beta1.CatalogItem - .CategoryHierarchyOrBuilder>( + pageCategoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder>( pageCategories_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1802,27 +1558,19 @@ public Builder removePageCategories(int index) { return pageCategoriesBuilder_; } - private java.util.List - productDetails_ = java.util.Collections.emptyList(); - + private java.util.List productDetails_ = + java.util.Collections.emptyList(); private void ensureProductDetailsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - productDetails_ = - new java.util.ArrayList( - productDetails_); + productDetails_ = new java.util.ArrayList(productDetails_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductDetail, - com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder, - com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder> - productDetailsBuilder_; + com.google.cloud.recommendationengine.v1beta1.ProductDetail, com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder, com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder> productDetailsBuilder_; /** - * - * *
            * The main product details related to the event.
            * This field is required for the following event types:
      @@ -1844,11 +1592,9 @@ private void ensureProductDetailsIsMutable() {
            * * `search`
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ - public java.util.List - getProductDetailsList() { + public java.util.List getProductDetailsList() { if (productDetailsBuilder_ == null) { return java.util.Collections.unmodifiableList(productDetails_); } else { @@ -1856,8 +1602,6 @@ private void ensureProductDetailsIsMutable() { } } /** - * - * *
            * The main product details related to the event.
            * This field is required for the following event types:
      @@ -1879,8 +1623,7 @@ private void ensureProductDetailsIsMutable() {
            * * `search`
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ public int getProductDetailsCount() { if (productDetailsBuilder_ == null) { @@ -1890,8 +1633,6 @@ public int getProductDetailsCount() { } } /** - * - * *
            * The main product details related to the event.
            * This field is required for the following event types:
      @@ -1913,11 +1654,9 @@ public int getProductDetailsCount() {
            * * `search`
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ - public com.google.cloud.recommendationengine.v1beta1.ProductDetail getProductDetails( - int index) { + public com.google.cloud.recommendationengine.v1beta1.ProductDetail getProductDetails(int index) { if (productDetailsBuilder_ == null) { return productDetails_.get(index); } else { @@ -1925,8 +1664,6 @@ public com.google.cloud.recommendationengine.v1beta1.ProductDetail getProductDet } } /** - * - * *
            * The main product details related to the event.
            * This field is required for the following event types:
      @@ -1948,8 +1685,7 @@ public com.google.cloud.recommendationengine.v1beta1.ProductDetail getProductDet
            * * `search`
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ public Builder setProductDetails( int index, com.google.cloud.recommendationengine.v1beta1.ProductDetail value) { @@ -1966,8 +1702,6 @@ public Builder setProductDetails( return this; } /** - * - * *
            * The main product details related to the event.
            * This field is required for the following event types:
      @@ -1989,12 +1723,10 @@ public Builder setProductDetails(
            * * `search`
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ public Builder setProductDetails( - int index, - com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder builderForValue) { + int index, com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder builderForValue) { if (productDetailsBuilder_ == null) { ensureProductDetailsIsMutable(); productDetails_.set(index, builderForValue.build()); @@ -2005,8 +1737,6 @@ public Builder setProductDetails( return this; } /** - * - * *
            * The main product details related to the event.
            * This field is required for the following event types:
      @@ -2028,11 +1758,9 @@ public Builder setProductDetails(
            * * `search`
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ - public Builder addProductDetails( - com.google.cloud.recommendationengine.v1beta1.ProductDetail value) { + public Builder addProductDetails(com.google.cloud.recommendationengine.v1beta1.ProductDetail value) { if (productDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2046,8 +1774,6 @@ public Builder addProductDetails( return this; } /** - * - * *
            * The main product details related to the event.
            * This field is required for the following event types:
      @@ -2069,8 +1795,7 @@ public Builder addProductDetails(
            * * `search`
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ public Builder addProductDetails( int index, com.google.cloud.recommendationengine.v1beta1.ProductDetail value) { @@ -2087,8 +1812,6 @@ public Builder addProductDetails( return this; } /** - * - * *
            * The main product details related to the event.
            * This field is required for the following event types:
      @@ -2110,8 +1833,7 @@ public Builder addProductDetails(
            * * `search`
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ public Builder addProductDetails( com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder builderForValue) { @@ -2125,8 +1847,6 @@ public Builder addProductDetails( return this; } /** - * - * *
            * The main product details related to the event.
            * This field is required for the following event types:
      @@ -2148,12 +1868,10 @@ public Builder addProductDetails(
            * * `search`
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ public Builder addProductDetails( - int index, - com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder builderForValue) { + int index, com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder builderForValue) { if (productDetailsBuilder_ == null) { ensureProductDetailsIsMutable(); productDetails_.add(index, builderForValue.build()); @@ -2164,8 +1882,6 @@ public Builder addProductDetails( return this; } /** - * - * *
            * The main product details related to the event.
            * This field is required for the following event types:
      @@ -2187,15 +1903,14 @@ public Builder addProductDetails(
            * * `search`
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ public Builder addAllProductDetails( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (productDetailsBuilder_ == null) { ensureProductDetailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productDetails_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, productDetails_); onChanged(); } else { productDetailsBuilder_.addAllMessages(values); @@ -2203,8 +1918,6 @@ public Builder addAllProductDetails( return this; } /** - * - * *
            * The main product details related to the event.
            * This field is required for the following event types:
      @@ -2226,8 +1939,7 @@ public Builder addAllProductDetails(
            * * `search`
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ public Builder clearProductDetails() { if (productDetailsBuilder_ == null) { @@ -2240,8 +1952,6 @@ public Builder clearProductDetails() { return this; } /** - * - * *
            * The main product details related to the event.
            * This field is required for the following event types:
      @@ -2263,8 +1973,7 @@ public Builder clearProductDetails() {
            * * `search`
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ public Builder removeProductDetails(int index) { if (productDetailsBuilder_ == null) { @@ -2277,8 +1986,6 @@ public Builder removeProductDetails(int index) { return this; } /** - * - * *
            * The main product details related to the event.
            * This field is required for the following event types:
      @@ -2300,16 +2007,13 @@ public Builder removeProductDetails(int index) {
            * * `search`
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ - public com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder - getProductDetailsBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder getProductDetailsBuilder( + int index) { return getProductDetailsFieldBuilder().getBuilder(index); } /** - * - * *
            * The main product details related to the event.
            * This field is required for the following event types:
      @@ -2331,20 +2035,16 @@ public Builder removeProductDetails(int index) {
            * * `search`
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ - public com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder - getProductDetailsOrBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder getProductDetailsOrBuilder( + int index) { if (productDetailsBuilder_ == null) { - return productDetails_.get(index); - } else { + return productDetails_.get(index); } else { return productDetailsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
            * The main product details related to the event.
            * This field is required for the following event types:
      @@ -2366,12 +2066,10 @@ public Builder removeProductDetails(int index) {
            * * `search`
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ - public java.util.List< - ? extends com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder> - getProductDetailsOrBuilderList() { + public java.util.List + getProductDetailsOrBuilderList() { if (productDetailsBuilder_ != null) { return productDetailsBuilder_.getMessageOrBuilderList(); } else { @@ -2379,8 +2077,6 @@ public Builder removeProductDetails(int index) { } } /** - * - * *
            * The main product details related to the event.
            * This field is required for the following event types:
      @@ -2402,18 +2098,13 @@ public Builder removeProductDetails(int index) {
            * * `search`
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ - public com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder - addProductDetailsBuilder() { - return getProductDetailsFieldBuilder() - .addBuilder( - com.google.cloud.recommendationengine.v1beta1.ProductDetail.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder addProductDetailsBuilder() { + return getProductDetailsFieldBuilder().addBuilder( + com.google.cloud.recommendationengine.v1beta1.ProductDetail.getDefaultInstance()); } /** - * - * *
            * The main product details related to the event.
            * This field is required for the following event types:
      @@ -2435,19 +2126,14 @@ public Builder removeProductDetails(int index) {
            * * `search`
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ - public com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder - addProductDetailsBuilder(int index) { - return getProductDetailsFieldBuilder() - .addBuilder( - index, - com.google.cloud.recommendationengine.v1beta1.ProductDetail.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder addProductDetailsBuilder( + int index) { + return getProductDetailsFieldBuilder().addBuilder( + index, com.google.cloud.recommendationengine.v1beta1.ProductDetail.getDefaultInstance()); } /** - * - * *
            * The main product details related to the event.
            * This field is required for the following event types:
      @@ -2469,25 +2155,18 @@ public Builder removeProductDetails(int index) {
            * * `search`
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ - public java.util.List - getProductDetailsBuilderList() { + public java.util.List + getProductDetailsBuilderList() { return getProductDetailsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductDetail, - com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder, - com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder> + com.google.cloud.recommendationengine.v1beta1.ProductDetail, com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder, com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder> getProductDetailsFieldBuilder() { if (productDetailsBuilder_ == null) { - productDetailsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductDetail, - com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder, - com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder>( + productDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.ProductDetail, com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder, com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder>( productDetails_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2499,8 +2178,6 @@ public Builder removeProductDetails(int index) { private java.lang.Object listId_ = ""; /** - * - * *
            * Required for `add-to-list` and `remove-from-list` events. The id or name of
            * the list that the item is being added to or removed from. Other event types
      @@ -2508,13 +2185,13 @@ public Builder removeProductDetails(int index) {
            * 
      * * string list_id = 4; - * * @return The listId. */ public java.lang.String getListId() { java.lang.Object ref = listId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); listId_ = s; return s; @@ -2523,8 +2200,6 @@ public java.lang.String getListId() { } } /** - * - * *
            * Required for `add-to-list` and `remove-from-list` events. The id or name of
            * the list that the item is being added to or removed from. Other event types
      @@ -2532,14 +2207,15 @@ public java.lang.String getListId() {
            * 
      * * string list_id = 4; - * * @return The bytes for listId. */ - public com.google.protobuf.ByteString getListIdBytes() { + public com.google.protobuf.ByteString + getListIdBytes() { java.lang.Object ref = listId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); listId_ = b; return b; } else { @@ -2547,8 +2223,6 @@ public com.google.protobuf.ByteString getListIdBytes() { } } /** - * - * *
            * Required for `add-to-list` and `remove-from-list` events. The id or name of
            * the list that the item is being added to or removed from. Other event types
      @@ -2556,22 +2230,20 @@ public com.google.protobuf.ByteString getListIdBytes() {
            * 
      * * string list_id = 4; - * * @param value The listId to set. * @return This builder for chaining. */ - public Builder setListId(java.lang.String value) { + public Builder setListId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + listId_ = value; onChanged(); return this; } /** - * - * *
            * Required for `add-to-list` and `remove-from-list` events. The id or name of
            * the list that the item is being added to or removed from. Other event types
      @@ -2579,18 +2251,15 @@ public Builder setListId(java.lang.String value) {
            * 
      * * string list_id = 4; - * * @return This builder for chaining. */ public Builder clearListId() { - + listId_ = getDefaultInstance().getListId(); onChanged(); return this; } /** - * - * *
            * Required for `add-to-list` and `remove-from-list` events. The id or name of
            * the list that the item is being added to or removed from. Other event types
      @@ -2598,16 +2267,16 @@ public Builder clearListId() {
            * 
      * * string list_id = 4; - * * @param value The bytes for listId to set. * @return This builder for chaining. */ - public Builder setListIdBytes(com.google.protobuf.ByteString value) { + public Builder setListIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + listId_ = value; onChanged(); return this; @@ -2615,8 +2284,6 @@ public Builder setListIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object cartId_ = ""; /** - * - * *
            * Optional. The id or name of the associated shopping cart. This id is used
            * to associate multiple items added or present in the cart before purchase.
      @@ -2625,13 +2292,13 @@ public Builder setListIdBytes(com.google.protobuf.ByteString value) {
            * 
      * * string cart_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The cartId. */ public java.lang.String getCartId() { java.lang.Object ref = cartId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cartId_ = s; return s; @@ -2640,8 +2307,6 @@ public java.lang.String getCartId() { } } /** - * - * *
            * Optional. The id or name of the associated shopping cart. This id is used
            * to associate multiple items added or present in the cart before purchase.
      @@ -2650,14 +2315,15 @@ public java.lang.String getCartId() {
            * 
      * * string cart_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for cartId. */ - public com.google.protobuf.ByteString getCartIdBytes() { + public com.google.protobuf.ByteString + getCartIdBytes() { java.lang.Object ref = cartId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cartId_ = b; return b; } else { @@ -2665,8 +2331,6 @@ public com.google.protobuf.ByteString getCartIdBytes() { } } /** - * - * *
            * Optional. The id or name of the associated shopping cart. This id is used
            * to associate multiple items added or present in the cart before purchase.
      @@ -2675,22 +2339,20 @@ public com.google.protobuf.ByteString getCartIdBytes() {
            * 
      * * string cart_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The cartId to set. * @return This builder for chaining. */ - public Builder setCartId(java.lang.String value) { + public Builder setCartId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cartId_ = value; onChanged(); return this; } /** - * - * *
            * Optional. The id or name of the associated shopping cart. This id is used
            * to associate multiple items added or present in the cart before purchase.
      @@ -2699,18 +2361,15 @@ public Builder setCartId(java.lang.String value) {
            * 
      * * string cart_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCartId() { - + cartId_ = getDefaultInstance().getCartId(); onChanged(); return this; } /** - * - * *
            * Optional. The id or name of the associated shopping cart. This id is used
            * to associate multiple items added or present in the cart before purchase.
      @@ -2719,16 +2378,16 @@ public Builder clearCartId() {
            * 
      * * string cart_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for cartId to set. * @return This builder for chaining. */ - public Builder setCartIdBytes(com.google.protobuf.ByteString value) { + public Builder setCartIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cartId_ = value; onChanged(); return this; @@ -2736,68 +2395,47 @@ public Builder setCartIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchaseTransaction_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction, - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder, - com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder> - purchaseTransactionBuilder_; + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction, com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder, com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder> purchaseTransactionBuilder_; /** - * - * *
            * Optional. A transaction represents the entire purchase transaction.
            * Required for `purchase-complete` events. Optional for `checkout-start`
            * events. Other event types should not set this field.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the purchaseTransaction field is set. */ public boolean hasPurchaseTransaction() { return purchaseTransactionBuilder_ != null || purchaseTransaction_ != null; } /** - * - * *
            * Optional. A transaction represents the entire purchase transaction.
            * Required for `purchase-complete` events. Optional for `checkout-start`
            * events. Other event types should not set this field.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The purchaseTransaction. */ - public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction - getPurchaseTransaction() { + public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction getPurchaseTransaction() { if (purchaseTransactionBuilder_ == null) { - return purchaseTransaction_ == null - ? com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.getDefaultInstance() - : purchaseTransaction_; + return purchaseTransaction_ == null ? com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.getDefaultInstance() : purchaseTransaction_; } else { return purchaseTransactionBuilder_.getMessage(); } } /** - * - * *
            * Optional. A transaction represents the entire purchase transaction.
            * Required for `purchase-complete` events. Optional for `checkout-start`
            * events. Other event types should not set this field.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setPurchaseTransaction( - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction value) { + public Builder setPurchaseTransaction(com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction value) { if (purchaseTransactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2811,17 +2449,13 @@ public Builder setPurchaseTransaction( return this; } /** - * - * *
            * Optional. A transaction represents the entire purchase transaction.
            * Required for `purchase-complete` events. Optional for `checkout-start`
            * events. Other event types should not set this field.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPurchaseTransaction( com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder builderForValue) { @@ -2835,27 +2469,19 @@ public Builder setPurchaseTransaction( return this; } /** - * - * *
            * Optional. A transaction represents the entire purchase transaction.
            * Required for `purchase-complete` events. Optional for `checkout-start`
            * events. Other event types should not set this field.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergePurchaseTransaction( - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction value) { + public Builder mergePurchaseTransaction(com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction value) { if (purchaseTransactionBuilder_ == null) { if (purchaseTransaction_ != null) { purchaseTransaction_ = - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.newBuilder( - purchaseTransaction_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.newBuilder(purchaseTransaction_).mergeFrom(value).buildPartial(); } else { purchaseTransaction_ = value; } @@ -2867,17 +2493,13 @@ public Builder mergePurchaseTransaction( return this; } /** - * - * *
            * Optional. A transaction represents the entire purchase transaction.
            * Required for `purchase-complete` events. Optional for `checkout-start`
            * events. Other event types should not set this field.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPurchaseTransaction() { if (purchaseTransactionBuilder_ == null) { @@ -2891,79 +2513,61 @@ public Builder clearPurchaseTransaction() { return this; } /** - * - * *
            * Optional. A transaction represents the entire purchase transaction.
            * Required for `purchase-complete` events. Optional for `checkout-start`
            * events. Other event types should not set this field.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder - getPurchaseTransactionBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder getPurchaseTransactionBuilder() { + onChanged(); return getPurchaseTransactionFieldBuilder().getBuilder(); } /** - * - * *
            * Optional. A transaction represents the entire purchase transaction.
            * Required for `purchase-complete` events. Optional for `checkout-start`
            * events. Other event types should not set this field.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder - getPurchaseTransactionOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder getPurchaseTransactionOrBuilder() { if (purchaseTransactionBuilder_ != null) { return purchaseTransactionBuilder_.getMessageOrBuilder(); } else { - return purchaseTransaction_ == null - ? com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.getDefaultInstance() - : purchaseTransaction_; + return purchaseTransaction_ == null ? + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.getDefaultInstance() : purchaseTransaction_; } } /** - * - * *
            * Optional. A transaction represents the entire purchase transaction.
            * Required for `purchase-complete` events. Optional for `checkout-start`
            * events. Other event types should not set this field.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction, - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder, - com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder> + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction, com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder, com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder> getPurchaseTransactionFieldBuilder() { if (purchaseTransactionBuilder_ == null) { - purchaseTransactionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction, - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder, - com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder>( - getPurchaseTransaction(), getParentForChildren(), isClean()); + purchaseTransactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction, com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder, com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder>( + getPurchaseTransaction(), + getParentForChildren(), + isClean()); purchaseTransaction_ = null; } return purchaseTransactionBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2973,32 +2577,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ProductEventDetail) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ProductEventDetail) - private static final com.google.cloud.recommendationengine.v1beta1.ProductEventDetail - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.ProductEventDetail DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ProductEventDetail(); } - public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductEventDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductEventDetail(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductEventDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductEventDetail(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3010,8 +2612,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetailOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetailOrBuilder.java similarity index 78% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetailOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetailOrBuilder.java index c4a54864..855af76b 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetailOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetailOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ProductEventDetailOrBuilder - extends +public interface ProductEventDetailOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ProductEventDetail) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required for `search` events. Other event types should not set this field.
          * The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
          * 
      * * string search_query = 1; - * * @return The searchQuery. */ java.lang.String getSearchQuery(); /** - * - * *
          * Required for `search` events. Other event types should not set this field.
          * The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
          * 
      * * string search_query = 1; - * * @return The bytes for searchQuery. */ - com.google.protobuf.ByteString getSearchQueryBytes(); + com.google.protobuf.ByteString + getSearchQueryBytes(); /** - * - * *
          * Required for `category-page-view` events. Other event types should not set
          * this field.
      @@ -62,15 +39,11 @@ public interface ProductEventDetailOrBuilder
          * categories : ["Sales", "2017 Black Friday Deals"].
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ - java.util.List + java.util.List getPageCategoriesList(); /** - * - * *
          * Required for `category-page-view` events. Other event types should not set
          * this field.
      @@ -80,15 +53,10 @@ public interface ProductEventDetailOrBuilder
          * categories : ["Sales", "2017 Black Friday Deals"].
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getPageCategories( - int index); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getPageCategories(int index); /** - * - * *
          * Required for `category-page-view` events. Other event types should not set
          * this field.
      @@ -98,14 +66,10 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getP
          * categories : ["Sales", "2017 Black Friday Deals"].
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ int getPageCategoriesCount(); /** - * - * *
          * Required for `category-page-view` events. Other event types should not set
          * this field.
      @@ -115,17 +79,11 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getP
          * categories : ["Sales", "2017 Black Friday Deals"].
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ - java.util.List< - ? extends - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> + java.util.List getPageCategoriesOrBuilderList(); /** - * - * *
          * Required for `category-page-view` events. Other event types should not set
          * this field.
      @@ -135,16 +93,12 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getP
          * categories : ["Sales", "2017 Black Friday Deals"].
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; */ - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder - getPageCategoriesOrBuilder(int index); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder getPageCategoriesOrBuilder( + int index); /** - * - * *
          * The main product details related to the event.
          * This field is required for the following event types:
      @@ -166,14 +120,11 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getP
          * * `search`
          * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ - java.util.List + java.util.List getProductDetailsList(); /** - * - * *
          * The main product details related to the event.
          * This field is required for the following event types:
      @@ -195,13 +146,10 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getP
          * * `search`
          * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ com.google.cloud.recommendationengine.v1beta1.ProductDetail getProductDetails(int index); /** - * - * *
          * The main product details related to the event.
          * This field is required for the following event types:
      @@ -223,13 +171,10 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getP
          * * `search`
          * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ int getProductDetailsCount(); /** - * - * *
          * The main product details related to the event.
          * This field is required for the following event types:
      @@ -251,14 +196,11 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getP
          * * `search`
          * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ - java.util.List + java.util.List getProductDetailsOrBuilderList(); /** - * - * *
          * The main product details related to the event.
          * This field is required for the following event types:
      @@ -280,15 +222,12 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getP
          * * `search`
          * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; - * + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; */ com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder getProductDetailsOrBuilder( int index); /** - * - * *
          * Required for `add-to-list` and `remove-from-list` events. The id or name of
          * the list that the item is being added to or removed from. Other event types
      @@ -296,13 +235,10 @@ com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder getProductD
          * 
      * * string list_id = 4; - * * @return The listId. */ java.lang.String getListId(); /** - * - * *
          * Required for `add-to-list` and `remove-from-list` events. The id or name of
          * the list that the item is being added to or removed from. Other event types
      @@ -310,14 +246,12 @@ com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder getProductD
          * 
      * * string list_id = 4; - * * @return The bytes for listId. */ - com.google.protobuf.ByteString getListIdBytes(); + com.google.protobuf.ByteString + getListIdBytes(); /** - * - * *
          * Optional. The id or name of the associated shopping cart. This id is used
          * to associate multiple items added or present in the cart before purchase.
      @@ -326,13 +260,10 @@ com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder getProductD
          * 
      * * string cart_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The cartId. */ java.lang.String getCartId(); /** - * - * *
          * Optional. The id or name of the associated shopping cart. This id is used
          * to associate multiple items added or present in the cart before purchase.
      @@ -341,56 +272,41 @@ com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder getProductD
          * 
      * * string cart_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for cartId. */ - com.google.protobuf.ByteString getCartIdBytes(); + com.google.protobuf.ByteString + getCartIdBytes(); /** - * - * *
          * Optional. A transaction represents the entire purchase transaction.
          * Required for `purchase-complete` events. Optional for `checkout-start`
          * events. Other event types should not set this field.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the purchaseTransaction field is set. */ boolean hasPurchaseTransaction(); /** - * - * *
          * Optional. A transaction represents the entire purchase transaction.
          * Required for `purchase-complete` events. Optional for `checkout-start`
          * events. Other event types should not set this field.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The purchaseTransaction. */ com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction getPurchaseTransaction(); /** - * - * *
          * Optional. A transaction represents the entire purchase transaction.
          * Required for `purchase-complete` events. Optional for `checkout-start`
          * events. Other event types should not set this field.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder - getPurchaseTransactionOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder getPurchaseTransactionOrBuilder(); } diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransaction.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransaction.java similarity index 66% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransaction.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransaction.java index 8ee6dc08..10c2bca1 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransaction.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransaction.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * A transaction represents the entire purchase transaction.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PurchaseTransaction} */ -public final class PurchaseTransaction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PurchaseTransaction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.PurchaseTransaction) PurchaseTransactionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PurchaseTransaction.newBuilder() to construct. private PurchaseTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PurchaseTransaction() { id_ = ""; currencyCode_ = ""; @@ -44,15 +26,16 @@ private PurchaseTransaction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PurchaseTransaction(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PurchaseTransaction( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,58 +55,56 @@ private PurchaseTransaction( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 21: - { - revenue_ = input.readFloat(); - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - taxes_ = - com.google.protobuf.MapField.newMapField(TaxesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry taxes__ = - input.readMessage( - TaxesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - taxes_.getMutableMap().put(taxes__.getKey(), taxes__.getValue()); - break; + id_ = s; + break; + } + case 21: { + + revenue_ = input.readFloat(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + taxes_ = com.google.protobuf.MapField.newMapField( + TaxesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 34: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - costs_ = - com.google.protobuf.MapField.newMapField(CostsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry costs__ = - input.readMessage( - CostsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - costs_.getMutableMap().put(costs__.getKey(), costs__.getValue()); - break; + com.google.protobuf.MapEntry + taxes__ = input.readMessage( + TaxesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + taxes_.getMutableMap().put( + taxes__.getKey(), taxes__.getValue()); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + costs_ = com.google.protobuf.MapField.newMapField( + CostsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + com.google.protobuf.MapEntry + costs__ = input.readMessage( + CostsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + costs_.getMutableMap().put( + costs__.getKey(), costs__.getValue()); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); - currencyCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + currencyCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -131,52 +112,48 @@ private PurchaseTransaction( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetTaxes(); case 4: return internalGetCosts(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.class, - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder.class); + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.class, com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** - * - * *
          * Optional. The transaction ID with a length limit of 128 bytes.
          * 
      * * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The id. */ @java.lang.Override @@ -185,29 +162,29 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** - * - * *
          * Optional. The transaction ID with a length limit of 128 bytes.
          * 
      * * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -218,8 +195,6 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int REVENUE_FIELD_NUMBER = 2; private float revenue_; /** - * - * *
          * Required. Total revenue or grand total associated with the transaction.
          * This value include shipping, tax, or other adjustments to total revenue
      @@ -228,7 +203,6 @@ public com.google.protobuf.ByteString getIdBytes() {
          * 
      * * float revenue = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The revenue. */ @java.lang.Override @@ -237,23 +211,24 @@ public float getRevenue() { } public static final int TAXES_FIELD_NUMBER = 3; - private static final class TaxesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.FLOAT, - 0F); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.Float> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.FLOAT, + 0F); } - - private com.google.protobuf.MapField taxes_; - - private com.google.protobuf.MapField internalGetTaxes() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.Float> taxes_; + private com.google.protobuf.MapField + internalGetTaxes() { if (taxes_ == null) { - return com.google.protobuf.MapField.emptyMapField(TaxesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + TaxesDefaultEntryHolder.defaultEntry); } return taxes_; } @@ -262,30 +237,28 @@ public int getTaxesCount() { return internalGetTaxes().getMap().size(); } /** - * - * *
          * Optional. All the taxes associated with the transaction.
          * 
      * * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsTaxes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsTaxes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetTaxes().getMap().containsKey(key); } - /** Use {@link #getTaxesMap()} instead. */ + /** + * Use {@link #getTaxesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTaxes() { return getTaxesMap(); } /** - * - * *
          * Optional. All the taxes associated with the transaction.
          * 
      @@ -293,12 +266,11 @@ public java.util.Map getTaxes() { * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getTaxesMap() { return internalGetTaxes().getMap(); } /** - * - * *
          * Optional. All the taxes associated with the transaction.
          * 
      @@ -306,16 +278,16 @@ public java.util.Map getTaxesMap() { * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public float getTaxesOrDefault(java.lang.String key, float defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetTaxes().getMap(); + + public float getTaxesOrDefault( + java.lang.String key, + float defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTaxes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
          * Optional. All the taxes associated with the transaction.
          * 
      @@ -323,11 +295,12 @@ public float getTaxesOrDefault(java.lang.String key, float defaultValue) { * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public float getTaxesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetTaxes().getMap(); + + public float getTaxesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTaxes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -335,23 +308,24 @@ public float getTaxesOrThrow(java.lang.String key) { } public static final int COSTS_FIELD_NUMBER = 4; - private static final class CostsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.FLOAT, - 0F); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.Float> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.FLOAT, + 0F); } - - private com.google.protobuf.MapField costs_; - - private com.google.protobuf.MapField internalGetCosts() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.Float> costs_; + private com.google.protobuf.MapField + internalGetCosts() { if (costs_ == null) { - return com.google.protobuf.MapField.emptyMapField(CostsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + CostsDefaultEntryHolder.defaultEntry); } return costs_; } @@ -360,8 +334,6 @@ public int getCostsCount() { return internalGetCosts().getMap().size(); } /** - * - * *
          * Optional. All the costs associated with the product. These can be
          * manufacturing costs, shipping expenses not borne by the end user, or any
      @@ -376,22 +348,22 @@ public int getCostsCount() {
          *
          * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
          */
      +
         @java.lang.Override
      -  public boolean containsCosts(java.lang.String key) {
      -    if (key == null) {
      -      throw new NullPointerException("map key");
      -    }
      +  public boolean containsCosts(
      +      java.lang.String key) {
      +    if (key == null) { throw new NullPointerException("map key"); }
           return internalGetCosts().getMap().containsKey(key);
         }
      -  /** Use {@link #getCostsMap()} instead. */
      +  /**
      +   * Use {@link #getCostsMap()} instead.
      +   */
         @java.lang.Override
         @java.lang.Deprecated
         public java.util.Map getCosts() {
           return getCostsMap();
         }
         /**
      -   *
      -   *
          * 
          * Optional. All the costs associated with the product. These can be
          * manufacturing costs, shipping expenses not borne by the end user, or any
      @@ -407,12 +379,11 @@ public java.util.Map getCosts() {
          * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
          */
         @java.lang.Override
      +
         public java.util.Map getCostsMap() {
           return internalGetCosts().getMap();
         }
         /**
      -   *
      -   *
          * 
          * Optional. All the costs associated with the product. These can be
          * manufacturing costs, shipping expenses not borne by the end user, or any
      @@ -428,16 +399,16 @@ public java.util.Map getCostsMap() {
          * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
          */
         @java.lang.Override
      -  public float getCostsOrDefault(java.lang.String key, float defaultValue) {
      -    if (key == null) {
      -      throw new NullPointerException("map key");
      -    }
      -    java.util.Map map = internalGetCosts().getMap();
      +
      +  public float getCostsOrDefault(
      +      java.lang.String key,
      +      float defaultValue) {
      +    if (key == null) { throw new NullPointerException("map key"); }
      +    java.util.Map map =
      +        internalGetCosts().getMap();
           return map.containsKey(key) ? map.get(key) : defaultValue;
         }
         /**
      -   *
      -   *
          * 
          * Optional. All the costs associated with the product. These can be
          * manufacturing costs, shipping expenses not borne by the end user, or any
      @@ -453,11 +424,12 @@ public float getCostsOrDefault(java.lang.String key, float defaultValue) {
          * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
          */
         @java.lang.Override
      -  public float getCostsOrThrow(java.lang.String key) {
      -    if (key == null) {
      -      throw new NullPointerException("map key");
      -    }
      -    java.util.Map map = internalGetCosts().getMap();
      +
      +  public float getCostsOrThrow(
      +      java.lang.String key) {
      +    if (key == null) { throw new NullPointerException("map key"); }
      +    java.util.Map map =
      +        internalGetCosts().getMap();
           if (!map.containsKey(key)) {
             throw new java.lang.IllegalArgumentException();
           }
      @@ -467,15 +439,12 @@ public float getCostsOrThrow(java.lang.String key) {
         public static final int CURRENCY_CODE_FIELD_NUMBER = 6;
         private volatile java.lang.Object currencyCode_;
         /**
      -   *
      -   *
          * 
          * Required. Currency code. Use three-character ISO-4217 code. This field
          * is not required if the event type is `refund`.
          * 
      * * string currency_code = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The currencyCode. */ @java.lang.Override @@ -484,30 +453,30 @@ public java.lang.String getCurrencyCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; } } /** - * - * *
          * Required. Currency code. Use three-character ISO-4217 code. This field
          * is not required if the event type is `refund`.
          * 
      * * string currency_code = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for currencyCode. */ @java.lang.Override - public com.google.protobuf.ByteString getCurrencyCodeBytes() { + public com.google.protobuf.ByteString + getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -516,7 +485,6 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -528,17 +496,26 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (java.lang.Float.floatToRawIntBits(revenue_) != 0) { output.writeFloat(2, revenue_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetTaxes(), TaxesDefaultEntryHolder.defaultEntry, 3); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetCosts(), CostsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetTaxes(), + TaxesDefaultEntryHolder.defaultEntry, + 3); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetCosts(), + CostsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, currencyCode_); } @@ -555,27 +532,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (java.lang.Float.floatToRawIntBits(revenue_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, revenue_); - } - for (java.util.Map.Entry entry : - internalGetTaxes().getMap().entrySet()) { - com.google.protobuf.MapEntry taxes__ = - TaxesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, taxes__); - } - for (java.util.Map.Entry entry : - internalGetCosts().getMap().entrySet()) { - com.google.protobuf.MapEntry costs__ = - CostsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, costs__); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, revenue_); + } + for (java.util.Map.Entry entry + : internalGetTaxes().getMap().entrySet()) { + com.google.protobuf.MapEntry + taxes__ = TaxesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, taxes__); + } + for (java.util.Map.Entry entry + : internalGetCosts().getMap().entrySet()) { + com.google.protobuf.MapEntry + costs__ = CostsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, costs__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, currencyCode_); @@ -588,20 +566,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction other = - (com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction) obj; + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction other = (com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction) obj; - if (!getId().equals(other.getId())) return false; + if (!getId() + .equals(other.getId())) return false; if (java.lang.Float.floatToIntBits(getRevenue()) - != java.lang.Float.floatToIntBits(other.getRevenue())) return false; - if (!internalGetTaxes().equals(other.internalGetTaxes())) return false; - if (!internalGetCosts().equals(other.internalGetCosts())) return false; - if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; + != java.lang.Float.floatToIntBits( + other.getRevenue())) return false; + if (!internalGetTaxes().equals( + other.internalGetTaxes())) return false; + if (!internalGetCosts().equals( + other.internalGetCosts())) return false; + if (!getCurrencyCode() + .equals(other.getCurrencyCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -616,7 +598,8 @@ public int hashCode() { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + REVENUE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRevenue()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRevenue()); if (!internalGetTaxes().getMap().isEmpty()) { hash = (37 * hash) + TAXES_FIELD_NUMBER; hash = (53 * hash) + internalGetTaxes().hashCode(); @@ -633,169 +616,160 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * A transaction represents the entire purchase transaction.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PurchaseTransaction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.PurchaseTransaction) com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetTaxes(); case 4: return internalGetCosts(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 3: return internalGetMutableTaxes(); case 4: return internalGetMutableCosts(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.class, - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder.class); + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.class, com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -811,14 +785,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction getDefaultInstanceForType() { return com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.getDefaultInstance(); } @@ -833,8 +806,7 @@ public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction build() @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction buildPartial() { - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction result = - new com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction(this); + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction result = new com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.revenue_ = revenue_; @@ -851,50 +823,46 @@ public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction other) { + if (other == com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); @@ -902,8 +870,10 @@ public Builder mergeFrom( if (other.getRevenue() != 0F) { setRevenue(other.getRevenue()); } - internalGetMutableTaxes().mergeFrom(other.internalGetTaxes()); - internalGetMutableCosts().mergeFrom(other.internalGetCosts()); + internalGetMutableTaxes().mergeFrom( + other.internalGetTaxes()); + internalGetMutableCosts().mergeFrom( + other.internalGetCosts()); if (!other.getCurrencyCode().isEmpty()) { currencyCode_ = other.currencyCode_; onChanged(); @@ -927,9 +897,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -938,25 +906,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object id_ = ""; /** - * - * *
            * Optional. The transaction ID with a length limit of 128 bytes.
            * 
      * * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -965,21 +930,20 @@ public java.lang.String getId() { } } /** - * - * *
            * Optional. The transaction ID with a length limit of 128 bytes.
            * 
      * * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -987,70 +951,61 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
            * Optional. The transaction ID with a length limit of 128 bytes.
            * 
      * * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { + public Builder setId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** - * - * *
            * Optional. The transaction ID with a length limit of 128 bytes.
            * 
      * * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
            * Optional. The transaction ID with a length limit of 128 bytes.
            * 
      * * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { + public Builder setIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; } - private float revenue_; + private float revenue_ ; /** - * - * *
            * Required. Total revenue or grand total associated with the transaction.
            * This value include shipping, tax, or other adjustments to total revenue
      @@ -1059,7 +1014,6 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
            * 
      * * float revenue = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The revenue. */ @java.lang.Override @@ -1067,8 +1021,6 @@ public float getRevenue() { return revenue_; } /** - * - * *
            * Required. Total revenue or grand total associated with the transaction.
            * This value include shipping, tax, or other adjustments to total revenue
      @@ -1077,19 +1029,16 @@ public float getRevenue() {
            * 
      * * float revenue = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The revenue to set. * @return This builder for chaining. */ public Builder setRevenue(float value) { - + revenue_ = value; onChanged(); return this; } /** - * - * *
            * Required. Total revenue or grand total associated with the transaction.
            * This value include shipping, tax, or other adjustments to total revenue
      @@ -1098,31 +1047,31 @@ public Builder setRevenue(float value) {
            * 
      * * float revenue = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRevenue() { - + revenue_ = 0F; onChanged(); return this; } - private com.google.protobuf.MapField taxes_; - - private com.google.protobuf.MapField internalGetTaxes() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.Float> taxes_; + private com.google.protobuf.MapField + internalGetTaxes() { if (taxes_ == null) { - return com.google.protobuf.MapField.emptyMapField(TaxesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + TaxesDefaultEntryHolder.defaultEntry); } return taxes_; } - private com.google.protobuf.MapField - internalGetMutableTaxes() { - onChanged(); - ; + internalGetMutableTaxes() { + onChanged();; if (taxes_ == null) { - taxes_ = com.google.protobuf.MapField.newMapField(TaxesDefaultEntryHolder.defaultEntry); + taxes_ = com.google.protobuf.MapField.newMapField( + TaxesDefaultEntryHolder.defaultEntry); } if (!taxes_.isMutable()) { taxes_ = taxes_.copy(); @@ -1134,30 +1083,28 @@ public int getTaxesCount() { return internalGetTaxes().getMap().size(); } /** - * - * *
            * Optional. All the taxes associated with the transaction.
            * 
      * * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsTaxes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsTaxes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetTaxes().getMap().containsKey(key); } - /** Use {@link #getTaxesMap()} instead. */ + /** + * Use {@link #getTaxesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTaxes() { return getTaxesMap(); } /** - * - * *
            * Optional. All the taxes associated with the transaction.
            * 
      @@ -1165,12 +1112,11 @@ public java.util.Map getTaxes() { * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getTaxesMap() { return internalGetTaxes().getMap(); } /** - * - * *
            * Optional. All the taxes associated with the transaction.
            * 
      @@ -1178,16 +1124,16 @@ public java.util.Map getTaxesMap() { * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public float getTaxesOrDefault(java.lang.String key, float defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetTaxes().getMap(); + + public float getTaxesOrDefault( + java.lang.String key, + float defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTaxes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
            * Optional. All the taxes associated with the transaction.
            * 
      @@ -1195,11 +1141,12 @@ public float getTaxesOrDefault(java.lang.String key, float defaultValue) { * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public float getTaxesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetTaxes().getMap(); + + public float getTaxesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTaxes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1207,76 +1154,80 @@ public float getTaxesOrThrow(java.lang.String key) { } public Builder clearTaxes() { - internalGetMutableTaxes().getMutableMap().clear(); + internalGetMutableTaxes().getMutableMap() + .clear(); return this; } /** - * - * *
            * Optional. All the taxes associated with the transaction.
            * 
      * * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeTaxes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableTaxes().getMutableMap().remove(key); + + public Builder removeTaxes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableTaxes().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableTaxes() { + public java.util.Map + getMutableTaxes() { return internalGetMutableTaxes().getMutableMap(); } /** - * - * *
            * Optional. All the taxes associated with the transaction.
            * 
      * * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putTaxes(java.lang.String key, float value) { - if (key == null) { - throw new NullPointerException("map key"); - } - - internalGetMutableTaxes().getMutableMap().put(key, value); + public Builder putTaxes( + java.lang.String key, + float value) { + if (key == null) { throw new NullPointerException("map key"); } + + internalGetMutableTaxes().getMutableMap() + .put(key, value); return this; } /** - * - * *
            * Optional. All the taxes associated with the transaction.
            * 
      * * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllTaxes(java.util.Map values) { - internalGetMutableTaxes().getMutableMap().putAll(values); + + public Builder putAllTaxes( + java.util.Map values) { + internalGetMutableTaxes().getMutableMap() + .putAll(values); return this; } - private com.google.protobuf.MapField costs_; - - private com.google.protobuf.MapField internalGetCosts() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.Float> costs_; + private com.google.protobuf.MapField + internalGetCosts() { if (costs_ == null) { - return com.google.protobuf.MapField.emptyMapField(CostsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + CostsDefaultEntryHolder.defaultEntry); } return costs_; } - private com.google.protobuf.MapField - internalGetMutableCosts() { - onChanged(); - ; + internalGetMutableCosts() { + onChanged();; if (costs_ == null) { - costs_ = com.google.protobuf.MapField.newMapField(CostsDefaultEntryHolder.defaultEntry); + costs_ = com.google.protobuf.MapField.newMapField( + CostsDefaultEntryHolder.defaultEntry); } if (!costs_.isMutable()) { costs_ = costs_.copy(); @@ -1288,8 +1239,6 @@ public int getCostsCount() { return internalGetCosts().getMap().size(); } /** - * - * *
            * Optional. All the costs associated with the product. These can be
            * manufacturing costs, shipping expenses not borne by the end user, or any
      @@ -1304,22 +1253,22 @@ public int getCostsCount() {
            *
            * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
            */
      +
           @java.lang.Override
      -    public boolean containsCosts(java.lang.String key) {
      -      if (key == null) {
      -        throw new NullPointerException("map key");
      -      }
      +    public boolean containsCosts(
      +        java.lang.String key) {
      +      if (key == null) { throw new NullPointerException("map key"); }
             return internalGetCosts().getMap().containsKey(key);
           }
      -    /** Use {@link #getCostsMap()} instead. */
      +    /**
      +     * Use {@link #getCostsMap()} instead.
      +     */
           @java.lang.Override
           @java.lang.Deprecated
           public java.util.Map getCosts() {
             return getCostsMap();
           }
           /**
      -     *
      -     *
            * 
            * Optional. All the costs associated with the product. These can be
            * manufacturing costs, shipping expenses not borne by the end user, or any
      @@ -1335,12 +1284,11 @@ public java.util.Map getCosts() {
            * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
            */
           @java.lang.Override
      +
           public java.util.Map getCostsMap() {
             return internalGetCosts().getMap();
           }
           /**
      -     *
      -     *
            * 
            * Optional. All the costs associated with the product. These can be
            * manufacturing costs, shipping expenses not borne by the end user, or any
      @@ -1356,16 +1304,16 @@ public java.util.Map getCostsMap() {
            * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
            */
           @java.lang.Override
      -    public float getCostsOrDefault(java.lang.String key, float defaultValue) {
      -      if (key == null) {
      -        throw new NullPointerException("map key");
      -      }
      -      java.util.Map map = internalGetCosts().getMap();
      +
      +    public float getCostsOrDefault(
      +        java.lang.String key,
      +        float defaultValue) {
      +      if (key == null) { throw new NullPointerException("map key"); }
      +      java.util.Map map =
      +          internalGetCosts().getMap();
             return map.containsKey(key) ? map.get(key) : defaultValue;
           }
           /**
      -     *
      -     *
            * 
            * Optional. All the costs associated with the product. These can be
            * manufacturing costs, shipping expenses not borne by the end user, or any
      @@ -1381,11 +1329,12 @@ public float getCostsOrDefault(java.lang.String key, float defaultValue) {
            * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
            */
           @java.lang.Override
      -    public float getCostsOrThrow(java.lang.String key) {
      -      if (key == null) {
      -        throw new NullPointerException("map key");
      -      }
      -      java.util.Map map = internalGetCosts().getMap();
      +
      +    public float getCostsOrThrow(
      +        java.lang.String key) {
      +      if (key == null) { throw new NullPointerException("map key"); }
      +      java.util.Map map =
      +          internalGetCosts().getMap();
             if (!map.containsKey(key)) {
               throw new java.lang.IllegalArgumentException();
             }
      @@ -1393,12 +1342,11 @@ public float getCostsOrThrow(java.lang.String key) {
           }
       
           public Builder clearCosts() {
      -      internalGetMutableCosts().getMutableMap().clear();
      +      internalGetMutableCosts().getMutableMap()
      +          .clear();
             return this;
           }
           /**
      -     *
      -     *
            * 
            * Optional. All the costs associated with the product. These can be
            * manufacturing costs, shipping expenses not borne by the end user, or any
      @@ -1413,21 +1361,23 @@ public Builder clearCosts() {
            *
            * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
            */
      -    public Builder removeCosts(java.lang.String key) {
      -      if (key == null) {
      -        throw new NullPointerException("map key");
      -      }
      -      internalGetMutableCosts().getMutableMap().remove(key);
      +
      +    public Builder removeCosts(
      +        java.lang.String key) {
      +      if (key == null) { throw new NullPointerException("map key"); }
      +      internalGetMutableCosts().getMutableMap()
      +          .remove(key);
             return this;
           }
      -    /** Use alternate mutation accessors instead. */
      +    /**
      +     * Use alternate mutation accessors instead.
      +     */
           @java.lang.Deprecated
      -    public java.util.Map getMutableCosts() {
      +    public java.util.Map
      +    getMutableCosts() {
             return internalGetMutableCosts().getMutableMap();
           }
           /**
      -     *
      -     *
            * 
            * Optional. All the costs associated with the product. These can be
            * manufacturing costs, shipping expenses not borne by the end user, or any
      @@ -1442,17 +1392,16 @@ public java.util.Map getMutableCosts() {
            *
            * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
            */
      -    public Builder putCosts(java.lang.String key, float value) {
      -      if (key == null) {
      -        throw new NullPointerException("map key");
      -      }
      -
      -      internalGetMutableCosts().getMutableMap().put(key, value);
      +    public Builder putCosts(
      +        java.lang.String key,
      +        float value) {
      +      if (key == null) { throw new NullPointerException("map key"); }
      +      
      +      internalGetMutableCosts().getMutableMap()
      +          .put(key, value);
             return this;
           }
           /**
      -     *
      -     *
            * 
            * Optional. All the costs associated with the product. These can be
            * manufacturing costs, shipping expenses not borne by the end user, or any
      @@ -1467,28 +1416,29 @@ public Builder putCosts(java.lang.String key, float value) {
            *
            * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
            */
      -    public Builder putAllCosts(java.util.Map values) {
      -      internalGetMutableCosts().getMutableMap().putAll(values);
      +
      +    public Builder putAllCosts(
      +        java.util.Map values) {
      +      internalGetMutableCosts().getMutableMap()
      +          .putAll(values);
             return this;
           }
       
           private java.lang.Object currencyCode_ = "";
           /**
      -     *
      -     *
            * 
            * Required. Currency code. Use three-character ISO-4217 code. This field
            * is not required if the event type is `refund`.
            * 
      * * string currency_code = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The currencyCode. */ public java.lang.String getCurrencyCode() { java.lang.Object ref = currencyCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; @@ -1497,22 +1447,21 @@ public java.lang.String getCurrencyCode() { } } /** - * - * *
            * Required. Currency code. Use three-character ISO-4217 code. This field
            * is not required if the event type is `refund`.
            * 
      * * string currency_code = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for currencyCode. */ - public com.google.protobuf.ByteString getCurrencyCodeBytes() { + public com.google.protobuf.ByteString + getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -1520,71 +1469,64 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { } } /** - * - * *
            * Required. Currency code. Use three-character ISO-4217 code. This field
            * is not required if the event type is `refund`.
            * 
      * * string currency_code = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCode(java.lang.String value) { + public Builder setCurrencyCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + currencyCode_ = value; onChanged(); return this; } /** - * - * *
            * Required. Currency code. Use three-character ISO-4217 code. This field
            * is not required if the event type is `refund`.
            * 
      * * string currency_code = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCurrencyCode() { - + currencyCode_ = getDefaultInstance().getCurrencyCode(); onChanged(); return this; } /** - * - * *
            * Required. Currency code. Use three-character ISO-4217 code. This field
            * is not required if the event type is `refund`.
            * 
      * * string currency_code = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { + public Builder setCurrencyCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + currencyCode_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1594,32 +1536,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.PurchaseTransaction) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.PurchaseTransaction) - private static final com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction(); } - public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PurchaseTransaction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PurchaseTransaction(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurchaseTransaction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurchaseTransaction(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1631,8 +1571,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransactionOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransactionOrBuilder.java similarity index 79% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransactionOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransactionOrBuilder.java index 64493634..f690f37a 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransactionOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransactionOrBuilder.java @@ -1,56 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; -public interface PurchaseTransactionOrBuilder - extends +public interface PurchaseTransactionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.PurchaseTransaction) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Optional. The transaction ID with a length limit of 128 bytes.
          * 
      * * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The id. */ java.lang.String getId(); /** - * - * *
          * Optional. The transaction ID with a length limit of 128 bytes.
          * 
      * * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
          * Required. Total revenue or grand total associated with the transaction.
          * This value include shipping, tax, or other adjustments to total revenue
      @@ -59,14 +36,11 @@ public interface PurchaseTransactionOrBuilder
          * 
      * * float revenue = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The revenue. */ float getRevenue(); /** - * - * *
          * Optional. All the taxes associated with the transaction.
          * 
      @@ -75,52 +49,52 @@ public interface PurchaseTransactionOrBuilder */ int getTaxesCount(); /** - * - * *
          * Optional. All the taxes associated with the transaction.
          * 
      * * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean containsTaxes(java.lang.String key); - /** Use {@link #getTaxesMap()} instead. */ + boolean containsTaxes( + java.lang.String key); + /** + * Use {@link #getTaxesMap()} instead. + */ @java.lang.Deprecated - java.util.Map getTaxes(); + java.util.Map + getTaxes(); /** - * - * *
          * Optional. All the taxes associated with the transaction.
          * 
      * * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getTaxesMap(); + java.util.Map + getTaxesMap(); /** - * - * *
          * Optional. All the taxes associated with the transaction.
          * 
      * * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - float getTaxesOrDefault(java.lang.String key, float defaultValue); + + float getTaxesOrDefault( + java.lang.String key, + float defaultValue); /** - * - * *
          * Optional. All the taxes associated with the transaction.
          * 
      * * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - float getTaxesOrThrow(java.lang.String key); + + float getTaxesOrThrow( + java.lang.String key); /** - * - * *
          * Optional. All the costs associated with the product. These can be
          * manufacturing costs, shipping expenses not borne by the end user, or any
      @@ -137,8 +111,6 @@ public interface PurchaseTransactionOrBuilder
          */
         int getCostsCount();
         /**
      -   *
      -   *
          * 
          * Optional. All the costs associated with the product. These can be
          * manufacturing costs, shipping expenses not borne by the end user, or any
      @@ -153,13 +125,15 @@ public interface PurchaseTransactionOrBuilder
          *
          * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
          */
      -  boolean containsCosts(java.lang.String key);
      -  /** Use {@link #getCostsMap()} instead. */
      +  boolean containsCosts(
      +      java.lang.String key);
      +  /**
      +   * Use {@link #getCostsMap()} instead.
      +   */
         @java.lang.Deprecated
      -  java.util.Map getCosts();
      +  java.util.Map
      +  getCosts();
         /**
      -   *
      -   *
          * 
          * Optional. All the costs associated with the product. These can be
          * manufacturing costs, shipping expenses not borne by the end user, or any
      @@ -174,10 +148,9 @@ public interface PurchaseTransactionOrBuilder
          *
          * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
          */
      -  java.util.Map getCostsMap();
      +  java.util.Map
      +  getCostsMap();
         /**
      -   *
      -   *
          * 
          * Optional. All the costs associated with the product. These can be
          * manufacturing costs, shipping expenses not borne by the end user, or any
      @@ -192,10 +165,11 @@ public interface PurchaseTransactionOrBuilder
          *
          * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
          */
      -  float getCostsOrDefault(java.lang.String key, float defaultValue);
      +
      +  float getCostsOrDefault(
      +      java.lang.String key,
      +      float defaultValue);
         /**
      -   *
      -   *
          * 
          * Optional. All the costs associated with the product. These can be
          * manufacturing costs, shipping expenses not borne by the end user, or any
      @@ -210,32 +184,29 @@ public interface PurchaseTransactionOrBuilder
          *
          * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
          */
      -  float getCostsOrThrow(java.lang.String key);
      +
      +  float getCostsOrThrow(
      +      java.lang.String key);
       
         /**
      -   *
      -   *
          * 
          * Required. Currency code. Use three-character ISO-4217 code. This field
          * is not required if the event type is `refund`.
          * 
      * * string currency_code = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The currencyCode. */ java.lang.String getCurrencyCode(); /** - * - * *
          * Required. Currency code. Use three-character ISO-4217 code. This field
          * is not required if the event type is `refund`.
          * 
      * * string currency_code = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for currencyCode. */ - com.google.protobuf.ByteString getCurrencyCodeBytes(); + com.google.protobuf.ByteString + getCurrencyCodeBytes(); } diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadata.java similarity index 67% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadata.java index d58f29ff..d2218dda 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Metadata related to the progress of the PurgeUserEvents operation.
        * This will be returned by the google.longrunning.Operation.metadata field.
      @@ -28,31 +11,31 @@
        *
        * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata}
        */
      -public final class PurgeUserEventsMetadata extends com.google.protobuf.GeneratedMessageV3
      -    implements
      +public final class PurgeUserEventsMetadata extends
      +    com.google.protobuf.GeneratedMessageV3 implements
           // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata)
           PurgeUserEventsMetadataOrBuilder {
      -  private static final long serialVersionUID = 0L;
      +private static final long serialVersionUID = 0L;
         // Use PurgeUserEventsMetadata.newBuilder() to construct.
         private PurgeUserEventsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
      -
         private PurgeUserEventsMetadata() {
           operationName_ = "";
         }
       
         @java.lang.Override
         @SuppressWarnings({"unused"})
      -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      +  protected java.lang.Object newInstance(
      +      UnusedPrivateParameter unused) {
           return new PurgeUserEventsMetadata();
         }
       
         @java.lang.Override
      -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      +  public final com.google.protobuf.UnknownFieldSet
      +  getUnknownFields() {
           return this.unknownFields;
         }
      -
         private PurgeUserEventsMetadata(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      @@ -71,35 +54,32 @@ private PurgeUserEventsMetadata(
                 case 0:
                   done = true;
                   break;
      -          case 10:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +          case 10: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              operationName_ = s;
      -              break;
      +            operationName_ = s;
      +            break;
      +          }
      +          case 18: {
      +            com.google.protobuf.Timestamp.Builder subBuilder = null;
      +            if (createTime_ != null) {
      +              subBuilder = createTime_.toBuilder();
                   }
      -          case 18:
      -            {
      -              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;
      +            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
      +            if (subBuilder != null) {
      +              subBuilder.mergeFrom(createTime_);
      +              createTime_ = subBuilder.buildPartial();
                   }
      -          default:
      -            {
      -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
      -                done = true;
      -              }
      -              break;
      +
      +            break;
      +          }
      +          default: {
      +            if (!parseUnknownField(
      +                input, unknownFields, extensionRegistry, tag)) {
      +              done = true;
                   }
      +            break;
      +          }
               }
             }
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      @@ -107,39 +87,34 @@ private PurgeUserEventsMetadata(
           } catch (com.google.protobuf.UninitializedMessageException e) {
             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
           } catch (java.io.IOException e) {
      -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      +      throw new com.google.protobuf.InvalidProtocolBufferException(
      +          e).setUnfinishedMessage(this);
           } finally {
             this.unknownFields = unknownFields.build();
             makeExtensionsImmutable();
           }
         }
      -
      -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -    return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass
      -        .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor;
      +  public static final com.google.protobuf.Descriptors.Descriptor
      +      getDescriptor() {
      +    return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor;
         }
       
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
      -    return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass
      -        .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_fieldAccessorTable
      +    return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
      -            com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.class,
      -            com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.Builder.class);
      +            com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.class, com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.Builder.class);
         }
       
         public static final int OPERATION_NAME_FIELD_NUMBER = 1;
         private volatile java.lang.Object operationName_;
         /**
      -   *
      -   *
          * 
          * The ID of the request / operation.
          * 
      * * string operation_name = 1; - * * @return The operationName. */ @java.lang.Override @@ -148,29 +123,29 @@ public java.lang.String getOperationName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationName_ = s; return s; } } /** - * - * *
          * The ID of the request / operation.
          * 
      * * string operation_name = 1; - * * @return The bytes for operationName. */ @java.lang.Override - public com.google.protobuf.ByteString getOperationNameBytes() { + public com.google.protobuf.ByteString + getOperationNameBytes() { java.lang.Object ref = operationName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operationName_ = b; return b; } else { @@ -181,14 +156,11 @@ public com.google.protobuf.ByteString getOperationNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
          * Operation create time.
          * 
      * * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -196,14 +168,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
          * Operation create time.
          * 
      * * .google.protobuf.Timestamp create_time = 2; - * * @return The createTime. */ @java.lang.Override @@ -211,8 +180,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
          * Operation create time.
          * 
      @@ -225,7 +192,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,7 +203,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operationName_); } @@ -257,7 +224,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, operationName_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -267,18 +235,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata other = - (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata) obj; + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata other = (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata) obj; - if (!getOperationName().equals(other.getOperationName())) return false; + if (!getOperationName() + .equals(other.getOperationName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -303,105 +272,96 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Metadata related to the progress of the PurgeUserEvents operation.
          * This will be returned by the google.longrunning.Operation.metadata field.
      @@ -409,40 +369,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *
          * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata}
          */
      -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
      -      implements
      +  public static final class Builder extends
      +      com.google.protobuf.GeneratedMessageV3.Builder implements
             // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata)
             com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadataOrBuilder {
      -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass
      -          .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor;
      +    public static final com.google.protobuf.Descriptors.Descriptor
      +        getDescriptor() {
      +      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor;
           }
       
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
      -      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass
      -          .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_fieldAccessorTable
      +      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
      -              com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.class,
      -              com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.Builder.class);
      +              com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.class, com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.Builder.class);
           }
       
      -    // Construct using
      -    // com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.newBuilder()
      +    // Construct using com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.newBuilder()
           private Builder() {
             maybeForceBuilderInitialization();
           }
       
      -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +    private Builder(
      +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
             maybeForceBuilderInitialization();
           }
      -
           private void maybeForceBuilderInitialization() {
      -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
      +      if (com.google.protobuf.GeneratedMessageV3
      +              .alwaysUseFieldBuilders) {
      +      }
           }
      -
           @java.lang.Override
           public Builder clear() {
             super.clear();
      @@ -458,16 +416,14 @@ public Builder clear() {
           }
       
           @java.lang.Override
      -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      -      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass
      -          .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor;
      +    public com.google.protobuf.Descriptors.Descriptor
      +        getDescriptorForType() {
      +      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor;
           }
       
           @java.lang.Override
      -    public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata
      -        getDefaultInstanceForType() {
      -      return com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata
      -          .getDefaultInstance();
      +    public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata getDefaultInstanceForType() {
      +      return com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.getDefaultInstance();
           }
       
           @java.lang.Override
      @@ -481,8 +437,7 @@ public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata bui
       
           @java.lang.Override
           public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata buildPartial() {
      -      com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata result =
      -          new com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata(this);
      +      com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata result = new com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata(this);
             result.operationName_ = operationName_;
             if (createTimeBuilder_ == null) {
               result.createTime_ = createTime_;
      @@ -497,51 +452,46 @@ public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata bui
           public Builder clone() {
             return super.clone();
           }
      -
           @java.lang.Override
           public Builder setField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        java.lang.Object value) {
             return super.setField(field, value);
           }
      -
           @java.lang.Override
      -    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      +    public Builder clearField(
      +        com.google.protobuf.Descriptors.FieldDescriptor field) {
             return super.clearField(field);
           }
      -
           @java.lang.Override
      -    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      +    public Builder clearOneof(
      +        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
             return super.clearOneof(oneof);
           }
      -
           @java.lang.Override
           public Builder setRepeatedField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        int index, java.lang.Object value) {
             return super.setRepeatedField(field, index, value);
           }
      -
           @java.lang.Override
           public Builder addRepeatedField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        java.lang.Object value) {
             return super.addRepeatedField(field, value);
           }
      -
           @java.lang.Override
           public Builder mergeFrom(com.google.protobuf.Message other) {
             if (other instanceof com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata) {
      -        return mergeFrom(
      -            (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata) other);
      +        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata)other);
             } else {
               super.mergeFrom(other);
               return this;
             }
           }
       
      -    public Builder mergeFrom(
      -        com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata other) {
      -      if (other
      -          == com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata
      -              .getDefaultInstance()) return this;
      +    public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata other) {
      +      if (other == com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.getDefaultInstance()) return this;
             if (!other.getOperationName().isEmpty()) {
               operationName_ = other.operationName_;
               onChanged();
      @@ -568,9 +518,7 @@ public Builder mergeFrom(
             try {
               parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      -        parsedMessage =
      -            (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata)
      -                e.getUnfinishedMessage();
      +        parsedMessage = (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata) e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
               if (parsedMessage != null) {
      @@ -582,20 +530,18 @@ public Builder mergeFrom(
       
           private java.lang.Object operationName_ = "";
           /**
      -     *
      -     *
            * 
            * The ID of the request / operation.
            * 
      * * string operation_name = 1; - * * @return The operationName. */ public java.lang.String getOperationName() { java.lang.Object ref = operationName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationName_ = s; return s; @@ -604,21 +550,20 @@ public java.lang.String getOperationName() { } } /** - * - * *
            * The ID of the request / operation.
            * 
      * * string operation_name = 1; - * * @return The bytes for operationName. */ - public com.google.protobuf.ByteString getOperationNameBytes() { + public com.google.protobuf.ByteString + getOperationNameBytes() { java.lang.Object ref = operationName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operationName_ = b; return b; } else { @@ -626,61 +571,54 @@ public com.google.protobuf.ByteString getOperationNameBytes() { } } /** - * - * *
            * The ID of the request / operation.
            * 
      * * string operation_name = 1; - * * @param value The operationName to set. * @return This builder for chaining. */ - public Builder setOperationName(java.lang.String value) { + public Builder setOperationName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + operationName_ = value; onChanged(); return this; } /** - * - * *
            * The ID of the request / operation.
            * 
      * * string operation_name = 1; - * * @return This builder for chaining. */ public Builder clearOperationName() { - + operationName_ = getDefaultInstance().getOperationName(); onChanged(); return this; } /** - * - * *
            * The ID of the request / operation.
            * 
      * * string operation_name = 1; - * * @param value The bytes for operationName to set. * @return This builder for chaining. */ - public Builder setOperationNameBytes(com.google.protobuf.ByteString value) { + public Builder setOperationNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operationName_ = value; onChanged(); return this; @@ -688,47 +626,34 @@ public Builder setOperationNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
            * Operation create time.
            * 
      * * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
            * Operation create time.
            * 
      * * .google.protobuf.Timestamp create_time = 2; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
            * Operation create time.
            * 
      @@ -749,15 +674,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
            * Operation create time.
            * 
      * * .google.protobuf.Timestamp create_time = 2; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -768,8 +692,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
            * Operation create time.
            * 
      @@ -780,7 +702,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -792,8 +714,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
            * Operation create time.
            * 
      @@ -812,8 +732,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
            * Operation create time.
            * 
      @@ -821,13 +739,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 2; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
            * Operation create time.
            * 
      @@ -838,14 +754,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
            * Operation create time.
            * 
      @@ -853,24 +766,21 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -880,32 +790,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata) - private static final com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata(); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PurgeUserEventsMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PurgeUserEventsMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeUserEventsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurgeUserEventsMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -917,8 +825,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadataOrBuilder.java similarity index 62% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadataOrBuilder.java index afe3fa06..6caa1db0 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadataOrBuilder.java @@ -1,80 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface PurgeUserEventsMetadataOrBuilder - extends +public interface PurgeUserEventsMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * The ID of the request / operation.
          * 
      * * string operation_name = 1; - * * @return The operationName. */ java.lang.String getOperationName(); /** - * - * *
          * The ID of the request / operation.
          * 
      * * string operation_name = 1; - * * @return The bytes for operationName. */ - com.google.protobuf.ByteString getOperationNameBytes(); + com.google.protobuf.ByteString + getOperationNameBytes(); /** - * - * *
          * Operation create time.
          * 
      * * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
          * Operation create time.
          * 
      * * .google.protobuf.Timestamp create_time = 2; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
          * Operation create time.
          * 
      diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequest.java similarity index 73% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequest.java index 9b5bc944..e18ab3ca 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Request message for PurgeUserEvents method.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest} */ -public final class PurgeUserEventsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PurgeUserEventsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) PurgeUserEventsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PurgeUserEventsRequest.newBuilder() to construct. private PurgeUserEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PurgeUserEventsRequest() { parent_ = ""; filter_ = ""; @@ -44,15 +26,16 @@ private PurgeUserEventsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PurgeUserEventsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PurgeUserEventsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private PurgeUserEventsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 24: - { - force_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 24: { + + force_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,43 +85,36 @@ private PurgeUserEventsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.class, - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.class, com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
          * Required. The resource name of the event_store under which the events are
          * created. The format is
          * `projects/${projectId}/locations/global/catalogs/${catalogId}/eventStores/${eventStoreId}`
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -149,33 +123,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
          * Required. The resource name of the event_store under which the events are
          * created. The format is
          * `projects/${projectId}/locations/global/catalogs/${catalogId}/eventStores/${eventStoreId}`
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -186,8 +158,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
          * Required. The filter string to specify the events to be deleted. Empty
          * string filter is not allowed. This filter can also be used with
      @@ -210,7 +180,6 @@ public com.google.protobuf.ByteString getParentBytes() {
          * 
      * * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ @java.lang.Override @@ -219,15 +188,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
          * Required. The filter string to specify the events to be deleted. Empty
          * string filter is not allowed. This filter can also be used with
      @@ -250,15 +218,16 @@ public java.lang.String getFilter() {
          * 
      * * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -269,8 +238,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_; /** - * - * *
          * Optional. The default value is false. Override this flag to true to
          * actually perform the purge. If the field is not set to true, a sampling of
      @@ -278,7 +245,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
          * 
      * * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -287,7 +253,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -299,7 +264,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -325,7 +291,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, force_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -335,17 +302,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest other = - (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) obj; + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest other = (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getForce() != other.getForce()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (getForce() + != other.getForce()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -362,152 +331,142 @@ public int hashCode() { hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Request message for PurgeUserEvents method.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.class, - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.class, com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -521,16 +480,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.getDefaultInstance(); } @java.lang.Override @@ -544,8 +501,7 @@ public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest buil @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest result = - new com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest(this); + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest result = new com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.force_ = force_; @@ -557,51 +513,46 @@ public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest other) { + if (other == com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -632,9 +583,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -646,24 +595,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
            * Required. The resource name of the event_store under which the events are
            * created. The format is
            * `projects/${projectId}/locations/global/catalogs/${catalogId}/eventStores/${eventStoreId}`
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -672,25 +617,22 @@ public java.lang.String getParent() { } } /** - * - * *
            * Required. The resource name of the event_store under which the events are
            * created. The format is
            * `projects/${projectId}/locations/global/catalogs/${catalogId}/eventStores/${eventStoreId}`
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -698,73 +640,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
            * Required. The resource name of the event_store under which the events are
            * created. The format is
            * `projects/${projectId}/locations/global/catalogs/${catalogId}/eventStores/${eventStoreId}`
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
            * Required. The resource name of the event_store under which the events are
            * created. The format is
            * `projects/${projectId}/locations/global/catalogs/${catalogId}/eventStores/${eventStoreId}`
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
            * Required. The resource name of the event_store under which the events are
            * created. The format is
            * `projects/${projectId}/locations/global/catalogs/${catalogId}/eventStores/${eventStoreId}`
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -772,8 +701,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
            * Required. The filter string to specify the events to be deleted. Empty
            * string filter is not allowed. This filter can also be used with
      @@ -796,13 +723,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
            * 
      * * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -811,8 +738,6 @@ public java.lang.String getFilter() { } } /** - * - * *
            * Required. The filter string to specify the events to be deleted. Empty
            * string filter is not allowed. This filter can also be used with
      @@ -835,14 +760,15 @@ public java.lang.String getFilter() {
            * 
      * * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -850,8 +776,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
            * Required. The filter string to specify the events to be deleted. Empty
            * string filter is not allowed. This filter can also be used with
      @@ -874,22 +798,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
            * 
      * * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
            * Required. The filter string to specify the events to be deleted. Empty
            * string filter is not allowed. This filter can also be used with
      @@ -912,18 +834,15 @@ public Builder setFilter(java.lang.String value) {
            * 
      * * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
            * Required. The filter string to specify the events to be deleted. Empty
            * string filter is not allowed. This filter can also be used with
      @@ -946,25 +865,23 @@ public Builder clearFilter() {
            * 
      * * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
            * Optional. The default value is false. Override this flag to true to
            * actually perform the purge. If the field is not set to true, a sampling of
      @@ -972,7 +889,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
            * 
      * * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -980,8 +896,6 @@ public boolean getForce() { return force_; } /** - * - * *
            * Optional. The default value is false. Override this flag to true to
            * actually perform the purge. If the field is not set to true, a sampling of
      @@ -989,19 +903,16 @@ public boolean getForce() {
            * 
      * * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** - * - * *
            * Optional. The default value is false. Override this flag to true to
            * actually perform the purge. If the field is not set to true, a sampling of
      @@ -1009,18 +920,17 @@ public Builder setForce(boolean value) {
            * 
      * * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1030,32 +940,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) - private static final com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PurgeUserEventsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PurgeUserEventsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeUserEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurgeUserEventsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1067,8 +975,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequestOrBuilder.java similarity index 76% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequestOrBuilder.java index f11d9362..a3f6e6e6 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface PurgeUserEventsRequestOrBuilder - extends +public interface PurgeUserEventsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required. The resource name of the event_store under which the events are
          * created. The format is
          * `projects/${projectId}/locations/global/catalogs/${catalogId}/eventStores/${eventStoreId}`
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
          * Required. The resource name of the event_store under which the events are
          * created. The format is
          * `projects/${projectId}/locations/global/catalogs/${catalogId}/eventStores/${eventStoreId}`
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
          * Required. The filter string to specify the events to be deleted. Empty
          * string filter is not allowed. This filter can also be used with
      @@ -81,13 +54,10 @@ public interface PurgeUserEventsRequestOrBuilder
          * 
      * * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
          * Required. The filter string to specify the events to be deleted. Empty
          * string filter is not allowed. This filter can also be used with
      @@ -110,14 +80,12 @@ public interface PurgeUserEventsRequestOrBuilder
          * 
      * * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
          * Optional. The default value is false. Override this flag to true to
          * actually perform the purge. If the field is not set to true, a sampling of
      @@ -125,7 +93,6 @@ public interface PurgeUserEventsRequestOrBuilder
          * 
      * * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ boolean getForce(); diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponse.java similarity index 69% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponse.java index cdea7abb..ca0b7244 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Response of the PurgeUserEventsRequest. If the long running operation is
        * successfully done, then this message is returned by the
      @@ -29,31 +12,31 @@
        *
        * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse}
        */
      -public final class PurgeUserEventsResponse extends com.google.protobuf.GeneratedMessageV3
      -    implements
      +public final class PurgeUserEventsResponse extends
      +    com.google.protobuf.GeneratedMessageV3 implements
           // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse)
           PurgeUserEventsResponseOrBuilder {
      -  private static final long serialVersionUID = 0L;
      +private static final long serialVersionUID = 0L;
         // Use PurgeUserEventsResponse.newBuilder() to construct.
         private PurgeUserEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
      -
         private PurgeUserEventsResponse() {
           userEventsSample_ = java.util.Collections.emptyList();
         }
       
         @java.lang.Override
         @SuppressWarnings({"unused"})
      -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      +  protected java.lang.Object newInstance(
      +      UnusedPrivateParameter unused) {
           return new PurgeUserEventsResponse();
         }
       
         @java.lang.Override
      -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      +  public final com.google.protobuf.UnknownFieldSet
      +  getUnknownFields() {
           return this.unknownFields;
         }
      -
         private PurgeUserEventsResponse(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      @@ -73,32 +56,27 @@ private PurgeUserEventsResponse(
                 case 0:
                   done = true;
                   break;
      -          case 8:
      -            {
      -              purgedEventsCount_ = input.readInt64();
      -              break;
      -            }
      -          case 18:
      -            {
      -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
      -                userEventsSample_ =
      -                    new java.util.ArrayList<
      -                        com.google.cloud.recommendationengine.v1beta1.UserEvent>();
      -                mutable_bitField0_ |= 0x00000001;
      -              }
      -              userEventsSample_.add(
      -                  input.readMessage(
      -                      com.google.cloud.recommendationengine.v1beta1.UserEvent.parser(),
      -                      extensionRegistry));
      -              break;
      +          case 8: {
      +
      +            purgedEventsCount_ = input.readInt64();
      +            break;
      +          }
      +          case 18: {
      +            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
      +              userEventsSample_ = new java.util.ArrayList();
      +              mutable_bitField0_ |= 0x00000001;
                   }
      -          default:
      -            {
      -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
      -                done = true;
      -              }
      -              break;
      +            userEventsSample_.add(
      +                input.readMessage(com.google.cloud.recommendationengine.v1beta1.UserEvent.parser(), extensionRegistry));
      +            break;
      +          }
      +          default: {
      +            if (!parseUnknownField(
      +                input, unknownFields, extensionRegistry, tag)) {
      +              done = true;
                   }
      +            break;
      +          }
               }
             }
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      @@ -106,7 +84,8 @@ private PurgeUserEventsResponse(
           } catch (com.google.protobuf.UninitializedMessageException e) {
             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
           } catch (java.io.IOException e) {
      -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      +      throw new com.google.protobuf.InvalidProtocolBufferException(
      +          e).setUnfinishedMessage(this);
           } finally {
             if (((mutable_bitField0_ & 0x00000001) != 0)) {
               userEventsSample_ = java.util.Collections.unmodifiableList(userEventsSample_);
      @@ -115,33 +94,27 @@ private PurgeUserEventsResponse(
             makeExtensionsImmutable();
           }
         }
      -
      -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -    return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass
      -        .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor;
      +  public static final com.google.protobuf.Descriptors.Descriptor
      +      getDescriptor() {
      +    return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor;
         }
       
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
      -    return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass
      -        .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_fieldAccessorTable
      +    return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
      -            com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.class,
      -            com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.Builder.class);
      +            com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.class, com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.Builder.class);
         }
       
         public static final int PURGED_EVENTS_COUNT_FIELD_NUMBER = 1;
         private long purgedEventsCount_;
         /**
      -   *
      -   *
          * 
          * The total count of events purged as a result of the operation.
          * 
      * * int64 purged_events_count = 1; - * * @return The purgedEventsCount. */ @java.lang.Override @@ -152,86 +125,69 @@ public long getPurgedEventsCount() { public static final int USER_EVENTS_SAMPLE_FIELD_NUMBER = 2; private java.util.List userEventsSample_; /** - * - * *
          * A sampling of events deleted (or will be deleted) depending on the `force`
          * property in the request. Max of 500 items will be returned.
          * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ @java.lang.Override - public java.util.List - getUserEventsSampleList() { + public java.util.List getUserEventsSampleList() { return userEventsSample_; } /** - * - * *
          * A sampling of events deleted (or will be deleted) depending on the `force`
          * property in the request. Max of 500 items will be returned.
          * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ @java.lang.Override - public java.util.List + public java.util.List getUserEventsSampleOrBuilderList() { return userEventsSample_; } /** - * - * *
          * A sampling of events deleted (or will be deleted) depending on the `force`
          * property in the request. Max of 500 items will be returned.
          * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ @java.lang.Override public int getUserEventsSampleCount() { return userEventsSample_.size(); } /** - * - * *
          * A sampling of events deleted (or will be deleted) depending on the `force`
          * property in the request. Max of 500 items will be returned.
          * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEventsSample(int index) { return userEventsSample_.get(index); } /** - * - * *
          * A sampling of events deleted (or will be deleted) depending on the `force`
          * property in the request. Max of 500 items will be returned.
          * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder - getUserEventsSampleOrBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventsSampleOrBuilder( + int index) { return userEventsSample_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,7 +199,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (purgedEventsCount_ != 0L) { output.writeInt64(1, purgedEventsCount_); } @@ -260,10 +217,12 @@ public int getSerializedSize() { size = 0; if (purgedEventsCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, purgedEventsCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, purgedEventsCount_); } for (int i = 0; i < userEventsSample_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, userEventsSample_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, userEventsSample_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -273,16 +232,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse other = - (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse) obj; + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse other = (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse) obj; - if (getPurgedEventsCount() != other.getPurgedEventsCount()) return false; - if (!getUserEventsSampleList().equals(other.getUserEventsSampleList())) return false; + if (getPurgedEventsCount() + != other.getPurgedEventsCount()) return false; + if (!getUserEventsSampleList() + .equals(other.getUserEventsSampleList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -295,7 +255,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PURGED_EVENTS_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPurgedEventsCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPurgedEventsCount()); if (getUserEventsSampleCount() > 0) { hash = (37 * hash) + USER_EVENTS_SAMPLE_FIELD_NUMBER; hash = (53 * hash) + getUserEventsSampleList().hashCode(); @@ -306,105 +267,96 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Response of the PurgeUserEventsRequest. If the long running operation is
          * successfully done, then this message is returned by the
      @@ -413,42 +365,39 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *
          * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse}
          */
      -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
      -      implements
      +  public static final class Builder extends
      +      com.google.protobuf.GeneratedMessageV3.Builder implements
             // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse)
             com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponseOrBuilder {
      -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass
      -          .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor;
      +    public static final com.google.protobuf.Descriptors.Descriptor
      +        getDescriptor() {
      +      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor;
           }
       
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
      -      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass
      -          .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_fieldAccessorTable
      +      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
      -              com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.class,
      -              com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.Builder.class);
      +              com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.class, com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.Builder.class);
           }
       
      -    // Construct using
      -    // com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.newBuilder()
      +    // Construct using com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.newBuilder()
           private Builder() {
             maybeForceBuilderInitialization();
           }
       
      -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +    private Builder(
      +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
             maybeForceBuilderInitialization();
           }
      -
           private void maybeForceBuilderInitialization() {
      -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
      +      if (com.google.protobuf.GeneratedMessageV3
      +              .alwaysUseFieldBuilders) {
               getUserEventsSampleFieldBuilder();
             }
           }
      -
           @java.lang.Override
           public Builder clear() {
             super.clear();
      @@ -464,16 +413,14 @@ public Builder clear() {
           }
       
           @java.lang.Override
      -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      -      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass
      -          .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor;
      +    public com.google.protobuf.Descriptors.Descriptor
      +        getDescriptorForType() {
      +      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor;
           }
       
           @java.lang.Override
      -    public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse
      -        getDefaultInstanceForType() {
      -      return com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse
      -          .getDefaultInstance();
      +    public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse getDefaultInstanceForType() {
      +      return com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.getDefaultInstance();
           }
       
           @java.lang.Override
      @@ -487,8 +434,7 @@ public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse bui
       
           @java.lang.Override
           public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse buildPartial() {
      -      com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse result =
      -          new com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse(this);
      +      com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse result = new com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse(this);
             int from_bitField0_ = bitField0_;
             result.purgedEventsCount_ = purgedEventsCount_;
             if (userEventsSampleBuilder_ == null) {
      @@ -508,51 +454,46 @@ public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse bui
           public Builder clone() {
             return super.clone();
           }
      -
           @java.lang.Override
           public Builder setField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        java.lang.Object value) {
             return super.setField(field, value);
           }
      -
           @java.lang.Override
      -    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      +    public Builder clearField(
      +        com.google.protobuf.Descriptors.FieldDescriptor field) {
             return super.clearField(field);
           }
      -
           @java.lang.Override
      -    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      +    public Builder clearOneof(
      +        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
             return super.clearOneof(oneof);
           }
      -
           @java.lang.Override
           public Builder setRepeatedField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        int index, java.lang.Object value) {
             return super.setRepeatedField(field, index, value);
           }
      -
           @java.lang.Override
           public Builder addRepeatedField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        java.lang.Object value) {
             return super.addRepeatedField(field, value);
           }
      -
           @java.lang.Override
           public Builder mergeFrom(com.google.protobuf.Message other) {
             if (other instanceof com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse) {
      -        return mergeFrom(
      -            (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse) other);
      +        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse)other);
             } else {
               super.mergeFrom(other);
               return this;
             }
           }
       
      -    public Builder mergeFrom(
      -        com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse other) {
      -      if (other
      -          == com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse
      -              .getDefaultInstance()) return this;
      +    public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse other) {
      +      if (other == com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.getDefaultInstance()) return this;
             if (other.getPurgedEventsCount() != 0L) {
               setPurgedEventsCount(other.getPurgedEventsCount());
             }
      @@ -574,10 +515,9 @@ public Builder mergeFrom(
                   userEventsSampleBuilder_ = null;
                   userEventsSample_ = other.userEventsSample_;
                   bitField0_ = (bitField0_ & ~0x00000001);
      -            userEventsSampleBuilder_ =
      -                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
      -                    ? getUserEventsSampleFieldBuilder()
      -                    : null;
      +            userEventsSampleBuilder_ = 
      +              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
      +                 getUserEventsSampleFieldBuilder() : null;
                 } else {
                   userEventsSampleBuilder_.addAllMessages(other.userEventsSample_);
                 }
      @@ -602,9 +542,7 @@ public Builder mergeFrom(
             try {
               parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      -        parsedMessage =
      -            (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse)
      -                e.getUnfinishedMessage();
      +        parsedMessage = (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse) e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
               if (parsedMessage != null) {
      @@ -613,19 +551,15 @@ public Builder mergeFrom(
             }
             return this;
           }
      -
           private int bitField0_;
       
      -    private long purgedEventsCount_;
      +    private long purgedEventsCount_ ;
           /**
      -     *
      -     *
            * 
            * The total count of events purged as a result of the operation.
            * 
      * * int64 purged_events_count = 1; - * * @return The purgedEventsCount. */ @java.lang.Override @@ -633,72 +567,56 @@ public long getPurgedEventsCount() { return purgedEventsCount_; } /** - * - * *
            * The total count of events purged as a result of the operation.
            * 
      * * int64 purged_events_count = 1; - * * @param value The purgedEventsCount to set. * @return This builder for chaining. */ public Builder setPurgedEventsCount(long value) { - + purgedEventsCount_ = value; onChanged(); return this; } /** - * - * *
            * The total count of events purged as a result of the operation.
            * 
      * * int64 purged_events_count = 1; - * * @return This builder for chaining. */ public Builder clearPurgedEventsCount() { - + purgedEventsCount_ = 0L; onChanged(); return this; } - private java.util.List - userEventsSample_ = java.util.Collections.emptyList(); - + private java.util.List userEventsSample_ = + java.util.Collections.emptyList(); private void ensureUserEventsSampleIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - userEventsSample_ = - new java.util.ArrayList( - userEventsSample_); + userEventsSample_ = new java.util.ArrayList(userEventsSample_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, - com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> - userEventsSampleBuilder_; + com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> userEventsSampleBuilder_; /** - * - * *
            * A sampling of events deleted (or will be deleted) depending on the `force`
            * property in the request. Max of 500 items will be returned.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ - public java.util.List - getUserEventsSampleList() { + public java.util.List getUserEventsSampleList() { if (userEventsSampleBuilder_ == null) { return java.util.Collections.unmodifiableList(userEventsSample_); } else { @@ -706,15 +624,12 @@ private void ensureUserEventsSampleIsMutable() { } } /** - * - * *
            * A sampling of events deleted (or will be deleted) depending on the `force`
            * property in the request. Max of 500 items will be returned.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ public int getUserEventsSampleCount() { if (userEventsSampleBuilder_ == null) { @@ -724,15 +639,12 @@ public int getUserEventsSampleCount() { } } /** - * - * *
            * A sampling of events deleted (or will be deleted) depending on the `force`
            * property in the request. Max of 500 items will be returned.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEventsSample(int index) { if (userEventsSampleBuilder_ == null) { @@ -742,15 +654,12 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEventsSamp } } /** - * - * *
            * A sampling of events deleted (or will be deleted) depending on the `force`
            * property in the request. Max of 500 items will be returned.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ public Builder setUserEventsSample( int index, com.google.cloud.recommendationengine.v1beta1.UserEvent value) { @@ -767,19 +676,15 @@ public Builder setUserEventsSample( return this; } /** - * - * *
            * A sampling of events deleted (or will be deleted) depending on the `force`
            * property in the request. Max of 500 items will be returned.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ public Builder setUserEventsSample( - int index, - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { + int index, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { if (userEventsSampleBuilder_ == null) { ensureUserEventsSampleIsMutable(); userEventsSample_.set(index, builderForValue.build()); @@ -790,18 +695,14 @@ public Builder setUserEventsSample( return this; } /** - * - * *
            * A sampling of events deleted (or will be deleted) depending on the `force`
            * property in the request. Max of 500 items will be returned.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ - public Builder addUserEventsSample( - com.google.cloud.recommendationengine.v1beta1.UserEvent value) { + public Builder addUserEventsSample(com.google.cloud.recommendationengine.v1beta1.UserEvent value) { if (userEventsSampleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -815,15 +716,12 @@ public Builder addUserEventsSample( return this; } /** - * - * *
            * A sampling of events deleted (or will be deleted) depending on the `force`
            * property in the request. Max of 500 items will be returned.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ public Builder addUserEventsSample( int index, com.google.cloud.recommendationengine.v1beta1.UserEvent value) { @@ -840,15 +738,12 @@ public Builder addUserEventsSample( return this; } /** - * - * *
            * A sampling of events deleted (or will be deleted) depending on the `force`
            * property in the request. Max of 500 items will be returned.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ public Builder addUserEventsSample( com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { @@ -862,19 +757,15 @@ public Builder addUserEventsSample( return this; } /** - * - * *
            * A sampling of events deleted (or will be deleted) depending on the `force`
            * property in the request. Max of 500 items will be returned.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ public Builder addUserEventsSample( - int index, - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { + int index, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { if (userEventsSampleBuilder_ == null) { ensureUserEventsSampleIsMutable(); userEventsSample_.add(index, builderForValue.build()); @@ -885,22 +776,19 @@ public Builder addUserEventsSample( return this; } /** - * - * *
            * A sampling of events deleted (or will be deleted) depending on the `force`
            * property in the request. Max of 500 items will be returned.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ public Builder addAllUserEventsSample( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (userEventsSampleBuilder_ == null) { ensureUserEventsSampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userEventsSample_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, userEventsSample_); onChanged(); } else { userEventsSampleBuilder_.addAllMessages(values); @@ -908,15 +796,12 @@ public Builder addAllUserEventsSample( return this; } /** - * - * *
            * A sampling of events deleted (or will be deleted) depending on the `force`
            * property in the request. Max of 500 items will be returned.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ public Builder clearUserEventsSample() { if (userEventsSampleBuilder_ == null) { @@ -929,15 +814,12 @@ public Builder clearUserEventsSample() { return this; } /** - * - * *
            * A sampling of events deleted (or will be deleted) depending on the `force`
            * property in the request. Max of 500 items will be returned.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ public Builder removeUserEventsSample(int index) { if (userEventsSampleBuilder_ == null) { @@ -950,53 +832,42 @@ public Builder removeUserEventsSample(int index) { return this; } /** - * - * *
            * A sampling of events deleted (or will be deleted) depending on the `force`
            * property in the request. Max of 500 items will be returned.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ - public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder - getUserEventsSampleBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder getUserEventsSampleBuilder( + int index) { return getUserEventsSampleFieldBuilder().getBuilder(index); } /** - * - * *
            * A sampling of events deleted (or will be deleted) depending on the `force`
            * property in the request. Max of 500 items will be returned.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ - public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder - getUserEventsSampleOrBuilder(int index) { + public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventsSampleOrBuilder( + int index) { if (userEventsSampleBuilder_ == null) { - return userEventsSample_.get(index); - } else { + return userEventsSample_.get(index); } else { return userEventsSampleBuilder_.getMessageOrBuilder(index); } } /** - * - * *
            * A sampling of events deleted (or will be deleted) depending on the `force`
            * property in the request. Max of 500 items will be returned.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ - public java.util.List< - ? extends com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> - getUserEventsSampleOrBuilderList() { + public java.util.List + getUserEventsSampleOrBuilderList() { if (userEventsSampleBuilder_ != null) { return userEventsSampleBuilder_.getMessageOrBuilderList(); } else { @@ -1004,65 +875,48 @@ public Builder removeUserEventsSample(int index) { } } /** - * - * *
            * A sampling of events deleted (or will be deleted) depending on the `force`
            * property in the request. Max of 500 items will be returned.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ - public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder - addUserEventsSampleBuilder() { - return getUserEventsSampleFieldBuilder() - .addBuilder(com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder addUserEventsSampleBuilder() { + return getUserEventsSampleFieldBuilder().addBuilder( + com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); } /** - * - * *
            * A sampling of events deleted (or will be deleted) depending on the `force`
            * property in the request. Max of 500 items will be returned.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ - public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder - addUserEventsSampleBuilder(int index) { - return getUserEventsSampleFieldBuilder() - .addBuilder( - index, com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder addUserEventsSampleBuilder( + int index) { + return getUserEventsSampleFieldBuilder().addBuilder( + index, com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); } /** - * - * *
            * A sampling of events deleted (or will be deleted) depending on the `force`
            * property in the request. Max of 500 items will be returned.
            * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ - public java.util.List - getUserEventsSampleBuilderList() { + public java.util.List + getUserEventsSampleBuilderList() { return getUserEventsSampleFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, - com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> + com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> getUserEventsSampleFieldBuilder() { if (userEventsSampleBuilder_ == null) { - userEventsSampleBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, - com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder>( + userEventsSampleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder>( userEventsSample_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1071,9 +925,9 @@ public Builder removeUserEventsSample(int index) { } return userEventsSampleBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1083,32 +937,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse) - private static final com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse(); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PurgeUserEventsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PurgeUserEventsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeUserEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurgeUserEventsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1120,8 +972,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponseOrBuilder.java index 5535c83b..f4771ad6 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponseOrBuilder.java @@ -1,100 +1,67 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface PurgeUserEventsResponseOrBuilder - extends +public interface PurgeUserEventsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * The total count of events purged as a result of the operation.
          * 
      * * int64 purged_events_count = 1; - * * @return The purgedEventsCount. */ long getPurgedEventsCount(); /** - * - * *
          * A sampling of events deleted (or will be deleted) depending on the `force`
          * property in the request. Max of 500 items will be returned.
          * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ - java.util.List getUserEventsSampleList(); + java.util.List + getUserEventsSampleList(); /** - * - * *
          * A sampling of events deleted (or will be deleted) depending on the `force`
          * property in the request. Max of 500 items will be returned.
          * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEventsSample(int index); /** - * - * *
          * A sampling of events deleted (or will be deleted) depending on the `force`
          * property in the request. Max of 500 items will be returned.
          * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ int getUserEventsSampleCount(); /** - * - * *
          * A sampling of events deleted (or will be deleted) depending on the `force`
          * property in the request. Max of 500 items will be returned.
          * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ - java.util.List + java.util.List getUserEventsSampleOrBuilderList(); /** - * - * *
          * A sampling of events deleted (or will be deleted) depending on the `force`
          * property in the request. Max of 500 items will be returned.
          * 
      * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; */ com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventsSampleOrBuilder( int index); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/RecommendationengineResources.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/RecommendationengineResources.java new file mode 100644 index 00000000..f754b7f8 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/RecommendationengineResources.java @@ -0,0 +1,72 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public final class RecommendationengineResources { + private RecommendationengineResources() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nNgoogle/cloud/recommendationengine/v1be" + + "ta1/recommendationengine_resources.proto" + + "\022)google.cloud.recommendationengine.v1be" + + "ta1\032\031google/api/resource.protoB\253\010\n-com.g" + + "oogle.cloud.recommendationengine.v1beta1" + + "P\001Z]google.golang.org/genproto/googleapi" + + "s/cloud/recommendationengine/v1beta1;rec" + + "ommendationengine\242\002\005RECAI\252\002)Google.Cloud" + + ".RecommendationEngine.V1Beta1\312\002)Google\\C" + + "loud\\RecommendationEngine\\V1beta1\352\002,Goog" + + "le::Cloud::RecommendationEngine::V1beta1" + + "\352Ai\n+recommendationengine.googleapis.com" + + "/Catalog\022:projects/{project}/locations/{" + + "location}/catalogs/{catalog}\352A\225\001\n3recomm" + + "endationengine.googleapis.com/CatalogIte" + + "mPath\022^projects/{project}/locations/{loc" + + "ation}/catalogs/{catalog}/catalogItems/{" + + "catalog_item_path=**}\352A\206\001\n.recommendatio" + + "nengine.googleapis.com/EventStore\022Tproje" + + "cts/{project}/locations/{location}/catal" + + "ogs/{catalog}/eventStores/{event_store}\352" + + "A\331\001\n@recommendationengine.googleapis.com" + + "/PredictionApiKeyRegistration\022\224\001projects" + + "/{project}/locations/{location}/catalogs" + + "/{catalog}/eventStores/{event_store}/pre" + + "dictionApiKeyRegistrations/{prediction_a" + + "pi_key_registration}\352A\234\001\n-recommendation" + + "engine.googleapis.com/Placement\022kproject" + + "s/{project}/locations/{location}/catalog" + + "s/{catalog}/eventStores/{event_store}/pl" + + "acements/{placement}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceDefinition); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequest.java similarity index 64% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequest.java index a31ccb79..ea1d943e 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog_service.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Request message for UpdateCatalogItem method.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest} */ -public final class UpdateCatalogItemRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateCatalogItemRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest) UpdateCatalogItemRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateCatalogItemRequest.newBuilder() to construct. private UpdateCatalogItemRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateCatalogItemRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateCatalogItemRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateCatalogItemRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,45 @@ private UpdateCatalogItemRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder subBuilder = null; + if (catalogItem_ != null) { + subBuilder = catalogItem_.toBuilder(); } - case 18: - { - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder subBuilder = null; - if (catalogItem_ != null) { - subBuilder = catalogItem_.toBuilder(); - } - catalogItem_ = - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(catalogItem_); - catalogItem_ = subBuilder.buildPartial(); - } - - break; + catalogItem_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.CatalogItem.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(catalogItem_); + catalogItem_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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) { @@ -123,42 +99,35 @@ private UpdateCatalogItemRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.class, - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.class, com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
          * Required. Full resource name of catalog item, such as
          * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id".
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -167,32 +136,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
          * Required. Full resource name of catalog item, such as
          * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id".
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -203,17 +170,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CATALOG_ITEM_FIELD_NUMBER = 2; private com.google.cloud.recommendationengine.v1beta1.CatalogItem catalogItem_; /** - * - * *
          * Required. The catalog item to update/create. The 'catalog_item_id' field
          * has to match that in the 'name'.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the catalogItem field is set. */ @java.lang.Override @@ -221,55 +183,40 @@ public boolean hasCatalogItem() { return catalogItem_ != null; } /** - * - * *
          * Required. The catalog item to update/create. The 'catalog_item_id' field
          * has to match that in the 'name'.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The catalogItem. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItem() { - return catalogItem_ == null - ? com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() - : catalogItem_; + return catalogItem_ == null ? com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() : catalogItem_; } /** - * - * *
          * Required. The catalog item to update/create. The 'catalog_item_id' field
          * has to match that in the 'name'.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder - getCatalogItemOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemOrBuilder() { return getCatalogItem(); } public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
          * Optional. Indicates which fields in the provided 'item' to update. If not
          * set, will by default update all fields.
          * 
      * * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -277,15 +224,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
          * Optional. Indicates which fields in the provided 'item' to update. If not
          * set, will by default update all fields.
          * 
      * * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ @java.lang.Override @@ -293,8 +237,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
          * Optional. Indicates which fields in the provided 'item' to update. If not
          * set, will by default update all fields.
      @@ -308,7 +250,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
         }
       
         private byte memoizedIsInitialized = -1;
      -
         @java.lang.Override
         public final boolean isInitialized() {
           byte isInitialized = memoizedIsInitialized;
      @@ -320,7 +261,8 @@ public final boolean isInitialized() {
         }
       
         @java.lang.Override
      -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      +  public void writeTo(com.google.protobuf.CodedOutputStream output)
      +                      throws java.io.IOException {
           if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
             com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
           }
      @@ -343,10 +285,12 @@ public int getSerializedSize() {
             size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
           }
           if (catalogItem_ != null) {
      -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCatalogItem());
      +      size += com.google.protobuf.CodedOutputStream
      +        .computeMessageSize(2, getCatalogItem());
           }
           if (updateMask_ != null) {
      -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask());
      +      size += com.google.protobuf.CodedOutputStream
      +        .computeMessageSize(3, getUpdateMask());
           }
           size += unknownFields.getSerializedSize();
           memoizedSize = size;
      @@ -356,22 +300,24 @@ public int getSerializedSize() {
         @java.lang.Override
         public boolean equals(final java.lang.Object obj) {
           if (obj == this) {
      -      return true;
      +     return true;
           }
           if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest)) {
             return super.equals(obj);
           }
      -    com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest other =
      -        (com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest) obj;
      +    com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest other = (com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest) obj;
       
      -    if (!getName().equals(other.getName())) return false;
      +    if (!getName()
      +        .equals(other.getName())) return false;
           if (hasCatalogItem() != other.hasCatalogItem()) return false;
           if (hasCatalogItem()) {
      -      if (!getCatalogItem().equals(other.getCatalogItem())) return false;
      +      if (!getCatalogItem()
      +          .equals(other.getCatalogItem())) return false;
           }
           if (hasUpdateMask() != other.hasUpdateMask()) return false;
           if (hasUpdateMask()) {
      -      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
      +      if (!getUpdateMask()
      +          .equals(other.getUpdateMask())) return false;
           }
           if (!unknownFields.equals(other.unknownFields)) return false;
           return true;
      @@ -400,145 +346,134 @@ public int hashCode() {
         }
       
         public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(
      -      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      +      java.nio.ByteBuffer data)
      +      throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(
      -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +      java.nio.ByteBuffer data,
      +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(
             com.google.protobuf.ByteString data)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(
             com.google.protobuf.ByteString data,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
      -
      -  public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(
      -      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      +  public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(byte[] data)
      +      throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(
      -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +      byte[] data,
      +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws com.google.protobuf.InvalidProtocolBufferException {
           return PARSER.parseFrom(data, extensionRegistry);
         }
      -
      -  public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(
      -      java.io.InputStream input) throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      +  public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(java.io.InputStream input)
      +      throws java.io.IOException {
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseWithIOException(PARSER, input);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(
      -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +      java.io.InputStream input,
      +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
      -        PARSER, input, extensionRegistry);
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseWithIOException(PARSER, input, extensionRegistry);
         }
      -
      -  public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest
      -      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
      +  public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseDelimitedFrom(java.io.InputStream input)
      +      throws java.io.IOException {
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseDelimitedWithIOException(PARSER, input);
         }
      -
      -  public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest
      -      parseDelimitedFrom(
      -          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      -          throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
      -        PARSER, input, extensionRegistry);
      +  public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseDelimitedFrom(
      +      java.io.InputStream input,
      +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +      throws java.io.IOException {
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(
      -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
      +      com.google.protobuf.CodedInputStream input)
      +      throws java.io.IOException {
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseWithIOException(PARSER, input);
         }
      -
         public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
      -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
      -        PARSER, input, extensionRegistry);
      +    return com.google.protobuf.GeneratedMessageV3
      +        .parseWithIOException(PARSER, input, extensionRegistry);
         }
       
         @java.lang.Override
      -  public Builder newBuilderForType() {
      -    return newBuilder();
      -  }
      -
      +  public Builder newBuilderForType() { return newBuilder(); }
         public static Builder newBuilder() {
           return DEFAULT_INSTANCE.toBuilder();
         }
      -
      -  public static Builder newBuilder(
      -      com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest prototype) {
      +  public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest prototype) {
           return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
         }
      -
         @java.lang.Override
         public Builder toBuilder() {
      -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
      +    return this == DEFAULT_INSTANCE
      +        ? new Builder() : new Builder().mergeFrom(this);
         }
       
         @java.lang.Override
      -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +  protected Builder newBuilderForType(
      +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           Builder builder = new Builder(parent);
           return builder;
         }
         /**
      -   *
      -   *
          * 
          * Request message for UpdateCatalogItem method.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest) com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.class, - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.class, com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -560,22 +495,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest build() { - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest result = - buildPartial(); + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -584,8 +516,7 @@ public com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest bu @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest result = - new com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest(this); + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest result = new com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest(this); result.name_ = name_; if (catalogItemBuilder_ == null) { result.catalogItem_ = catalogItem_; @@ -605,51 +536,46 @@ public com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest other) { + if (other == com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -679,9 +605,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -693,23 +617,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
            * Required. Full resource name of catalog item, such as
            * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id".
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -718,24 +638,21 @@ public java.lang.String getName() { } } /** - * - * *
            * Required. Full resource name of catalog item, such as
            * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id".
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -743,70 +660,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
            * Required. Full resource name of catalog item, such as
            * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id".
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
            * Required. Full resource name of catalog item, such as
            * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id".
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
            * Required. Full resource name of catalog item, such as
            * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id".
            * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -814,61 +718,42 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.recommendationengine.v1beta1.CatalogItem catalogItem_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, - com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> - catalogItemBuilder_; + com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> catalogItemBuilder_; /** - * - * *
            * Required. The catalog item to update/create. The 'catalog_item_id' field
            * has to match that in the 'name'.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the catalogItem field is set. */ public boolean hasCatalogItem() { return catalogItemBuilder_ != null || catalogItem_ != null; } /** - * - * *
            * Required. The catalog item to update/create. The 'catalog_item_id' field
            * has to match that in the 'name'.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The catalogItem. */ public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItem() { if (catalogItemBuilder_ == null) { - return catalogItem_ == null - ? com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() - : catalogItem_; + return catalogItem_ == null ? com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() : catalogItem_; } else { return catalogItemBuilder_.getMessage(); } } /** - * - * *
            * Required. The catalog item to update/create. The 'catalog_item_id' field
            * has to match that in the 'name'.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCatalogItem(com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { if (catalogItemBuilder_ == null) { @@ -884,16 +769,12 @@ public Builder setCatalogItem(com.google.cloud.recommendationengine.v1beta1.Cata return this; } /** - * - * *
            * Required. The catalog item to update/create. The 'catalog_item_id' field
            * has to match that in the 'name'.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCatalogItem( com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { @@ -907,25 +788,18 @@ public Builder setCatalogItem( return this; } /** - * - * *
            * Required. The catalog item to update/create. The 'catalog_item_id' field
            * has to match that in the 'name'.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeCatalogItem( - com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { + public Builder mergeCatalogItem(com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { if (catalogItemBuilder_ == null) { if (catalogItem_ != null) { catalogItem_ = - com.google.cloud.recommendationengine.v1beta1.CatalogItem.newBuilder(catalogItem_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.newBuilder(catalogItem_).mergeFrom(value).buildPartial(); } else { catalogItem_ = value; } @@ -937,16 +811,12 @@ public Builder mergeCatalogItem( return this; } /** - * - * *
            * Required. The catalog item to update/create. The 'catalog_item_id' field
            * has to match that in the 'name'.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCatalogItem() { if (catalogItemBuilder_ == null) { @@ -960,69 +830,51 @@ public Builder clearCatalogItem() { return this; } /** - * - * *
            * Required. The catalog item to update/create. The 'catalog_item_id' field
            * has to match that in the 'name'.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder - getCatalogItemBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder getCatalogItemBuilder() { + onChanged(); return getCatalogItemFieldBuilder().getBuilder(); } /** - * - * *
            * Required. The catalog item to update/create. The 'catalog_item_id' field
            * has to match that in the 'name'.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder - getCatalogItemOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemOrBuilder() { if (catalogItemBuilder_ != null) { return catalogItemBuilder_.getMessageOrBuilder(); } else { - return catalogItem_ == null - ? com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() - : catalogItem_; + return catalogItem_ == null ? + com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() : catalogItem_; } } /** - * - * *
            * Required. The catalog item to update/create. The 'catalog_item_id' field
            * has to match that in the 'name'.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, - com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> + com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> getCatalogItemFieldBuilder() { if (catalogItemBuilder_ == null) { - catalogItemBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, - com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder>( - getCatalogItem(), getParentForChildren(), isClean()); + catalogItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder>( + getCatalogItem(), + getParentForChildren(), + isClean()); catalogItem_ = null; } return catalogItemBuilder_; @@ -1030,49 +882,36 @@ public Builder clearCatalogItem() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
            * Optional. Indicates which fields in the provided 'item' to update. If not
            * set, will by default update all fields.
            * 
      * * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
            * Optional. Indicates which fields in the provided 'item' to update. If not
            * set, will by default update all fields.
            * 
      * * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
            * Optional. Indicates which fields in the provided 'item' to update. If not
            * set, will by default update all fields.
      @@ -1094,8 +933,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
             return this;
           }
           /**
      -     *
      -     *
            * 
            * Optional. Indicates which fields in the provided 'item' to update. If not
            * set, will by default update all fields.
      @@ -1103,7 +940,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
            *
            * .google.protobuf.FieldMask update_mask = 3;
            */
      -    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
      +    public Builder setUpdateMask(
      +        com.google.protobuf.FieldMask.Builder builderForValue) {
             if (updateMaskBuilder_ == null) {
               updateMask_ = builderForValue.build();
               onChanged();
      @@ -1114,8 +952,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
             return this;
           }
           /**
      -     *
      -     *
            * 
            * Optional. Indicates which fields in the provided 'item' to update. If not
            * set, will by default update all fields.
      @@ -1127,7 +963,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
             if (updateMaskBuilder_ == null) {
               if (updateMask_ != null) {
                 updateMask_ =
      -              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
      +            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
               } else {
                 updateMask_ = value;
               }
      @@ -1139,8 +975,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
             return this;
           }
           /**
      -     *
      -     *
            * 
            * Optional. Indicates which fields in the provided 'item' to update. If not
            * set, will by default update all fields.
      @@ -1160,8 +994,6 @@ public Builder clearUpdateMask() {
             return this;
           }
           /**
      -     *
      -     *
            * 
            * Optional. Indicates which fields in the provided 'item' to update. If not
            * set, will by default update all fields.
      @@ -1170,13 +1002,11 @@ public Builder clearUpdateMask() {
            * .google.protobuf.FieldMask update_mask = 3;
            */
           public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      -
      +      
             onChanged();
             return getUpdateMaskFieldBuilder().getBuilder();
           }
           /**
      -     *
      -     *
            * 
            * Optional. Indicates which fields in the provided 'item' to update. If not
            * set, will by default update all fields.
      @@ -1188,14 +1018,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
             if (updateMaskBuilder_ != null) {
               return updateMaskBuilder_.getMessageOrBuilder();
             } else {
      -        return updateMask_ == null
      -            ? com.google.protobuf.FieldMask.getDefaultInstance()
      -            : updateMask_;
      +        return updateMask_ == null ?
      +            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
             }
           }
           /**
      -     *
      -     *
            * 
            * Optional. Indicates which fields in the provided 'item' to update. If not
            * set, will by default update all fields.
      @@ -1204,24 +1031,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
            * .google.protobuf.FieldMask update_mask = 3;
            */
           private com.google.protobuf.SingleFieldBuilderV3<
      -            com.google.protobuf.FieldMask,
      -            com.google.protobuf.FieldMask.Builder,
      -            com.google.protobuf.FieldMaskOrBuilder>
      +        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
               getUpdateMaskFieldBuilder() {
             if (updateMaskBuilder_ == null) {
      -        updateMaskBuilder_ =
      -            new com.google.protobuf.SingleFieldBuilderV3<
      -                com.google.protobuf.FieldMask,
      -                com.google.protobuf.FieldMask.Builder,
      -                com.google.protobuf.FieldMaskOrBuilder>(
      -                getUpdateMask(), getParentForChildren(), isClean());
      +        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
      +            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
      +                getUpdateMask(),
      +                getParentForChildren(),
      +                isClean());
               updateMask_ = null;
             }
             return updateMaskBuilder_;
           }
      -
           @java.lang.Override
      -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      +    public final Builder setUnknownFields(
      +        final com.google.protobuf.UnknownFieldSet unknownFields) {
             return super.setUnknownFields(unknownFields);
           }
       
      @@ -1231,32 +1055,30 @@ public final Builder mergeUnknownFields(
             return super.mergeUnknownFields(unknownFields);
           }
       
      +
           // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest)
         }
       
         // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest)
      -  private static final com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest
      -      DEFAULT_INSTANCE;
      -
      +  private static final com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest DEFAULT_INSTANCE;
         static {
           DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest();
         }
       
      -  public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest
      -      getDefaultInstance() {
      +  public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest getDefaultInstance() {
           return DEFAULT_INSTANCE;
         }
       
      -  private static final com.google.protobuf.Parser PARSER =
      -      new com.google.protobuf.AbstractParser() {
      -        @java.lang.Override
      -        public UpdateCatalogItemRequest parsePartialFrom(
      -            com.google.protobuf.CodedInputStream input,
      -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      -            throws com.google.protobuf.InvalidProtocolBufferException {
      -          return new UpdateCatalogItemRequest(input, extensionRegistry);
      -        }
      -      };
      +  private static final com.google.protobuf.Parser
      +      PARSER = new com.google.protobuf.AbstractParser() {
      +    @java.lang.Override
      +    public UpdateCatalogItemRequest parsePartialFrom(
      +        com.google.protobuf.CodedInputStream input,
      +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      +        throws com.google.protobuf.InvalidProtocolBufferException {
      +      return new UpdateCatalogItemRequest(input, extensionRegistry);
      +    }
      +  };
       
         public static com.google.protobuf.Parser parser() {
           return PARSER;
      @@ -1268,8 +1090,9 @@ public com.google.protobuf.Parser getParserForType() {
         }
       
         @java.lang.Override
      -  public com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest
      -      getDefaultInstanceForType() {
      +  public com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest getDefaultInstanceForType() {
           return DEFAULT_INSTANCE;
         }
      +
       }
      +
      diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequestOrBuilder.java
      similarity index 62%
      rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequestOrBuilder.java
      rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequestOrBuilder.java
      index 27d0534f..4533a2d0 100644
      --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequestOrBuilder.java
      +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequestOrBuilder.java
      @@ -1,132 +1,85 @@
      -/*
      - * Copyright 2020 Google LLC
      - *
      - * Licensed under the Apache License, Version 2.0 (the "License");
      - * you may not use this file except in compliance with the License.
      - * You may obtain a copy of the License at
      - *
      - *     https://www.apache.org/licenses/LICENSE-2.0
      - *
      - * Unless required by applicable law or agreed to in writing, software
      - * distributed under the License is distributed on an "AS IS" BASIS,
      - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      - * See the License for the specific language governing permissions and
      - * limitations under the License.
      - */
       // Generated by the protocol buffer compiler.  DO NOT EDIT!
       // source: google/cloud/recommendationengine/v1beta1/catalog_service.proto
       
       package com.google.cloud.recommendationengine.v1beta1;
       
      -public interface UpdateCatalogItemRequestOrBuilder
      -    extends
      +public interface UpdateCatalogItemRequestOrBuilder extends
           // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest)
           com.google.protobuf.MessageOrBuilder {
       
         /**
      -   *
      -   *
          * 
          * Required. Full resource name of catalog item, such as
          * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id".
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
          * Required. Full resource name of catalog item, such as
          * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id".
          * 
      * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
          * Required. The catalog item to update/create. The 'catalog_item_id' field
          * has to match that in the 'name'.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the catalogItem field is set. */ boolean hasCatalogItem(); /** - * - * *
          * Required. The catalog item to update/create. The 'catalog_item_id' field
          * has to match that in the 'name'.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The catalogItem. */ com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItem(); /** - * - * *
          * Required. The catalog item to update/create. The 'catalog_item_id' field
          * has to match that in the 'name'.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemOrBuilder(); /** - * - * *
          * Optional. Indicates which fields in the provided 'item' to update. If not
          * set, will by default update all fields.
          * 
      * * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
          * Optional. Indicates which fields in the provided 'item' to update. If not
          * set, will by default update all fields.
          * 
      * * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
          * Optional. Indicates which fields in the provided 'item' to update. If not
          * set, will by default update all fields.
      diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEvent.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEvent.java
      similarity index 69%
      rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEvent.java
      rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEvent.java
      index 7ea59abc..34841e14 100644
      --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEvent.java
      +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEvent.java
      @@ -1,26 +1,9 @@
      -/*
      - * Copyright 2020 Google LLC
      - *
      - * Licensed under the Apache License, Version 2.0 (the "License");
      - * you may not use this file except in compliance with the License.
      - * You may obtain a copy of the License at
      - *
      - *     https://www.apache.org/licenses/LICENSE-2.0
      - *
      - * Unless required by applicable law or agreed to in writing, software
      - * distributed under the License is distributed on an "AS IS" BASIS,
      - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      - * See the License for the specific language governing permissions and
      - * limitations under the License.
      - */
       // Generated by the protocol buffer compiler.  DO NOT EDIT!
       // source: google/cloud/recommendationengine/v1beta1/user_event.proto
       
       package com.google.cloud.recommendationengine.v1beta1;
       
       /**
      - *
      - *
        * 
        * UserEvent captures all metadata information recommendation engine needs to
        * know about how end users interact with customers' website.
      @@ -28,16 +11,15 @@
        *
        * Protobuf type {@code google.cloud.recommendationengine.v1beta1.UserEvent}
        */
      -public final class UserEvent extends com.google.protobuf.GeneratedMessageV3
      -    implements
      +public final class UserEvent extends
      +    com.google.protobuf.GeneratedMessageV3 implements
           // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.UserEvent)
           UserEventOrBuilder {
      -  private static final long serialVersionUID = 0L;
      +private static final long serialVersionUID = 0L;
         // Use UserEvent.newBuilder() to construct.
         private UserEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
      -
         private UserEvent() {
           eventType_ = "";
           eventSource_ = 0;
      @@ -45,15 +27,16 @@ private UserEvent() {
       
         @java.lang.Override
         @SuppressWarnings({"unused"})
      -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      +  protected java.lang.Object newInstance(
      +      UnusedPrivateParameter unused) {
           return new UserEvent();
         }
       
         @java.lang.Override
      -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      +  public final com.google.protobuf.UnknownFieldSet
      +  getUnknownFields() {
           return this.unknownFields;
         }
      -
         private UserEvent(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      @@ -72,94 +55,77 @@ private UserEvent(
                 case 0:
                   done = true;
                   break;
      -          case 10:
      -            {
      -              java.lang.String s = input.readStringRequireUtf8();
      +          case 10: {
      +            java.lang.String s = input.readStringRequireUtf8();
       
      -              eventType_ = s;
      -              break;
      +            eventType_ = s;
      +            break;
      +          }
      +          case 18: {
      +            com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder subBuilder = null;
      +            if (userInfo_ != null) {
      +              subBuilder = userInfo_.toBuilder();
                   }
      -          case 18:
      -            {
      -              com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder subBuilder = null;
      -              if (userInfo_ != null) {
      -                subBuilder = userInfo_.toBuilder();
      -              }
      -              userInfo_ =
      -                  input.readMessage(
      -                      com.google.cloud.recommendationengine.v1beta1.UserInfo.parser(),
      -                      extensionRegistry);
      -              if (subBuilder != null) {
      -                subBuilder.mergeFrom(userInfo_);
      -                userInfo_ = subBuilder.buildPartial();
      -              }
      -
      -              break;
      +            userInfo_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.UserInfo.parser(), extensionRegistry);
      +            if (subBuilder != null) {
      +              subBuilder.mergeFrom(userInfo_);
      +              userInfo_ = subBuilder.buildPartial();
                   }
      -          case 26:
      -            {
      -              com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder subBuilder = null;
      -              if (eventDetail_ != null) {
      -                subBuilder = eventDetail_.toBuilder();
      -              }
      -              eventDetail_ =
      -                  input.readMessage(
      -                      com.google.cloud.recommendationengine.v1beta1.EventDetail.parser(),
      -                      extensionRegistry);
      -              if (subBuilder != null) {
      -                subBuilder.mergeFrom(eventDetail_);
      -                eventDetail_ = subBuilder.buildPartial();
      -              }
      -
      -              break;
      +
      +            break;
      +          }
      +          case 26: {
      +            com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder subBuilder = null;
      +            if (eventDetail_ != null) {
      +              subBuilder = eventDetail_.toBuilder();
                   }
      -          case 34:
      -            {
      -              com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder subBuilder =
      -                  null;
      -              if (productEventDetail_ != null) {
      -                subBuilder = productEventDetail_.toBuilder();
      -              }
      -              productEventDetail_ =
      -                  input.readMessage(
      -                      com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.parser(),
      -                      extensionRegistry);
      -              if (subBuilder != null) {
      -                subBuilder.mergeFrom(productEventDetail_);
      -                productEventDetail_ = subBuilder.buildPartial();
      -              }
      -
      -              break;
      +            eventDetail_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.EventDetail.parser(), extensionRegistry);
      +            if (subBuilder != null) {
      +              subBuilder.mergeFrom(eventDetail_);
      +              eventDetail_ = subBuilder.buildPartial();
                   }
      -          case 42:
      -            {
      -              com.google.protobuf.Timestamp.Builder subBuilder = null;
      -              if (eventTime_ != null) {
      -                subBuilder = eventTime_.toBuilder();
      -              }
      -              eventTime_ =
      -                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
      -              if (subBuilder != null) {
      -                subBuilder.mergeFrom(eventTime_);
      -                eventTime_ = subBuilder.buildPartial();
      -              }
      -
      -              break;
      +
      +            break;
      +          }
      +          case 34: {
      +            com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder subBuilder = null;
      +            if (productEventDetail_ != null) {
      +              subBuilder = productEventDetail_.toBuilder();
      +            }
      +            productEventDetail_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.parser(), extensionRegistry);
      +            if (subBuilder != null) {
      +              subBuilder.mergeFrom(productEventDetail_);
      +              productEventDetail_ = subBuilder.buildPartial();
                   }
      -          case 48:
      -            {
      -              int rawValue = input.readEnum();
       
      -              eventSource_ = rawValue;
      -              break;
      +            break;
      +          }
      +          case 42: {
      +            com.google.protobuf.Timestamp.Builder subBuilder = null;
      +            if (eventTime_ != null) {
      +              subBuilder = eventTime_.toBuilder();
                   }
      -          default:
      -            {
      -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
      -                done = true;
      -              }
      -              break;
      +            eventTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
      +            if (subBuilder != null) {
      +              subBuilder.mergeFrom(eventTime_);
      +              eventTime_ = subBuilder.buildPartial();
                   }
      +
      +            break;
      +          }
      +          case 48: {
      +            int rawValue = input.readEnum();
      +
      +            eventSource_ = rawValue;
      +            break;
      +          }
      +          default: {
      +            if (!parseUnknownField(
      +                input, unknownFields, extensionRegistry, tag)) {
      +              done = true;
      +            }
      +            break;
      +          }
               }
             }
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      @@ -167,41 +133,36 @@ private UserEvent(
           } catch (com.google.protobuf.UninitializedMessageException e) {
             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
           } catch (java.io.IOException e) {
      -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      +      throw new com.google.protobuf.InvalidProtocolBufferException(
      +          e).setUnfinishedMessage(this);
           } finally {
             this.unknownFields = unknownFields.build();
             makeExtensionsImmutable();
           }
         }
      -
      -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -    return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass
      -        .internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor;
      +  public static final com.google.protobuf.Descriptors.Descriptor
      +      getDescriptor() {
      +    return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor;
         }
       
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
      -    return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass
      -        .internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_fieldAccessorTable
      +    return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
      -            com.google.cloud.recommendationengine.v1beta1.UserEvent.class,
      -            com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder.class);
      +            com.google.cloud.recommendationengine.v1beta1.UserEvent.class, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder.class);
         }
       
         /**
      -   *
      -   *
          * 
          * User event source.
          * 
      * * Protobuf enum {@code google.cloud.recommendationengine.v1beta1.UserEvent.EventSource} */ - public enum EventSource implements com.google.protobuf.ProtocolMessageEnum { + public enum EventSource + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
            * Unspecified event source.
            * 
      @@ -210,8 +171,6 @@ public enum EventSource implements com.google.protobuf.ProtocolMessageEnum { */ EVENT_SOURCE_UNSPECIFIED(0), /** - * - * *
            * The event is ingested via a javascript pixel or Recommendations AI Tag
            * through automl datalayer or JS Macros.
      @@ -221,8 +180,6 @@ public enum EventSource implements com.google.protobuf.ProtocolMessageEnum {
            */
           AUTOML(1),
           /**
      -     *
      -     *
            * 
            * The event is ingested via Recommendations AI Tag through Enhanced
            * Ecommerce datalayer.
      @@ -232,8 +189,6 @@ public enum EventSource implements com.google.protobuf.ProtocolMessageEnum {
            */
           ECOMMERCE(2),
           /**
      -     *
      -     *
            * 
            * The event is ingested via Import user events API.
            * 
      @@ -245,8 +200,6 @@ public enum EventSource implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
            * Unspecified event source.
            * 
      @@ -255,8 +208,6 @@ public enum EventSource implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EVENT_SOURCE_UNSPECIFIED_VALUE = 0; /** - * - * *
            * The event is ingested via a javascript pixel or Recommendations AI Tag
            * through automl datalayer or JS Macros.
      @@ -266,8 +217,6 @@ public enum EventSource implements com.google.protobuf.ProtocolMessageEnum {
            */
           public static final int AUTOML_VALUE = 1;
           /**
      -     *
      -     *
            * 
            * The event is ingested via Recommendations AI Tag through Enhanced
            * Ecommerce datalayer.
      @@ -277,8 +226,6 @@ public enum EventSource implements com.google.protobuf.ProtocolMessageEnum {
            */
           public static final int ECOMMERCE_VALUE = 2;
           /**
      -     *
      -     *
            * 
            * The event is ingested via Import user events API.
            * 
      @@ -287,6 +234,7 @@ public enum EventSource implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BATCH_UPLOAD_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -311,53 +259,50 @@ public static EventSource valueOf(int value) { */ public static EventSource forNumber(int value) { switch (value) { - case 0: - return EVENT_SOURCE_UNSPECIFIED; - case 1: - return AUTOML; - case 2: - return ECOMMERCE; - case 3: - return BATCH_UPLOAD; - default: - return null; + case 0: return EVENT_SOURCE_UNSPECIFIED; + case 1: return AUTOML; + case 2: return ECOMMERCE; + case 3: return BATCH_UPLOAD; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + EventSource> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EventSource findValueByNumber(int number) { + return EventSource.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EventSource findValueByNumber(int number) { - return EventSource.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEvent.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEvent.getDescriptor().getEnumTypes().get(0); } private static final EventSource[] VALUES = values(); - public static EventSource valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static EventSource valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -377,8 +322,6 @@ private EventSource(int value) { public static final int EVENT_TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object eventType_; /** - * - * *
          * Required. User event type. Allowed values are:
          * * `add-to-cart` Products being added to cart.
      @@ -400,7 +343,6 @@ private EventSource(int value) {
          * 
      * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The eventType. */ @java.lang.Override @@ -409,15 +351,14 @@ public java.lang.String getEventType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventType_ = s; return s; } } /** - * - * *
          * Required. User event type. Allowed values are:
          * * `add-to-cart` Products being added to cart.
      @@ -439,15 +380,16 @@ public java.lang.String getEventType() {
          * 
      * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for eventType. */ @java.lang.Override - public com.google.protobuf.ByteString getEventTypeBytes() { + public com.google.protobuf.ByteString + getEventTypeBytes() { java.lang.Object ref = eventType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); eventType_ = b; return b; } else { @@ -458,16 +400,11 @@ public com.google.protobuf.ByteString getEventTypeBytes() { public static final int USER_INFO_FIELD_NUMBER = 2; private com.google.cloud.recommendationengine.v1beta1.UserInfo userInfo_; /** - * - * *
          * Required. User information.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the userInfo field is set. */ @java.lang.Override @@ -475,34 +412,23 @@ public boolean hasUserInfo() { return userInfo_ != null; } /** - * - * *
          * Required. User information.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The userInfo. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserInfo getUserInfo() { - return userInfo_ == null - ? com.google.cloud.recommendationengine.v1beta1.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? com.google.cloud.recommendationengine.v1beta1.UserInfo.getDefaultInstance() : userInfo_; } /** - * - * *
          * Required. User information.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder getUserInfoOrBuilder() { @@ -512,17 +438,12 @@ public com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder getUserIn public static final int EVENT_DETAIL_FIELD_NUMBER = 3; private com.google.cloud.recommendationengine.v1beta1.EventDetail eventDetail_; /** - * - * *
          * Optional. User event detailed information common across different
          * recommendation types.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the eventDetail field is set. */ @java.lang.Override @@ -530,48 +451,34 @@ public boolean hasEventDetail() { return eventDetail_ != null; } /** - * - * *
          * Optional. User event detailed information common across different
          * recommendation types.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventDetail. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.EventDetail getEventDetail() { - return eventDetail_ == null - ? com.google.cloud.recommendationengine.v1beta1.EventDetail.getDefaultInstance() - : eventDetail_; + return eventDetail_ == null ? com.google.cloud.recommendationengine.v1beta1.EventDetail.getDefaultInstance() : eventDetail_; } /** - * - * *
          * Optional. User event detailed information common across different
          * recommendation types.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder - getEventDetailOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder getEventDetailOrBuilder() { return getEventDetail(); } public static final int PRODUCT_EVENT_DETAIL_FIELD_NUMBER = 4; private com.google.cloud.recommendationengine.v1beta1.ProductEventDetail productEventDetail_; /** - * - * *
          * Optional. Retail product specific user event metadata.
          * This field is required for the following event types:
      @@ -593,10 +500,7 @@ public com.google.cloud.recommendationengine.v1beta1.EventDetail getEventDetail(
          * * `home-page-view`
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the productEventDetail field is set. */ @java.lang.Override @@ -604,8 +508,6 @@ public boolean hasProductEventDetail() { return productEventDetail_ != null; } /** - * - * *
          * Optional. Retail product specific user event metadata.
          * This field is required for the following event types:
      @@ -627,21 +529,14 @@ public boolean hasProductEventDetail() {
          * * `home-page-view`
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The productEventDetail. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail getProductEventDetail() { - return productEventDetail_ == null - ? com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.getDefaultInstance() - : productEventDetail_; + return productEventDetail_ == null ? com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.getDefaultInstance() : productEventDetail_; } /** - * - * *
          * Optional. Retail product specific user event metadata.
          * This field is required for the following event types:
      @@ -663,29 +558,22 @@ public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail getProdu
          * * `home-page-view`
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder - getProductEventDetailOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder getProductEventDetailOrBuilder() { return getProductEventDetail(); } public static final int EVENT_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp eventTime_; /** - * - * *
          * Optional. Only required for ImportUserEvents method. Timestamp of user
          * event created.
          * 
      * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the eventTime field is set. */ @java.lang.Override @@ -693,16 +581,12 @@ public boolean hasEventTime() { return eventTime_ != null; } /** - * - * *
          * Optional. Only required for ImportUserEvents method. Timestamp of user
          * event created.
          * 
      * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventTime. */ @java.lang.Override @@ -710,15 +594,12 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** - * - * *
          * Optional. Only required for ImportUserEvents method. Timestamp of user
          * event created.
          * 
      * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { @@ -728,49 +609,33 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { public static final int EVENT_SOURCE_FIELD_NUMBER = 6; private int eventSource_; /** - * - * *
          * Optional. This field should *not* be set when using JavaScript pixel
          * or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for eventSource. */ - @java.lang.Override - public int getEventSourceValue() { + @java.lang.Override public int getEventSourceValue() { return eventSource_; } /** - * - * *
          * Optional. This field should *not* be set when using JavaScript pixel
          * or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventSource. */ - @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource getEventSource() { + @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource getEventSource() { @SuppressWarnings("deprecation") - com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource result = - com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource.valueOf(eventSource_); - return result == null - ? com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource.UNRECOGNIZED - : result; + com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource result = com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource.valueOf(eventSource_); + return result == null ? com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -782,7 +647,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventType_); } @@ -798,10 +664,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (eventTime_ != null) { output.writeMessage(5, getEventTime()); } - if (eventSource_ - != com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource - .EVENT_SOURCE_UNSPECIFIED - .getNumber()) { + if (eventSource_ != com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource.EVENT_SOURCE_UNSPECIFIED.getNumber()) { output.writeEnum(6, eventSource_); } unknownFields.writeTo(output); @@ -817,22 +680,24 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, eventType_); } if (userInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUserInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUserInfo()); } if (eventDetail_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEventDetail()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getEventDetail()); } if (productEventDetail_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProductEventDetail()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getProductEventDetail()); } if (eventTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEventTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getEventTime()); } - if (eventSource_ - != com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource - .EVENT_SOURCE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, eventSource_); + if (eventSource_ != com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource.EVENT_SOURCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, eventSource_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -842,30 +707,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.UserEvent)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.UserEvent other = - (com.google.cloud.recommendationengine.v1beta1.UserEvent) obj; + com.google.cloud.recommendationengine.v1beta1.UserEvent other = (com.google.cloud.recommendationengine.v1beta1.UserEvent) obj; - if (!getEventType().equals(other.getEventType())) return false; + if (!getEventType() + .equals(other.getEventType())) return false; if (hasUserInfo() != other.hasUserInfo()) return false; if (hasUserInfo()) { - if (!getUserInfo().equals(other.getUserInfo())) return false; + if (!getUserInfo() + .equals(other.getUserInfo())) return false; } if (hasEventDetail() != other.hasEventDetail()) return false; if (hasEventDetail()) { - if (!getEventDetail().equals(other.getEventDetail())) return false; + if (!getEventDetail() + .equals(other.getEventDetail())) return false; } if (hasProductEventDetail() != other.hasProductEventDetail()) return false; if (hasProductEventDetail()) { - if (!getProductEventDetail().equals(other.getProductEventDetail())) return false; + if (!getProductEventDetail() + .equals(other.getProductEventDetail())) return false; } if (hasEventTime() != other.hasEventTime()) return false; if (hasEventTime()) { - if (!getEventTime().equals(other.getEventTime())) return false; + if (!getEventTime() + .equals(other.getEventTime())) return false; } if (eventSource_ != other.eventSource_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -905,104 +774,96 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.UserEvent prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.UserEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * UserEvent captures all metadata information recommendation engine needs to
          * know about how end users interact with customers' website.
      @@ -1010,23 +871,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *
          * Protobuf type {@code google.cloud.recommendationengine.v1beta1.UserEvent}
          */
      -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
      -      implements
      +  public static final class Builder extends
      +      com.google.protobuf.GeneratedMessageV3.Builder implements
             // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.UserEvent)
             com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder {
      -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass
      -          .internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor;
      +    public static final com.google.protobuf.Descriptors.Descriptor
      +        getDescriptor() {
      +      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor;
           }
       
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
      -      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass
      -          .internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_fieldAccessorTable
      +      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
      -              com.google.cloud.recommendationengine.v1beta1.UserEvent.class,
      -              com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder.class);
      +              com.google.cloud.recommendationengine.v1beta1.UserEvent.class, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder.class);
           }
       
           // Construct using com.google.cloud.recommendationengine.v1beta1.UserEvent.newBuilder()
      @@ -1034,15 +893,16 @@ private Builder() {
             maybeForceBuilderInitialization();
           }
       
      -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +    private Builder(
      +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
             maybeForceBuilderInitialization();
           }
      -
           private void maybeForceBuilderInitialization() {
      -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
      +      if (com.google.protobuf.GeneratedMessageV3
      +              .alwaysUseFieldBuilders) {
      +      }
           }
      -
           @java.lang.Override
           public Builder clear() {
             super.clear();
      @@ -1078,9 +938,9 @@ public Builder clear() {
           }
       
           @java.lang.Override
      -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      -      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass
      -          .internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor;
      +    public com.google.protobuf.Descriptors.Descriptor
      +        getDescriptorForType() {
      +      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor;
           }
       
           @java.lang.Override
      @@ -1099,8 +959,7 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent build() {
       
           @java.lang.Override
           public com.google.cloud.recommendationengine.v1beta1.UserEvent buildPartial() {
      -      com.google.cloud.recommendationengine.v1beta1.UserEvent result =
      -          new com.google.cloud.recommendationengine.v1beta1.UserEvent(this);
      +      com.google.cloud.recommendationengine.v1beta1.UserEvent result = new com.google.cloud.recommendationengine.v1beta1.UserEvent(this);
             result.eventType_ = eventType_;
             if (userInfoBuilder_ == null) {
               result.userInfo_ = userInfo_;
      @@ -1131,39 +990,38 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent buildPartial() {
           public Builder clone() {
             return super.clone();
           }
      -
           @java.lang.Override
           public Builder setField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        java.lang.Object value) {
             return super.setField(field, value);
           }
      -
           @java.lang.Override
      -    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      +    public Builder clearField(
      +        com.google.protobuf.Descriptors.FieldDescriptor field) {
             return super.clearField(field);
           }
      -
           @java.lang.Override
      -    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      +    public Builder clearOneof(
      +        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
             return super.clearOneof(oneof);
           }
      -
           @java.lang.Override
           public Builder setRepeatedField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        int index, java.lang.Object value) {
             return super.setRepeatedField(field, index, value);
           }
      -
           @java.lang.Override
           public Builder addRepeatedField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        java.lang.Object value) {
             return super.addRepeatedField(field, value);
           }
      -
           @java.lang.Override
           public Builder mergeFrom(com.google.protobuf.Message other) {
             if (other instanceof com.google.cloud.recommendationengine.v1beta1.UserEvent) {
      -        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.UserEvent) other);
      +        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.UserEvent)other);
             } else {
               super.mergeFrom(other);
               return this;
      @@ -1171,8 +1029,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
           }
       
           public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.UserEvent other) {
      -      if (other == com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance())
      -        return this;
      +      if (other == com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()) return this;
             if (!other.getEventType().isEmpty()) {
               eventType_ = other.eventType_;
               onChanged();
      @@ -1211,8 +1068,7 @@ public Builder mergeFrom(
             try {
               parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      -        parsedMessage =
      -            (com.google.cloud.recommendationengine.v1beta1.UserEvent) e.getUnfinishedMessage();
      +        parsedMessage = (com.google.cloud.recommendationengine.v1beta1.UserEvent) e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
               if (parsedMessage != null) {
      @@ -1224,8 +1080,6 @@ public Builder mergeFrom(
       
           private java.lang.Object eventType_ = "";
           /**
      -     *
      -     *
            * 
            * Required. User event type. Allowed values are:
            * * `add-to-cart` Products being added to cart.
      @@ -1247,13 +1101,13 @@ public Builder mergeFrom(
            * 
      * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The eventType. */ public java.lang.String getEventType() { java.lang.Object ref = eventType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventType_ = s; return s; @@ -1262,8 +1116,6 @@ public java.lang.String getEventType() { } } /** - * - * *
            * Required. User event type. Allowed values are:
            * * `add-to-cart` Products being added to cart.
      @@ -1285,14 +1137,15 @@ public java.lang.String getEventType() {
            * 
      * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for eventType. */ - public com.google.protobuf.ByteString getEventTypeBytes() { + public com.google.protobuf.ByteString + getEventTypeBytes() { java.lang.Object ref = eventType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); eventType_ = b; return b; } else { @@ -1300,8 +1153,6 @@ public com.google.protobuf.ByteString getEventTypeBytes() { } } /** - * - * *
            * Required. User event type. Allowed values are:
            * * `add-to-cart` Products being added to cart.
      @@ -1323,22 +1174,20 @@ public com.google.protobuf.ByteString getEventTypeBytes() {
            * 
      * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The eventType to set. * @return This builder for chaining. */ - public Builder setEventType(java.lang.String value) { + public Builder setEventType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + eventType_ = value; onChanged(); return this; } /** - * - * *
            * Required. User event type. Allowed values are:
            * * `add-to-cart` Products being added to cart.
      @@ -1360,18 +1209,15 @@ public Builder setEventType(java.lang.String value) {
            * 
      * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearEventType() { - + eventType_ = getDefaultInstance().getEventType(); onChanged(); return this; } /** - * - * *
            * Required. User event type. Allowed values are:
            * * `add-to-cart` Products being added to cart.
      @@ -1393,16 +1239,16 @@ public Builder clearEventType() {
            * 
      * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for eventType to set. * @return This builder for chaining. */ - public Builder setEventTypeBytes(com.google.protobuf.ByteString value) { + public Builder setEventTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventType_ = value; onChanged(); return this; @@ -1410,58 +1256,39 @@ public Builder setEventTypeBytes(com.google.protobuf.ByteString value) { private com.google.cloud.recommendationengine.v1beta1.UserInfo userInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserInfo, - com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder, - com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder> - userInfoBuilder_; + com.google.cloud.recommendationengine.v1beta1.UserInfo, com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder, com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder> userInfoBuilder_; /** - * - * *
            * Required. User information.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the userInfo field is set. */ public boolean hasUserInfo() { return userInfoBuilder_ != null || userInfo_ != null; } /** - * - * *
            * Required. User information.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The userInfo. */ public com.google.cloud.recommendationengine.v1beta1.UserInfo getUserInfo() { if (userInfoBuilder_ == null) { - return userInfo_ == null - ? com.google.cloud.recommendationengine.v1beta1.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? com.google.cloud.recommendationengine.v1beta1.UserInfo.getDefaultInstance() : userInfo_; } else { return userInfoBuilder_.getMessage(); } } /** - * - * *
            * Required. User information.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUserInfo(com.google.cloud.recommendationengine.v1beta1.UserInfo value) { if (userInfoBuilder_ == null) { @@ -1477,15 +1304,11 @@ public Builder setUserInfo(com.google.cloud.recommendationengine.v1beta1.UserInf return this; } /** - * - * *
            * Required. User information.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUserInfo( com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder builderForValue) { @@ -1499,23 +1322,17 @@ public Builder setUserInfo( return this; } /** - * - * *
            * Required. User information.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUserInfo(com.google.cloud.recommendationengine.v1beta1.UserInfo value) { if (userInfoBuilder_ == null) { if (userInfo_ != null) { userInfo_ = - com.google.cloud.recommendationengine.v1beta1.UserInfo.newBuilder(userInfo_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.recommendationengine.v1beta1.UserInfo.newBuilder(userInfo_).mergeFrom(value).buildPartial(); } else { userInfo_ = value; } @@ -1527,15 +1344,11 @@ public Builder mergeUserInfo(com.google.cloud.recommendationengine.v1beta1.UserI return this; } /** - * - * *
            * Required. User information.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUserInfo() { if (userInfoBuilder_ == null) { @@ -1549,64 +1362,48 @@ public Builder clearUserInfo() { return this; } /** - * - * *
            * Required. User information.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder getUserInfoBuilder() { - + onChanged(); return getUserInfoFieldBuilder().getBuilder(); } /** - * - * *
            * Required. User information.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder getUserInfoOrBuilder() { if (userInfoBuilder_ != null) { return userInfoBuilder_.getMessageOrBuilder(); } else { - return userInfo_ == null - ? com.google.cloud.recommendationengine.v1beta1.UserInfo.getDefaultInstance() - : userInfo_; + return userInfo_ == null ? + com.google.cloud.recommendationengine.v1beta1.UserInfo.getDefaultInstance() : userInfo_; } } /** - * - * *
            * Required. User information.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserInfo, - com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder, - com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder> + com.google.cloud.recommendationengine.v1beta1.UserInfo, com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder, com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder> getUserInfoFieldBuilder() { if (userInfoBuilder_ == null) { - userInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserInfo, - com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder, - com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder>( - getUserInfo(), getParentForChildren(), isClean()); + userInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.UserInfo, com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder, com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder>( + getUserInfo(), + getParentForChildren(), + isClean()); userInfo_ = null; } return userInfoBuilder_; @@ -1614,61 +1411,42 @@ public com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder getUserIn private com.google.cloud.recommendationengine.v1beta1.EventDetail eventDetail_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.EventDetail, - com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder, - com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder> - eventDetailBuilder_; + com.google.cloud.recommendationengine.v1beta1.EventDetail, com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder, com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder> eventDetailBuilder_; /** - * - * *
            * Optional. User event detailed information common across different
            * recommendation types.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the eventDetail field is set. */ public boolean hasEventDetail() { return eventDetailBuilder_ != null || eventDetail_ != null; } /** - * - * *
            * Optional. User event detailed information common across different
            * recommendation types.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventDetail. */ public com.google.cloud.recommendationengine.v1beta1.EventDetail getEventDetail() { if (eventDetailBuilder_ == null) { - return eventDetail_ == null - ? com.google.cloud.recommendationengine.v1beta1.EventDetail.getDefaultInstance() - : eventDetail_; + return eventDetail_ == null ? com.google.cloud.recommendationengine.v1beta1.EventDetail.getDefaultInstance() : eventDetail_; } else { return eventDetailBuilder_.getMessage(); } } /** - * - * *
            * Optional. User event detailed information common across different
            * recommendation types.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEventDetail(com.google.cloud.recommendationengine.v1beta1.EventDetail value) { if (eventDetailBuilder_ == null) { @@ -1684,16 +1462,12 @@ public Builder setEventDetail(com.google.cloud.recommendationengine.v1beta1.Even return this; } /** - * - * *
            * Optional. User event detailed information common across different
            * recommendation types.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEventDetail( com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder builderForValue) { @@ -1707,25 +1481,18 @@ public Builder setEventDetail( return this; } /** - * - * *
            * Optional. User event detailed information common across different
            * recommendation types.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeEventDetail( - com.google.cloud.recommendationengine.v1beta1.EventDetail value) { + public Builder mergeEventDetail(com.google.cloud.recommendationengine.v1beta1.EventDetail value) { if (eventDetailBuilder_ == null) { if (eventDetail_ != null) { eventDetail_ = - com.google.cloud.recommendationengine.v1beta1.EventDetail.newBuilder(eventDetail_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.recommendationengine.v1beta1.EventDetail.newBuilder(eventDetail_).mergeFrom(value).buildPartial(); } else { eventDetail_ = value; } @@ -1737,16 +1504,12 @@ public Builder mergeEventDetail( return this; } /** - * - * *
            * Optional. User event detailed information common across different
            * recommendation types.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearEventDetail() { if (eventDetailBuilder_ == null) { @@ -1760,69 +1523,51 @@ public Builder clearEventDetail() { return this; } /** - * - * *
            * Optional. User event detailed information common across different
            * recommendation types.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder - getEventDetailBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder getEventDetailBuilder() { + onChanged(); return getEventDetailFieldBuilder().getBuilder(); } /** - * - * *
            * Optional. User event detailed information common across different
            * recommendation types.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder - getEventDetailOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder getEventDetailOrBuilder() { if (eventDetailBuilder_ != null) { return eventDetailBuilder_.getMessageOrBuilder(); } else { - return eventDetail_ == null - ? com.google.cloud.recommendationengine.v1beta1.EventDetail.getDefaultInstance() - : eventDetail_; + return eventDetail_ == null ? + com.google.cloud.recommendationengine.v1beta1.EventDetail.getDefaultInstance() : eventDetail_; } } /** - * - * *
            * Optional. User event detailed information common across different
            * recommendation types.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.EventDetail, - com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder, - com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder> + com.google.cloud.recommendationengine.v1beta1.EventDetail, com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder, com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder> getEventDetailFieldBuilder() { if (eventDetailBuilder_ == null) { - eventDetailBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.EventDetail, - com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder, - com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder>( - getEventDetail(), getParentForChildren(), isClean()); + eventDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.EventDetail, com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder, com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder>( + getEventDetail(), + getParentForChildren(), + isClean()); eventDetail_ = null; } return eventDetailBuilder_; @@ -1830,13 +1575,8 @@ public Builder clearEventDetail() { private com.google.cloud.recommendationengine.v1beta1.ProductEventDetail productEventDetail_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductEventDetail, - com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder, - com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder> - productEventDetailBuilder_; + com.google.cloud.recommendationengine.v1beta1.ProductEventDetail, com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder, com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder> productEventDetailBuilder_; /** - * - * *
            * Optional. Retail product specific user event metadata.
            * This field is required for the following event types:
      @@ -1858,18 +1598,13 @@ public Builder clearEventDetail() {
            * * `home-page-view`
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the productEventDetail field is set. */ public boolean hasProductEventDetail() { return productEventDetailBuilder_ != null || productEventDetail_ != null; } /** - * - * *
            * Optional. Retail product specific user event metadata.
            * This field is required for the following event types:
      @@ -1891,25 +1626,17 @@ public boolean hasProductEventDetail() {
            * * `home-page-view`
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The productEventDetail. */ - public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail - getProductEventDetail() { + public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail getProductEventDetail() { if (productEventDetailBuilder_ == null) { - return productEventDetail_ == null - ? com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.getDefaultInstance() - : productEventDetail_; + return productEventDetail_ == null ? com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.getDefaultInstance() : productEventDetail_; } else { return productEventDetailBuilder_.getMessage(); } } /** - * - * *
            * Optional. Retail product specific user event metadata.
            * This field is required for the following event types:
      @@ -1931,12 +1658,9 @@ public boolean hasProductEventDetail() {
            * * `home-page-view`
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setProductEventDetail( - com.google.cloud.recommendationengine.v1beta1.ProductEventDetail value) { + public Builder setProductEventDetail(com.google.cloud.recommendationengine.v1beta1.ProductEventDetail value) { if (productEventDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1950,8 +1674,6 @@ public Builder setProductEventDetail( return this; } /** - * - * *
            * Optional. Retail product specific user event metadata.
            * This field is required for the following event types:
      @@ -1973,9 +1695,7 @@ public Builder setProductEventDetail(
            * * `home-page-view`
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setProductEventDetail( com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder builderForValue) { @@ -1989,8 +1709,6 @@ public Builder setProductEventDetail( return this; } /** - * - * *
            * Optional. Retail product specific user event metadata.
            * This field is required for the following event types:
      @@ -2012,19 +1730,13 @@ public Builder setProductEventDetail(
            * * `home-page-view`
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeProductEventDetail( - com.google.cloud.recommendationengine.v1beta1.ProductEventDetail value) { + public Builder mergeProductEventDetail(com.google.cloud.recommendationengine.v1beta1.ProductEventDetail value) { if (productEventDetailBuilder_ == null) { if (productEventDetail_ != null) { productEventDetail_ = - com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.newBuilder( - productEventDetail_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.newBuilder(productEventDetail_).mergeFrom(value).buildPartial(); } else { productEventDetail_ = value; } @@ -2036,8 +1748,6 @@ public Builder mergeProductEventDetail( return this; } /** - * - * *
            * Optional. Retail product specific user event metadata.
            * This field is required for the following event types:
      @@ -2059,9 +1769,7 @@ public Builder mergeProductEventDetail(
            * * `home-page-view`
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearProductEventDetail() { if (productEventDetailBuilder_ == null) { @@ -2075,8 +1783,6 @@ public Builder clearProductEventDetail() { return this; } /** - * - * *
            * Optional. Retail product specific user event metadata.
            * This field is required for the following event types:
      @@ -2098,19 +1804,14 @@ public Builder clearProductEventDetail() {
            * * `home-page-view`
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder - getProductEventDetailBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder getProductEventDetailBuilder() { + onChanged(); return getProductEventDetailFieldBuilder().getBuilder(); } /** - * - * *
            * Optional. Retail product specific user event metadata.
            * This field is required for the following event types:
      @@ -2132,23 +1833,17 @@ public Builder clearProductEventDetail() {
            * * `home-page-view`
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder - getProductEventDetailOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder getProductEventDetailOrBuilder() { if (productEventDetailBuilder_ != null) { return productEventDetailBuilder_.getMessageOrBuilder(); } else { - return productEventDetail_ == null - ? com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.getDefaultInstance() - : productEventDetail_; + return productEventDetail_ == null ? + com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.getDefaultInstance() : productEventDetail_; } } /** - * - * *
            * Optional. Retail product specific user event metadata.
            * This field is required for the following event types:
      @@ -2170,22 +1865,17 @@ public Builder clearProductEventDetail() {
            * * `home-page-view`
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductEventDetail, - com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder, - com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder> + com.google.cloud.recommendationengine.v1beta1.ProductEventDetail, com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder, com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder> getProductEventDetailFieldBuilder() { if (productEventDetailBuilder_ == null) { - productEventDetailBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductEventDetail, - com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder, - com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder>( - getProductEventDetail(), getParentForChildren(), isClean()); + productEventDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.ProductEventDetail, com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder, com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder>( + getProductEventDetail(), + getParentForChildren(), + isClean()); productEventDetail_ = null; } return productEventDetailBuilder_; @@ -2193,37 +1883,26 @@ public Builder clearProductEventDetail() { private com.google.protobuf.Timestamp eventTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - eventTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_; /** - * - * *
            * Optional. Only required for ImportUserEvents method. Timestamp of user
            * event created.
            * 
      * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return eventTimeBuilder_ != null || eventTime_ != null; } /** - * - * *
            * Optional. Only required for ImportUserEvents method. Timestamp of user
            * event created.
            * 
      * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { @@ -2234,15 +1913,12 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** - * - * *
            * Optional. Only required for ImportUserEvents method. Timestamp of user
            * event created.
            * 
      * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEventTime(com.google.protobuf.Timestamp value) { if (eventTimeBuilder_ == null) { @@ -2258,17 +1934,15 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
            * Optional. Only required for ImportUserEvents method. Timestamp of user
            * event created.
            * 
      * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEventTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (eventTimeBuilder_ == null) { eventTime_ = builderForValue.build(); onChanged(); @@ -2279,21 +1953,18 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
            * Optional. Only required for ImportUserEvents method. Timestamp of user
            * event created.
            * 
      * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { if (eventTimeBuilder_ == null) { if (eventTime_ != null) { eventTime_ = - com.google.protobuf.Timestamp.newBuilder(eventTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(eventTime_).mergeFrom(value).buildPartial(); } else { eventTime_ = value; } @@ -2305,15 +1976,12 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
            * Optional. Only required for ImportUserEvents method. Timestamp of user
            * event created.
            * 
      * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearEventTime() { if (eventTimeBuilder_ == null) { @@ -2327,62 +1995,51 @@ public Builder clearEventTime() { return this; } /** - * - * *
            * Optional. Only required for ImportUserEvents method. Timestamp of user
            * event created.
            * 
      * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { - + onChanged(); return getEventTimeFieldBuilder().getBuilder(); } /** - * - * *
            * Optional. Only required for ImportUserEvents method. Timestamp of user
            * event created.
            * 
      * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { if (eventTimeBuilder_ != null) { return eventTimeBuilder_.getMessageOrBuilder(); } else { - return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + return eventTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } } /** - * - * *
            * Optional. Only required for ImportUserEvents method. Timestamp of user
            * event created.
            * 
      * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEventTimeFieldBuilder() { if (eventTimeBuilder_ == null) { - eventTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEventTime(), getParentForChildren(), isClean()); + eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEventTime(), + getParentForChildren(), + isClean()); eventTime_ = null; } return eventTimeBuilder_; @@ -2390,115 +2047,85 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { private int eventSource_ = 0; /** - * - * *
            * Optional. This field should *not* be set when using JavaScript pixel
            * or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for eventSource. */ - @java.lang.Override - public int getEventSourceValue() { + @java.lang.Override public int getEventSourceValue() { return eventSource_; } /** - * - * *
            * Optional. This field should *not* be set when using JavaScript pixel
            * or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for eventSource to set. * @return This builder for chaining. */ public Builder setEventSourceValue(int value) { - + eventSource_ = value; onChanged(); return this; } /** - * - * *
            * Optional. This field should *not* be set when using JavaScript pixel
            * or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventSource. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource getEventSource() { @SuppressWarnings("deprecation") - com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource result = - com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource.valueOf(eventSource_); - return result == null - ? com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource.UNRECOGNIZED - : result; + com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource result = com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource.valueOf(eventSource_); + return result == null ? com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource.UNRECOGNIZED : result; } /** - * - * *
            * Optional. This field should *not* be set when using JavaScript pixel
            * or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param value The eventSource to set. * @return This builder for chaining. */ - public Builder setEventSource( - com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource value) { + public Builder setEventSource(com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource value) { if (value == null) { throw new NullPointerException(); } - + eventSource_ = value.getNumber(); onChanged(); return this; } /** - * - * *
            * Optional. This field should *not* be set when using JavaScript pixel
            * or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearEventSource() { - + eventSource_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2508,12 +2135,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.UserEvent) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.UserEvent) private static final com.google.cloud.recommendationengine.v1beta1.UserEvent DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.UserEvent(); } @@ -2522,16 +2149,16 @@ public static com.google.cloud.recommendationengine.v1beta1.UserEvent getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UserEvent(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserEvent(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2546,4 +2173,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.recommendationengine.v1beta1.UserEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummary.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummary.java similarity index 65% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummary.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummary.java index 7308a81e..3264c478 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummary.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummary.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * A summary of import result. The UserEventImportSummary summarizes
        * the import status for user events.
      @@ -28,29 +11,30 @@
        *
        * Protobuf type {@code google.cloud.recommendationengine.v1beta1.UserEventImportSummary}
        */
      -public final class UserEventImportSummary extends com.google.protobuf.GeneratedMessageV3
      -    implements
      +public final class UserEventImportSummary extends
      +    com.google.protobuf.GeneratedMessageV3 implements
           // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.UserEventImportSummary)
           UserEventImportSummaryOrBuilder {
      -  private static final long serialVersionUID = 0L;
      +private static final long serialVersionUID = 0L;
         // Use UserEventImportSummary.newBuilder() to construct.
         private UserEventImportSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) {
           super(builder);
         }
      -
      -  private UserEventImportSummary() {}
      +  private UserEventImportSummary() {
      +  }
       
         @java.lang.Override
         @SuppressWarnings({"unused"})
      -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      +  protected java.lang.Object newInstance(
      +      UnusedPrivateParameter unused) {
           return new UserEventImportSummary();
         }
       
         @java.lang.Override
      -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      +  public final com.google.protobuf.UnknownFieldSet
      +  getUnknownFields() {
           return this.unknownFields;
         }
      -
         private UserEventImportSummary(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      @@ -69,23 +53,23 @@ private UserEventImportSummary(
                 case 0:
                   done = true;
                   break;
      -          case 8:
      -            {
      -              joinedEventsCount_ = input.readInt64();
      -              break;
      -            }
      -          case 16:
      -            {
      -              unjoinedEventsCount_ = input.readInt64();
      -              break;
      -            }
      -          default:
      -            {
      -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
      -                done = true;
      -              }
      -              break;
      +          case 8: {
      +
      +            joinedEventsCount_ = input.readInt64();
      +            break;
      +          }
      +          case 16: {
      +
      +            unjoinedEventsCount_ = input.readInt64();
      +            break;
      +          }
      +          default: {
      +            if (!parseUnknownField(
      +                input, unknownFields, extensionRegistry, tag)) {
      +              done = true;
                   }
      +            break;
      +          }
               }
             }
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      @@ -93,39 +77,34 @@ private UserEventImportSummary(
           } catch (com.google.protobuf.UninitializedMessageException e) {
             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
           } catch (java.io.IOException e) {
      -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      +      throw new com.google.protobuf.InvalidProtocolBufferException(
      +          e).setUnfinishedMessage(this);
           } finally {
             this.unknownFields = unknownFields.build();
             makeExtensionsImmutable();
           }
         }
      -
      -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -    return com.google.cloud.recommendationengine.v1beta1.Import
      -        .internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor;
      +  public static final com.google.protobuf.Descriptors.Descriptor
      +      getDescriptor() {
      +    return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor;
         }
       
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
      -    return com.google.cloud.recommendationengine.v1beta1.Import
      -        .internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_fieldAccessorTable
      +    return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
      -            com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.class,
      -            com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder.class);
      +            com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.class, com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder.class);
         }
       
         public static final int JOINED_EVENTS_COUNT_FIELD_NUMBER = 1;
         private long joinedEventsCount_;
         /**
      -   *
      -   *
          * 
          * Count of user events imported with complete existing catalog information.
          * 
      * * int64 joined_events_count = 1; - * * @return The joinedEventsCount. */ @java.lang.Override @@ -136,15 +115,12 @@ public long getJoinedEventsCount() { public static final int UNJOINED_EVENTS_COUNT_FIELD_NUMBER = 2; private long unjoinedEventsCount_; /** - * - * *
          * Count of user events imported, but with catalog information not found
          * in the imported catalog.
          * 
      * * int64 unjoined_events_count = 2; - * * @return The unjoinedEventsCount. */ @java.lang.Override @@ -153,7 +129,6 @@ public long getUnjoinedEventsCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -165,7 +140,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (joinedEventsCount_ != 0L) { output.writeInt64(1, joinedEventsCount_); } @@ -182,10 +158,12 @@ public int getSerializedSize() { size = 0; if (joinedEventsCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, joinedEventsCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, joinedEventsCount_); } if (unjoinedEventsCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, unjoinedEventsCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, unjoinedEventsCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -195,16 +173,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary other = - (com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary) obj; + com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary other = (com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary) obj; - if (getJoinedEventsCount() != other.getJoinedEventsCount()) return false; - if (getUnjoinedEventsCount() != other.getUnjoinedEventsCount()) return false; + if (getJoinedEventsCount() + != other.getJoinedEventsCount()) return false; + if (getUnjoinedEventsCount() + != other.getUnjoinedEventsCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -217,114 +196,107 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + JOINED_EVENTS_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getJoinedEventsCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getJoinedEventsCount()); hash = (37 * hash) + UNJOINED_EVENTS_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUnjoinedEventsCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUnjoinedEventsCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * A summary of import result. The UserEventImportSummary summarizes
          * the import status for user events.
      @@ -332,40 +304,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *
          * Protobuf type {@code google.cloud.recommendationengine.v1beta1.UserEventImportSummary}
          */
      -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
      -      implements
      +  public static final class Builder extends
      +      com.google.protobuf.GeneratedMessageV3.Builder implements
             // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.UserEventImportSummary)
             com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder {
      -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      -      return com.google.cloud.recommendationengine.v1beta1.Import
      -          .internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor;
      +    public static final com.google.protobuf.Descriptors.Descriptor
      +        getDescriptor() {
      +      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor;
           }
       
           @java.lang.Override
           protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
               internalGetFieldAccessorTable() {
      -      return com.google.cloud.recommendationengine.v1beta1.Import
      -          .internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_fieldAccessorTable
      +      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_fieldAccessorTable
                 .ensureFieldAccessorsInitialized(
      -              com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.class,
      -              com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder.class);
      +              com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.class, com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder.class);
           }
       
      -    // Construct using
      -    // com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.newBuilder()
      +    // Construct using com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.newBuilder()
           private Builder() {
             maybeForceBuilderInitialization();
           }
       
      -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      +    private Builder(
      +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
             maybeForceBuilderInitialization();
           }
      -
           private void maybeForceBuilderInitialization() {
      -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
      +      if (com.google.protobuf.GeneratedMessageV3
      +              .alwaysUseFieldBuilders) {
      +      }
           }
      -
           @java.lang.Override
           public Builder clear() {
             super.clear();
      @@ -377,16 +347,14 @@ public Builder clear() {
           }
       
           @java.lang.Override
      -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      -      return com.google.cloud.recommendationengine.v1beta1.Import
      -          .internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor;
      +    public com.google.protobuf.Descriptors.Descriptor
      +        getDescriptorForType() {
      +      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor;
           }
       
           @java.lang.Override
      -    public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary
      -        getDefaultInstanceForType() {
      -      return com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary
      -          .getDefaultInstance();
      +    public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary getDefaultInstanceForType() {
      +      return com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.getDefaultInstance();
           }
       
           @java.lang.Override
      @@ -400,8 +368,7 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary buil
       
           @java.lang.Override
           public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary buildPartial() {
      -      com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary result =
      -          new com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary(this);
      +      com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary result = new com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary(this);
             result.joinedEventsCount_ = joinedEventsCount_;
             result.unjoinedEventsCount_ = unjoinedEventsCount_;
             onBuilt();
      @@ -412,51 +379,46 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary buil
           public Builder clone() {
             return super.clone();
           }
      -
           @java.lang.Override
           public Builder setField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        java.lang.Object value) {
             return super.setField(field, value);
           }
      -
           @java.lang.Override
      -    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      +    public Builder clearField(
      +        com.google.protobuf.Descriptors.FieldDescriptor field) {
             return super.clearField(field);
           }
      -
           @java.lang.Override
      -    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      +    public Builder clearOneof(
      +        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
             return super.clearOneof(oneof);
           }
      -
           @java.lang.Override
           public Builder setRepeatedField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        int index, java.lang.Object value) {
             return super.setRepeatedField(field, index, value);
           }
      -
           @java.lang.Override
           public Builder addRepeatedField(
      -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      +        com.google.protobuf.Descriptors.FieldDescriptor field,
      +        java.lang.Object value) {
             return super.addRepeatedField(field, value);
           }
      -
           @java.lang.Override
           public Builder mergeFrom(com.google.protobuf.Message other) {
             if (other instanceof com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary) {
      -        return mergeFrom(
      -            (com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary) other);
      +        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary)other);
             } else {
               super.mergeFrom(other);
               return this;
             }
           }
       
      -    public Builder mergeFrom(
      -        com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary other) {
      -      if (other
      -          == com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary
      -              .getDefaultInstance()) return this;
      +    public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary other) {
      +      if (other == com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.getDefaultInstance()) return this;
             if (other.getJoinedEventsCount() != 0L) {
               setJoinedEventsCount(other.getJoinedEventsCount());
             }
      @@ -482,9 +444,7 @@ public Builder mergeFrom(
             try {
               parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      -        parsedMessage =
      -            (com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary)
      -                e.getUnfinishedMessage();
      +        parsedMessage = (com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary) e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
               if (parsedMessage != null) {
      @@ -494,16 +454,13 @@ public Builder mergeFrom(
             return this;
           }
       
      -    private long joinedEventsCount_;
      +    private long joinedEventsCount_ ;
           /**
      -     *
      -     *
            * 
            * Count of user events imported with complete existing catalog information.
            * 
      * * int64 joined_events_count = 1; - * * @return The joinedEventsCount. */ @java.lang.Override @@ -511,52 +468,43 @@ public long getJoinedEventsCount() { return joinedEventsCount_; } /** - * - * *
            * Count of user events imported with complete existing catalog information.
            * 
      * * int64 joined_events_count = 1; - * * @param value The joinedEventsCount to set. * @return This builder for chaining. */ public Builder setJoinedEventsCount(long value) { - + joinedEventsCount_ = value; onChanged(); return this; } /** - * - * *
            * Count of user events imported with complete existing catalog information.
            * 
      * * int64 joined_events_count = 1; - * * @return This builder for chaining. */ public Builder clearJoinedEventsCount() { - + joinedEventsCount_ = 0L; onChanged(); return this; } - private long unjoinedEventsCount_; + private long unjoinedEventsCount_ ; /** - * - * *
            * Count of user events imported, but with catalog information not found
            * in the imported catalog.
            * 
      * * int64 unjoined_events_count = 2; - * * @return The unjoinedEventsCount. */ @java.lang.Override @@ -564,45 +512,39 @@ public long getUnjoinedEventsCount() { return unjoinedEventsCount_; } /** - * - * *
            * Count of user events imported, but with catalog information not found
            * in the imported catalog.
            * 
      * * int64 unjoined_events_count = 2; - * * @param value The unjoinedEventsCount to set. * @return This builder for chaining. */ public Builder setUnjoinedEventsCount(long value) { - + unjoinedEventsCount_ = value; onChanged(); return this; } /** - * - * *
            * Count of user events imported, but with catalog information not found
            * in the imported catalog.
            * 
      * * int64 unjoined_events_count = 2; - * * @return This builder for chaining. */ public Builder clearUnjoinedEventsCount() { - + unjoinedEventsCount_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -612,32 +554,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.UserEventImportSummary) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.UserEventImportSummary) - private static final com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary(); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserEventImportSummary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UserEventImportSummary(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserEventImportSummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserEventImportSummary(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,8 +589,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummaryOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummaryOrBuilder.java similarity index 55% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummaryOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummaryOrBuilder.java index f44d4ccd..bc0729e1 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummaryOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummaryOrBuilder.java @@ -1,51 +1,29 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; -public interface UserEventImportSummaryOrBuilder - extends +public interface UserEventImportSummaryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.UserEventImportSummary) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Count of user events imported with complete existing catalog information.
          * 
      * * int64 joined_events_count = 1; - * * @return The joinedEventsCount. */ long getJoinedEventsCount(); /** - * - * *
          * Count of user events imported, but with catalog information not found
          * in the imported catalog.
          * 
      * * int64 unjoined_events_count = 2; - * * @return The unjoinedEventsCount. */ long getUnjoinedEventsCount(); diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSource.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSource.java similarity index 62% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSource.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSource.java index 2de9885c..e4dd3c3c 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSource.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSource.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * The inline source for the input config for ImportUserEvents method.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.UserEventInlineSource} */ -public final class UserEventInlineSource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UserEventInlineSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.UserEventInlineSource) UserEventInlineSourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UserEventInlineSource.newBuilder() to construct. private UserEventInlineSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UserEventInlineSource() { userEvents_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UserEventInlineSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UserEventInlineSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private UserEventInlineSource( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - userEvents_ = - new java.util.ArrayList< - com.google.cloud.recommendationengine.v1beta1.UserEvent>(); - mutable_bitField0_ |= 0x00000001; - } - userEvents_.add( - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.UserEvent.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + userEvents_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + userEvents_.add( + input.readMessage(com.google.cloud.recommendationengine.v1beta1.UserEvent.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private UserEventInlineSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { userEvents_ = java.util.Collections.unmodifiableList(userEvents_); @@ -108,96 +87,72 @@ private UserEventInlineSource( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.class, - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder.class); + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.class, com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder.class); } public static final int USER_EVENTS_FIELD_NUMBER = 1; private java.util.List userEvents_; /** - * - * *
          * Optional. A list of user events to import. Recommended max of 10k items.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getUserEventsList() { + public java.util.List getUserEventsList() { return userEvents_; } /** - * - * *
          * Optional. A list of user events to import. Recommended max of 10k items.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getUserEventsOrBuilderList() { return userEvents_; } /** - * - * *
          * Optional. A list of user events to import. Recommended max of 10k items.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getUserEventsCount() { return userEvents_.size(); } /** - * - * *
          * Optional. A list of user events to import. Recommended max of 10k items.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvents(int index) { return userEvents_.get(index); } /** - * - * *
          * Optional. A list of user events to import. Recommended max of 10k items.
          * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventsOrBuilder( @@ -206,7 +161,6 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserE } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < userEvents_.size(); i++) { output.writeMessage(1, userEvents_.get(i)); } @@ -232,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < userEvents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, userEvents_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, userEvents_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -242,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource other = - (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) obj; + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource other = (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) obj; - if (!getUserEventsList().equals(other.getUserEventsList())) return false; + if (!getUserEventsList() + .equals(other.getUserEventsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -272,147 +228,135 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * The inline source for the input config for ImportUserEvents method.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.UserEventInlineSource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.UserEventInlineSource) com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.class, - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder.class); + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.class, com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getUserEventsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -426,16 +370,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Import - .internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.getDefaultInstance(); } @java.lang.Override @@ -449,8 +391,7 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource build @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource buildPartial() { - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource result = - new com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource(this); + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource result = new com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource(this); int from_bitField0_ = bitField0_; if (userEventsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -469,51 +410,46 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource other) { + if (other == com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.getDefaultInstance()) return this; if (userEventsBuilder_ == null) { if (!other.userEvents_.isEmpty()) { if (userEvents_.isEmpty()) { @@ -532,10 +468,9 @@ public Builder mergeFrom( userEventsBuilder_ = null; userEvents_ = other.userEvents_; bitField0_ = (bitField0_ & ~0x00000001); - userEventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getUserEventsFieldBuilder() - : null; + userEventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getUserEventsFieldBuilder() : null; } else { userEventsBuilder_.addAllMessages(other.userEvents_); } @@ -560,9 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -571,40 +504,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List userEvents_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureUserEventsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - userEvents_ = - new java.util.ArrayList( - userEvents_); + userEvents_ = new java.util.ArrayList(userEvents_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, - com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> - userEventsBuilder_; + com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> userEventsBuilder_; /** - * - * *
            * Optional. A list of user events to import. Recommended max of 10k items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getUserEventsList() { + public java.util.List getUserEventsList() { if (userEventsBuilder_ == null) { return java.util.Collections.unmodifiableList(userEvents_); } else { @@ -612,15 +533,11 @@ private void ensureUserEventsIsMutable() { } } /** - * - * *
            * Optional. A list of user events to import. Recommended max of 10k items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public int getUserEventsCount() { if (userEventsBuilder_ == null) { @@ -630,15 +547,11 @@ public int getUserEventsCount() { } } /** - * - * *
            * Optional. A list of user events to import. Recommended max of 10k items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvents(int index) { if (userEventsBuilder_ == null) { @@ -648,15 +561,11 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvents(int } } /** - * - * *
            * Optional. A list of user events to import. Recommended max of 10k items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUserEvents( int index, com.google.cloud.recommendationengine.v1beta1.UserEvent value) { @@ -673,19 +582,14 @@ public Builder setUserEvents( return this; } /** - * - * *
            * Optional. A list of user events to import. Recommended max of 10k items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUserEvents( - int index, - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { + int index, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { if (userEventsBuilder_ == null) { ensureUserEventsIsMutable(); userEvents_.set(index, builderForValue.build()); @@ -696,15 +600,11 @@ public Builder setUserEvents( return this; } /** - * - * *
            * Optional. A list of user events to import. Recommended max of 10k items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addUserEvents(com.google.cloud.recommendationengine.v1beta1.UserEvent value) { if (userEventsBuilder_ == null) { @@ -720,15 +620,11 @@ public Builder addUserEvents(com.google.cloud.recommendationengine.v1beta1.UserE return this; } /** - * - * *
            * Optional. A list of user events to import. Recommended max of 10k items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addUserEvents( int index, com.google.cloud.recommendationengine.v1beta1.UserEvent value) { @@ -745,15 +641,11 @@ public Builder addUserEvents( return this; } /** - * - * *
            * Optional. A list of user events to import. Recommended max of 10k items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addUserEvents( com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { @@ -767,19 +659,14 @@ public Builder addUserEvents( return this; } /** - * - * *
            * Optional. A list of user events to import. Recommended max of 10k items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addUserEvents( - int index, - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { + int index, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { if (userEventsBuilder_ == null) { ensureUserEventsIsMutable(); userEvents_.add(index, builderForValue.build()); @@ -790,22 +677,18 @@ public Builder addUserEvents( return this; } /** - * - * *
            * Optional. A list of user events to import. Recommended max of 10k items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllUserEvents( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (userEventsBuilder_ == null) { ensureUserEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userEvents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, userEvents_); onChanged(); } else { userEventsBuilder_.addAllMessages(values); @@ -813,15 +696,11 @@ public Builder addAllUserEvents( return this; } /** - * - * *
            * Optional. A list of user events to import. Recommended max of 10k items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUserEvents() { if (userEventsBuilder_ == null) { @@ -834,15 +713,11 @@ public Builder clearUserEvents() { return this; } /** - * - * *
            * Optional. A list of user events to import. Recommended max of 10k items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeUserEvents(int index) { if (userEventsBuilder_ == null) { @@ -855,53 +730,39 @@ public Builder removeUserEvents(int index) { return this; } /** - * - * *
            * Optional. A list of user events to import. Recommended max of 10k items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder getUserEventsBuilder( int index) { return getUserEventsFieldBuilder().getBuilder(index); } /** - * - * *
            * Optional. A list of user events to import. Recommended max of 10k items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventsOrBuilder( int index) { if (userEventsBuilder_ == null) { - return userEvents_.get(index); - } else { + return userEvents_.get(index); } else { return userEventsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
            * Optional. A list of user events to import. Recommended max of 10k items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> - getUserEventsOrBuilderList() { + public java.util.List + getUserEventsOrBuilderList() { if (userEventsBuilder_ != null) { return userEventsBuilder_.getMessageOrBuilderList(); } else { @@ -909,72 +770,56 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserE } } /** - * - * *
            * Optional. A list of user events to import. Recommended max of 10k items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder addUserEventsBuilder() { - return getUserEventsFieldBuilder() - .addBuilder(com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); + return getUserEventsFieldBuilder().addBuilder( + com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); } /** - * - * *
            * Optional. A list of user events to import. Recommended max of 10k items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder addUserEventsBuilder( int index) { - return getUserEventsFieldBuilder() - .addBuilder( - index, com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); + return getUserEventsFieldBuilder().addBuilder( + index, com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); } /** - * - * *
            * Optional. A list of user events to import. Recommended max of 10k items.
            * 
      * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getUserEventsBuilderList() { + public java.util.List + getUserEventsBuilderList() { return getUserEventsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, - com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> + com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> getUserEventsFieldBuilder() { if (userEventsBuilder_ == null) { - userEventsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, - com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder>( - userEvents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + userEventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder>( + userEvents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); userEvents_ = null; } return userEventsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -984,32 +829,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.UserEventInlineSource) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.UserEventInlineSource) - private static final com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource(); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserEventInlineSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UserEventInlineSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserEventInlineSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserEventInlineSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1021,8 +864,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSourceOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSourceOrBuilder.java new file mode 100644 index 00000000..ecd18827 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSourceOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/import.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public interface UserEventInlineSourceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.UserEventInlineSource) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * Optional. A list of user events to import. Recommended max of 10k items.
      +   * 
      + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.List + getUserEventsList(); + /** + *
      +   * Optional. A list of user events to import. Recommended max of 10k items.
      +   * 
      + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvents(int index); + /** + *
      +   * Optional. A list of user events to import. Recommended max of 10k items.
      +   * 
      + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getUserEventsCount(); + /** + *
      +   * Optional. A list of user events to import. Recommended max of 10k items.
      +   * 
      + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.List + getUserEventsOrBuilderList(); + /** + *
      +   * Optional. A list of user events to import. Recommended max of 10k items.
      +   * 
      + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventsOrBuilder( + int index); +} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOrBuilder.java similarity index 73% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOrBuilder.java index 997e680d..6f328df9 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; -public interface UserEventOrBuilder - extends +public interface UserEventOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.UserEvent) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required. User event type. Allowed values are:
          * * `add-to-cart` Products being added to cart.
      @@ -47,13 +29,10 @@ public interface UserEventOrBuilder
          * 
      * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The eventType. */ java.lang.String getEventType(); /** - * - * *
          * Required. User event type. Allowed values are:
          * * `add-to-cart` Products being added to cart.
      @@ -75,99 +54,69 @@ public interface UserEventOrBuilder
          * 
      * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for eventType. */ - com.google.protobuf.ByteString getEventTypeBytes(); + com.google.protobuf.ByteString + getEventTypeBytes(); /** - * - * *
          * Required. User information.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the userInfo field is set. */ boolean hasUserInfo(); /** - * - * *
          * Required. User information.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The userInfo. */ com.google.cloud.recommendationengine.v1beta1.UserInfo getUserInfo(); /** - * - * *
          * Required. User information.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder getUserInfoOrBuilder(); /** - * - * *
          * Optional. User event detailed information common across different
          * recommendation types.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the eventDetail field is set. */ boolean hasEventDetail(); /** - * - * *
          * Optional. User event detailed information common across different
          * recommendation types.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventDetail. */ com.google.cloud.recommendationengine.v1beta1.EventDetail getEventDetail(); /** - * - * *
          * Optional. User event detailed information common across different
          * recommendation types.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder getEventDetailOrBuilder(); /** - * - * *
          * Optional. Retail product specific user event metadata.
          * This field is required for the following event types:
      @@ -189,16 +138,11 @@ public interface UserEventOrBuilder
          * * `home-page-view`
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the productEventDetail field is set. */ boolean hasProductEventDetail(); /** - * - * *
          * Optional. Retail product specific user event metadata.
          * This field is required for the following event types:
      @@ -220,16 +164,11 @@ public interface UserEventOrBuilder
          * * `home-page-view`
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The productEventDetail. */ com.google.cloud.recommendationengine.v1beta1.ProductEventDetail getProductEventDetail(); /** - * - * *
          * Optional. Retail product specific user event metadata.
          * This field is required for the following event types:
      @@ -251,81 +190,57 @@ public interface UserEventOrBuilder
          * * `home-page-view`
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder - getProductEventDetailOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder getProductEventDetailOrBuilder(); /** - * - * *
          * Optional. Only required for ImportUserEvents method. Timestamp of user
          * event created.
          * 
      * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** - * - * *
          * Optional. Only required for ImportUserEvents method. Timestamp of user
          * event created.
          * 
      * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** - * - * *
          * Optional. Only required for ImportUserEvents method. Timestamp of user
          * event created.
          * 
      * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder(); /** - * - * *
          * Optional. This field should *not* be set when using JavaScript pixel
          * or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for eventSource. */ int getEventSourceValue(); /** - * - * *
          * Optional. This field should *not* be set when using JavaScript pixel
          * or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The eventSource. */ com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource getEventSource(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOuterClass.java new file mode 100644 index 00000000..75c3f0cf --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOuterClass.java @@ -0,0 +1,203 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/user_event.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public final class UserEventOuterClass { + private UserEventOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n:google/cloud/recommendationengine/v1be" + + "ta1/user_event.proto\022)google.cloud.recom" + + "mendationengine.v1beta1\032\037google/api/fiel" + + "d_behavior.proto\0327google/cloud/recommend" + + "ationengine/v1beta1/catalog.proto\0326googl" + + "e/cloud/recommendationengine/v1beta1/com" + + "mon.proto\032\037google/protobuf/timestamp.pro" + + "to\032\034google/api/annotations.proto\"\222\004\n\tUse" + + "rEvent\022\027\n\nevent_type\030\001 \001(\tB\003\340A\002\022K\n\tuser_" + + "info\030\002 \001(\01323.google.cloud.recommendation" + + "engine.v1beta1.UserInfoB\003\340A\002\022Q\n\014event_de" + + "tail\030\003 \001(\01326.google.cloud.recommendation" + + "engine.v1beta1.EventDetailB\003\340A\001\022`\n\024produ" + + "ct_event_detail\030\004 \001(\0132=.google.cloud.rec" + + "ommendationengine.v1beta1.ProductEventDe" + + "tailB\003\340A\001\0223\n\nevent_time\030\005 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\001\022[\n\014event_source\030\006" + + " \001(\0162@.google.cloud.recommendationengine" + + ".v1beta1.UserEvent.EventSourceB\003\340A\001\"X\n\013E" + + "ventSource\022\034\n\030EVENT_SOURCE_UNSPECIFIED\020\000" + + "\022\n\n\006AUTOML\020\001\022\r\n\tECOMMERCE\020\002\022\020\n\014BATCH_UPL" + + "OAD\020\003\"\215\001\n\010UserInfo\022\027\n\nvisitor_id\030\001 \001(\tB\003" + + "\340A\002\022\024\n\007user_id\030\002 \001(\tB\003\340A\001\022\027\n\nip_address\030" + + "\003 \001(\tB\003\340A\001\022\027\n\nuser_agent\030\004 \001(\tB\003\340A\001\022 \n\023d" + + "irect_user_request\030\005 \001(\010B\003\340A\001\"\353\001\n\013EventD" + + "etail\022\020\n\003uri\030\001 \001(\tB\003\340A\001\022\031\n\014referrer_uri\030" + + "\006 \001(\tB\003\340A\001\022\031\n\014page_view_id\030\002 \001(\tB\003\340A\001\022\033\n" + + "\016experiment_ids\030\003 \003(\tB\003\340A\001\022!\n\024recommenda" + + "tion_token\030\004 \001(\tB\003\340A\001\022T\n\020event_attribute" + + "s\030\005 \001(\01325.google.cloud.recommendationeng" + + "ine.v1beta1.FeatureMapB\003\340A\001\"\352\002\n\022ProductE" + + "ventDetail\022\024\n\014search_query\030\001 \001(\t\022a\n\017page" + + "_categories\030\002 \003(\0132H.google.cloud.recomme" + + "ndationengine.v1beta1.CatalogItem.Catego" + + "ryHierarchy\022Q\n\017product_details\030\003 \003(\01328.g" + + "oogle.cloud.recommendationengine.v1beta1" + + ".ProductDetail\022\017\n\007list_id\030\004 \001(\t\022\024\n\007cart_" + + "id\030\005 \001(\tB\003\340A\001\022a\n\024purchase_transaction\030\006 " + + "\001(\0132>.google.cloud.recommendationengine." + + "v1beta1.PurchaseTransactionB\003\340A\001\"\362\002\n\023Pur" + + "chaseTransaction\022\017\n\002id\030\001 \001(\tB\003\340A\001\022\024\n\007rev" + + "enue\030\002 \001(\002B\003\340A\002\022]\n\005taxes\030\003 \003(\0132I.google." + + "cloud.recommendationengine.v1beta1.Purch" + + "aseTransaction.TaxesEntryB\003\340A\001\022]\n\005costs\030" + + "\004 \003(\0132I.google.cloud.recommendationengin" + + "e.v1beta1.PurchaseTransaction.CostsEntry" + + "B\003\340A\001\022\032\n\rcurrency_code\030\006 \001(\tB\003\340A\002\032,\n\nTax" + + "esEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\002:\0028\001\032" + + ",\n\nCostsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\002:\0028\001\"\346\002\n\rProductDetail\022\017\n\002id\030\001 \001(\tB\003\340A\002" + + "\022\032\n\rcurrency_code\030\002 \001(\tB\003\340A\001\022\033\n\016original" + + "_price\030\003 \001(\002B\003\340A\001\022\032\n\rdisplay_price\030\004 \001(\002" + + "B\003\340A\001\022b\n\013stock_state\030\005 \001(\0162H.google.clou" + + "d.recommendationengine.v1beta1.ProductCa" + + "talogItem.StockStateB\003\340A\001\022\025\n\010quantity\030\006 " + + "\001(\005B\003\340A\001\022\037\n\022available_quantity\030\007 \001(\005B\003\340A" + + "\001\022S\n\017item_attributes\030\010 \001(\01325.google.clou" + + "d.recommendationengine.v1beta1.FeatureMa" + + "pB\003\340A\001B\237\002\n-com.google.cloud.recommendati" + + "onengine.v1beta1P\001Z]google.golang.org/ge" + + "nproto/googleapis/cloud/recommendationen" + + "gine/v1beta1;recommendationengine\242\002\005RECA" + + "I\252\002)Google.Cloud.RecommendationEngine.V1" + + "Beta1\312\002)Google\\Cloud\\RecommendationEngin" + + "e\\V1beta1\352\002,Google::Cloud::Recommendatio" + + "nEngine::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.Common.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor, + new java.lang.String[] { "EventType", "UserInfo", "EventDetail", "ProductEventDetail", "EventTime", "EventSource", }); + internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor, + new java.lang.String[] { "VisitorId", "UserId", "IpAddress", "UserAgent", "DirectUserRequest", }); + internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor, + new java.lang.String[] { "Uri", "ReferrerUri", "PageViewId", "ExperimentIds", "RecommendationToken", "EventAttributes", }); + internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor, + new java.lang.String[] { "SearchQuery", "PageCategories", "ProductDetails", "ListId", "CartId", "PurchaseTransaction", }); + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor, + new java.lang.String[] { "Id", "Revenue", "Taxes", "Costs", "CurrencyCode", }); + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor, + new java.lang.String[] { "Id", "CurrencyCode", "OriginalPrice", "DisplayPrice", "StockState", "Quantity", "AvailableQuantity", "ItemAttributes", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.Common.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceOuterClass.java new file mode 100644 index 00000000..6d445590 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceOuterClass.java @@ -0,0 +1,227 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/user_event_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public final class UserEventServiceOuterClass { + private UserEventServiceOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nBgoogle/cloud/recommendationengine/v1be" + + "ta1/user_event_service.proto\022)google.clo" + + "ud.recommendationengine.v1beta1\032\034google/" + + "api/annotations.proto\032\037google/api/field_" + + "behavior.proto\032\031google/api/httpbody.prot" + + "o\032\031google/api/resource.proto\0326google/clo" + + "ud/recommendationengine/v1beta1/import.p" + + "roto\032:google/cloud/recommendationengine/" + + "v1beta1/user_event.proto\032#google/longrun" + + "ning/operations.proto\032\037google/protobuf/t" + + "imestamp.proto\032\026google/type/date.proto\032\027" + + "google/api/client.proto\"\211\001\n\026PurgeUserEve" + + "ntsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.reco" + + "mmendationengine.googleapis.com/EventSto" + + "re\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\022\n\005force\030\003 \001(\010B\003" + + "\340A\001\"b\n\027PurgeUserEventsMetadata\022\026\n\016operat" + + "ion_name\030\001 \001(\t\022/\n\013create_time\030\002 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\"\210\001\n\027PurgeUserEve" + + "ntsResponse\022\033\n\023purged_events_count\030\001 \001(\003" + + "\022P\n\022user_events_sample\030\002 \003(\01324.google.cl" + + "oud.recommendationengine.v1beta1.UserEve" + + "nt\"\256\001\n\025WriteUserEventRequest\022F\n\006parent\030\001" + + " \001(\tB6\340A\002\372A0\n.recommendationengine.googl" + + "eapis.com/EventStore\022M\n\nuser_event\030\002 \001(\013" + + "24.google.cloud.recommendationengine.v1b" + + "eta1.UserEventB\003\340A\002\"\236\001\n\027CollectUserEvent" + + "Request\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.recomme" + + "ndationengine.googleapis.com/EventStore\022" + + "\027\n\nuser_event\030\002 \001(\tB\003\340A\002\022\020\n\003uri\030\003 \001(\tB\003\340" + + "A\001\022\020\n\003ets\030\004 \001(\003B\003\340A\001\"\245\001\n\025ListUserEventsR" + + "equest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.recommen" + + "dationengine.googleapis.com/EventStore\022\026" + + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" + + "(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\"|\n\026ListUser" + + "EventsResponse\022I\n\013user_events\030\001 \003(\01324.go" + + "ogle.cloud.recommendationengine.v1beta1." + + "UserEvent\022\027\n\017next_page_token\030\002 \001(\t2\330\014\n\020U" + + "serEventService\022\204\002\n\016WriteUserEvent\022@.goo" + + "gle.cloud.recommendationengine.v1beta1.W" + + "riteUserEventRequest\0324.google.cloud.reco" + + "mmendationengine.v1beta1.UserEvent\"z\202\323\344\223" + + "\002`\"R/v1beta1/{parent=projects/*/location" + + "s/*/catalogs/*/eventStores/*}/userEvents" + + ":write:\nuser_event\332A\021parent,user_event\022\346" + + "\001\n\020CollectUserEvent\022B.google.cloud.recom" + + "mendationengine.v1beta1.CollectUserEvent" + + "Request\032\024.google.api.HttpBody\"x\202\323\344\223\002V\022T/" + + "v1beta1/{parent=projects/*/locations/*/c" + + "atalogs/*/eventStores/*}/userEvents:coll" + + "ect\332A\031parent,user_event,uri,ets\022\373\001\n\016List" + + "UserEvents\022@.google.cloud.recommendation" + + "engine.v1beta1.ListUserEventsRequest\032A.g" + + "oogle.cloud.recommendationengine.v1beta1" + + ".ListUserEventsResponse\"d\202\323\344\223\002N\022L/v1beta" + + "1/{parent=projects/*/locations/*/catalog" + + "s/*/eventStores/*}/userEvents\332A\rparent,f" + + "ilter\022\363\002\n\017PurgeUserEvents\022A.google.cloud" + + ".recommendationengine.v1beta1.PurgeUserE" + + "ventsRequest\032\035.google.longrunning.Operat" + + "ion\"\375\001\202\323\344\223\002W\"R/v1beta1/{parent=projects/" + + "*/locations/*/catalogs/*/eventStores/*}/" + + "userEvents:purge:\001*\312A\206\001\nAgoogle.cloud.re" + + "commendationengine.v1beta1.PurgeUserEven" + + "tsResponse\022Agoogle.cloud.recommendatione" + + "ngine.v1beta1.PurgeUserEventsMetadata\332A\023" + + "parent,filter,force\022\206\003\n\020ImportUserEvents" + + "\022B.google.cloud.recommendationengine.v1b" + + "eta1.ImportUserEventsRequest\032\035.google.lo" + + "ngrunning.Operation\"\216\002\202\323\344\223\002X\"S/v1beta1/{" + + "parent=projects/*/locations/*/catalogs/*" + + "/eventStores/*}/userEvents:import:\001*\312A~\n" + + "Bgoogle.cloud.recommendationengine.v1bet" + + "a1.ImportUserEventsResponse\0228google.clou" + + "d.recommendationengine.v1beta1.ImportMet" + + "adata\332A,parent,request_id,input_config,e" + + "rrors_config\032W\312A#recommendationengine.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformB\237\002\n-com.google.clo" + + "ud.recommendationengine.v1beta1P\001Z]googl" + + "e.golang.org/genproto/googleapis/cloud/r" + + "ecommendationengine/v1beta1;recommendati" + + "onengine\242\002\005RECAI\252\002)Google.Cloud.Recommen" + + "dationEngine.V1Beta1\312\002)Google\\Cloud\\Reco" + + "mmendationEngine\\V1beta1\352\002,Google::Cloud" + + "::RecommendationEngine::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.HttpBodyProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.Import.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + }); + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "Force", }); + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor, + new java.lang.String[] { "OperationName", "CreateTime", }); + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor, + new java.lang.String[] { "PurgedEventsCount", "UserEventsSample", }); + internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor, + new java.lang.String[] { "Parent", "UserEvent", }); + internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor, + new java.lang.String[] { "Parent", "UserEvent", "Uri", "Ets", }); + internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); + internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor, + new java.lang.String[] { "UserEvents", "NextPageToken", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + 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.FieldBehaviorProto.getDescriptor(); + com.google.api.HttpBodyProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.Import.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfo.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfo.java similarity index 77% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfo.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfo.java index f555adec..a670e496 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfo.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfo.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Information of end users.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.UserInfo} */ -public final class UserInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UserInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.UserInfo) UserInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UserInfo.newBuilder() to construct. private UserInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UserInfo() { visitorId_ = ""; userId_ = ""; @@ -46,15 +28,16 @@ private UserInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UserInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UserInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,46 +56,42 @@ private UserInfo( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - visitorId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + visitorId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - userId_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + userId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - ipAddress_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + ipAddress_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - userAgent_ = s; - break; - } - case 40: - { - directUserRequest_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + userAgent_ = s; + break; + } + case 40: { + + directUserRequest_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,33 +99,29 @@ private UserInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.UserInfo.class, - com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder.class); + com.google.cloud.recommendationengine.v1beta1.UserInfo.class, com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder.class); } public static final int VISITOR_ID_FIELD_NUMBER = 1; private volatile java.lang.Object visitorId_; /** - * - * *
          * Required. A unique identifier for tracking visitors with a length limit of
          * 128 bytes.
      @@ -157,7 +132,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * 
      * * string visitor_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The visitorId. */ @java.lang.Override @@ -166,15 +140,14 @@ public java.lang.String getVisitorId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); visitorId_ = s; return s; } } /** - * - * *
          * Required. A unique identifier for tracking visitors with a length limit of
          * 128 bytes.
      @@ -185,15 +158,16 @@ public java.lang.String getVisitorId() {
          * 
      * * string visitor_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for visitorId. */ @java.lang.Override - public com.google.protobuf.ByteString getVisitorIdBytes() { + public com.google.protobuf.ByteString + getVisitorIdBytes() { java.lang.Object ref = visitorId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); visitorId_ = b; return b; } else { @@ -204,15 +178,12 @@ public com.google.protobuf.ByteString getVisitorIdBytes() { public static final int USER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object userId_; /** - * - * *
          * Optional. Unique identifier for logged-in user with a length limit of 128
          * bytes. Required only for logged-in users.
          * 
      * * string user_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The userId. */ @java.lang.Override @@ -221,30 +192,30 @@ public java.lang.String getUserId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userId_ = s; return s; } } /** - * - * *
          * Optional. Unique identifier for logged-in user with a length limit of 128
          * bytes. Required only for logged-in users.
          * 
      * * string user_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for userId. */ @java.lang.Override - public com.google.protobuf.ByteString getUserIdBytes() { + public com.google.protobuf.ByteString + getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userId_ = b; return b; } else { @@ -255,8 +226,6 @@ public com.google.protobuf.ByteString getUserIdBytes() { public static final int IP_ADDRESS_FIELD_NUMBER = 3; private volatile java.lang.Object ipAddress_; /** - * - * *
          * Optional. IP address of the user. This could be either IPv4 (e.g. 104.133.9.80) or
          * IPv6 (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This should *not* be
      @@ -265,7 +234,6 @@ public com.google.protobuf.ByteString getUserIdBytes() {
          * 
      * * string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ipAddress. */ @java.lang.Override @@ -274,15 +242,14 @@ public java.lang.String getIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; } } /** - * - * *
          * Optional. IP address of the user. This could be either IPv4 (e.g. 104.133.9.80) or
          * IPv6 (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This should *not* be
      @@ -291,15 +258,16 @@ public java.lang.String getIpAddress() {
          * 
      * * string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for ipAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getIpAddressBytes() { + public com.google.protobuf.ByteString + getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -310,8 +278,6 @@ public com.google.protobuf.ByteString getIpAddressBytes() { public static final int USER_AGENT_FIELD_NUMBER = 4; private volatile java.lang.Object userAgent_; /** - * - * *
          * Optional. User agent as included in the HTTP header. UTF-8 encoded string
          * with a length limit of 1 KiB.
      @@ -320,7 +286,6 @@ public com.google.protobuf.ByteString getIpAddressBytes() {
          * 
      * * string user_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The userAgent. */ @java.lang.Override @@ -329,15 +294,14 @@ public java.lang.String getUserAgent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userAgent_ = s; return s; } } /** - * - * *
          * Optional. User agent as included in the HTTP header. UTF-8 encoded string
          * with a length limit of 1 KiB.
      @@ -346,15 +310,16 @@ public java.lang.String getUserAgent() {
          * 
      * * string user_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for userAgent. */ @java.lang.Override - public com.google.protobuf.ByteString getUserAgentBytes() { + public com.google.protobuf.ByteString + getUserAgentBytes() { java.lang.Object ref = userAgent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userAgent_ = b; return b; } else { @@ -365,8 +330,6 @@ public com.google.protobuf.ByteString getUserAgentBytes() { public static final int DIRECT_USER_REQUEST_FIELD_NUMBER = 5; private boolean directUserRequest_; /** - * - * *
          * Optional. Indicates if the request is made directly from the end user
          * in which case the user_agent and ip_address fields can be populated
      @@ -377,7 +340,6 @@ public com.google.protobuf.ByteString getUserAgentBytes() {
          * 
      * * bool direct_user_request = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The directUserRequest. */ @java.lang.Override @@ -386,7 +348,6 @@ public boolean getDirectUserRequest() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -398,7 +359,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(visitorId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, visitorId_); } @@ -436,7 +398,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userAgent_); } if (directUserRequest_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, directUserRequest_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, directUserRequest_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -446,19 +409,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.UserInfo)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.UserInfo other = - (com.google.cloud.recommendationengine.v1beta1.UserInfo) obj; - - if (!getVisitorId().equals(other.getVisitorId())) return false; - if (!getUserId().equals(other.getUserId())) return false; - if (!getIpAddress().equals(other.getIpAddress())) return false; - if (!getUserAgent().equals(other.getUserAgent())) return false; - if (getDirectUserRequest() != other.getDirectUserRequest()) return false; + com.google.cloud.recommendationengine.v1beta1.UserInfo other = (com.google.cloud.recommendationengine.v1beta1.UserInfo) obj; + + if (!getVisitorId() + .equals(other.getVisitorId())) return false; + if (!getUserId() + .equals(other.getUserId())) return false; + if (!getIpAddress() + .equals(other.getIpAddress())) return false; + if (!getUserAgent() + .equals(other.getUserAgent())) return false; + if (getDirectUserRequest() + != other.getDirectUserRequest()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -479,134 +446,125 @@ public int hashCode() { hash = (37 * hash) + USER_AGENT_FIELD_NUMBER; hash = (53 * hash) + getUserAgent().hashCode(); hash = (37 * hash) + DIRECT_USER_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDirectUserRequest()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDirectUserRequest()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.UserInfo prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.UserInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Information of end users.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.UserInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.UserInfo) com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.UserInfo.class, - com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder.class); + com.google.cloud.recommendationengine.v1beta1.UserInfo.class, com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder.class); } // Construct using com.google.cloud.recommendationengine.v1beta1.UserInfo.newBuilder() @@ -614,15 +572,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -640,9 +599,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor; } @java.lang.Override @@ -661,8 +620,7 @@ public com.google.cloud.recommendationengine.v1beta1.UserInfo build() { @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserInfo buildPartial() { - com.google.cloud.recommendationengine.v1beta1.UserInfo result = - new com.google.cloud.recommendationengine.v1beta1.UserInfo(this); + com.google.cloud.recommendationengine.v1beta1.UserInfo result = new com.google.cloud.recommendationengine.v1beta1.UserInfo(this); result.visitorId_ = visitorId_; result.userId_ = userId_; result.ipAddress_ = ipAddress_; @@ -676,39 +634,38 @@ public com.google.cloud.recommendationengine.v1beta1.UserInfo buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.UserInfo) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.UserInfo) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.UserInfo)other); } else { super.mergeFrom(other); return this; @@ -716,8 +673,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.UserInfo other) { - if (other == com.google.cloud.recommendationengine.v1beta1.UserInfo.getDefaultInstance()) - return this; + if (other == com.google.cloud.recommendationengine.v1beta1.UserInfo.getDefaultInstance()) return this; if (!other.getVisitorId().isEmpty()) { visitorId_ = other.visitorId_; onChanged(); @@ -756,8 +712,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.UserInfo) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.UserInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -769,8 +724,6 @@ public Builder mergeFrom( private java.lang.Object visitorId_ = ""; /** - * - * *
            * Required. A unique identifier for tracking visitors with a length limit of
            * 128 bytes.
      @@ -781,13 +734,13 @@ public Builder mergeFrom(
            * 
      * * string visitor_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The visitorId. */ public java.lang.String getVisitorId() { java.lang.Object ref = visitorId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); visitorId_ = s; return s; @@ -796,8 +749,6 @@ public java.lang.String getVisitorId() { } } /** - * - * *
            * Required. A unique identifier for tracking visitors with a length limit of
            * 128 bytes.
      @@ -808,14 +759,15 @@ public java.lang.String getVisitorId() {
            * 
      * * string visitor_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for visitorId. */ - public com.google.protobuf.ByteString getVisitorIdBytes() { + public com.google.protobuf.ByteString + getVisitorIdBytes() { java.lang.Object ref = visitorId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); visitorId_ = b; return b; } else { @@ -823,8 +775,6 @@ public com.google.protobuf.ByteString getVisitorIdBytes() { } } /** - * - * *
            * Required. A unique identifier for tracking visitors with a length limit of
            * 128 bytes.
      @@ -835,22 +785,20 @@ public com.google.protobuf.ByteString getVisitorIdBytes() {
            * 
      * * string visitor_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The visitorId to set. * @return This builder for chaining. */ - public Builder setVisitorId(java.lang.String value) { + public Builder setVisitorId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + visitorId_ = value; onChanged(); return this; } /** - * - * *
            * Required. A unique identifier for tracking visitors with a length limit of
            * 128 bytes.
      @@ -861,18 +809,15 @@ public Builder setVisitorId(java.lang.String value) {
            * 
      * * string visitor_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearVisitorId() { - + visitorId_ = getDefaultInstance().getVisitorId(); onChanged(); return this; } /** - * - * *
            * Required. A unique identifier for tracking visitors with a length limit of
            * 128 bytes.
      @@ -883,16 +828,16 @@ public Builder clearVisitorId() {
            * 
      * * string visitor_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for visitorId to set. * @return This builder for chaining. */ - public Builder setVisitorIdBytes(com.google.protobuf.ByteString value) { + public Builder setVisitorIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + visitorId_ = value; onChanged(); return this; @@ -900,21 +845,19 @@ public Builder setVisitorIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object userId_ = ""; /** - * - * *
            * Optional. Unique identifier for logged-in user with a length limit of 128
            * bytes. Required only for logged-in users.
            * 
      * * string user_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The userId. */ public java.lang.String getUserId() { java.lang.Object ref = userId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userId_ = s; return s; @@ -923,22 +866,21 @@ public java.lang.String getUserId() { } } /** - * - * *
            * Optional. Unique identifier for logged-in user with a length limit of 128
            * bytes. Required only for logged-in users.
            * 
      * * string user_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for userId. */ - public com.google.protobuf.ByteString getUserIdBytes() { + public com.google.protobuf.ByteString + getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userId_ = b; return b; } else { @@ -946,64 +888,57 @@ public com.google.protobuf.ByteString getUserIdBytes() { } } /** - * - * *
            * Optional. Unique identifier for logged-in user with a length limit of 128
            * bytes. Required only for logged-in users.
            * 
      * * string user_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The userId to set. * @return This builder for chaining. */ - public Builder setUserId(java.lang.String value) { + public Builder setUserId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + userId_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Unique identifier for logged-in user with a length limit of 128
            * bytes. Required only for logged-in users.
            * 
      * * string user_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearUserId() { - + userId_ = getDefaultInstance().getUserId(); onChanged(); return this; } /** - * - * *
            * Optional. Unique identifier for logged-in user with a length limit of 128
            * bytes. Required only for logged-in users.
            * 
      * * string user_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for userId to set. * @return This builder for chaining. */ - public Builder setUserIdBytes(com.google.protobuf.ByteString value) { + public Builder setUserIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userId_ = value; onChanged(); return this; @@ -1011,8 +946,6 @@ public Builder setUserIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object ipAddress_ = ""; /** - * - * *
            * Optional. IP address of the user. This could be either IPv4 (e.g. 104.133.9.80) or
            * IPv6 (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This should *not* be
      @@ -1021,13 +954,13 @@ public Builder setUserIdBytes(com.google.protobuf.ByteString value) {
            * 
      * * string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ipAddress. */ public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; @@ -1036,8 +969,6 @@ public java.lang.String getIpAddress() { } } /** - * - * *
            * Optional. IP address of the user. This could be either IPv4 (e.g. 104.133.9.80) or
            * IPv6 (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This should *not* be
      @@ -1046,14 +977,15 @@ public java.lang.String getIpAddress() {
            * 
      * * string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for ipAddress. */ - public com.google.protobuf.ByteString getIpAddressBytes() { + public com.google.protobuf.ByteString + getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -1061,8 +993,6 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } } /** - * - * *
            * Optional. IP address of the user. This could be either IPv4 (e.g. 104.133.9.80) or
            * IPv6 (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This should *not* be
      @@ -1071,22 +1001,20 @@ public com.google.protobuf.ByteString getIpAddressBytes() {
            * 
      * * string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddress(java.lang.String value) { + public Builder setIpAddress( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ipAddress_ = value; onChanged(); return this; } /** - * - * *
            * Optional. IP address of the user. This could be either IPv4 (e.g. 104.133.9.80) or
            * IPv6 (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This should *not* be
      @@ -1095,18 +1023,15 @@ public Builder setIpAddress(java.lang.String value) {
            * 
      * * string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIpAddress() { - + ipAddress_ = getDefaultInstance().getIpAddress(); onChanged(); return this; } /** - * - * *
            * Optional. IP address of the user. This could be either IPv4 (e.g. 104.133.9.80) or
            * IPv6 (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This should *not* be
      @@ -1115,16 +1040,16 @@ public Builder clearIpAddress() {
            * 
      * * string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { + public Builder setIpAddressBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; onChanged(); return this; @@ -1132,8 +1057,6 @@ public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { private java.lang.Object userAgent_ = ""; /** - * - * *
            * Optional. User agent as included in the HTTP header. UTF-8 encoded string
            * with a length limit of 1 KiB.
      @@ -1142,13 +1065,13 @@ public Builder setIpAddressBytes(com.google.protobuf.ByteString value) {
            * 
      * * string user_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The userAgent. */ public java.lang.String getUserAgent() { java.lang.Object ref = userAgent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userAgent_ = s; return s; @@ -1157,8 +1080,6 @@ public java.lang.String getUserAgent() { } } /** - * - * *
            * Optional. User agent as included in the HTTP header. UTF-8 encoded string
            * with a length limit of 1 KiB.
      @@ -1167,14 +1088,15 @@ public java.lang.String getUserAgent() {
            * 
      * * string user_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for userAgent. */ - public com.google.protobuf.ByteString getUserAgentBytes() { + public com.google.protobuf.ByteString + getUserAgentBytes() { java.lang.Object ref = userAgent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userAgent_ = b; return b; } else { @@ -1182,8 +1104,6 @@ public com.google.protobuf.ByteString getUserAgentBytes() { } } /** - * - * *
            * Optional. User agent as included in the HTTP header. UTF-8 encoded string
            * with a length limit of 1 KiB.
      @@ -1192,22 +1112,20 @@ public com.google.protobuf.ByteString getUserAgentBytes() {
            * 
      * * string user_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgent(java.lang.String value) { + public Builder setUserAgent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + userAgent_ = value; onChanged(); return this; } /** - * - * *
            * Optional. User agent as included in the HTTP header. UTF-8 encoded string
            * with a length limit of 1 KiB.
      @@ -1216,18 +1134,15 @@ public Builder setUserAgent(java.lang.String value) {
            * 
      * * string user_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearUserAgent() { - + userAgent_ = getDefaultInstance().getUserAgent(); onChanged(); return this; } /** - * - * *
            * Optional. User agent as included in the HTTP header. UTF-8 encoded string
            * with a length limit of 1 KiB.
      @@ -1236,25 +1151,23 @@ public Builder clearUserAgent() {
            * 
      * * string user_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgentBytes(com.google.protobuf.ByteString value) { + public Builder setUserAgentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userAgent_ = value; onChanged(); return this; } - private boolean directUserRequest_; + private boolean directUserRequest_ ; /** - * - * *
            * Optional. Indicates if the request is made directly from the end user
            * in which case the user_agent and ip_address fields can be populated
      @@ -1265,7 +1178,6 @@ public Builder setUserAgentBytes(com.google.protobuf.ByteString value) {
            * 
      * * bool direct_user_request = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The directUserRequest. */ @java.lang.Override @@ -1273,8 +1185,6 @@ public boolean getDirectUserRequest() { return directUserRequest_; } /** - * - * *
            * Optional. Indicates if the request is made directly from the end user
            * in which case the user_agent and ip_address fields can be populated
      @@ -1285,19 +1195,16 @@ public boolean getDirectUserRequest() {
            * 
      * * bool direct_user_request = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The directUserRequest to set. * @return This builder for chaining. */ public Builder setDirectUserRequest(boolean value) { - + directUserRequest_ = value; onChanged(); return this; } /** - * - * *
            * Optional. Indicates if the request is made directly from the end user
            * in which case the user_agent and ip_address fields can be populated
      @@ -1308,18 +1215,17 @@ public Builder setDirectUserRequest(boolean value) {
            * 
      * * bool direct_user_request = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDirectUserRequest() { - + directUserRequest_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1329,12 +1235,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.UserInfo) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.UserInfo) private static final com.google.cloud.recommendationengine.v1beta1.UserInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.UserInfo(); } @@ -1343,16 +1249,16 @@ public static com.google.cloud.recommendationengine.v1beta1.UserInfo getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UserInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1367,4 +1273,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.recommendationengine.v1beta1.UserInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfoOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfoOrBuilder.java similarity index 81% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfoOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfoOrBuilder.java index 900e9849..91639058 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfoOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfoOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; -public interface UserInfoOrBuilder - extends +public interface UserInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.UserInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required. A unique identifier for tracking visitors with a length limit of
          * 128 bytes.
      @@ -36,13 +18,10 @@ public interface UserInfoOrBuilder
          * 
      * * string visitor_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The visitorId. */ java.lang.String getVisitorId(); /** - * - * *
          * Required. A unique identifier for tracking visitors with a length limit of
          * 128 bytes.
      @@ -53,41 +32,34 @@ public interface UserInfoOrBuilder
          * 
      * * string visitor_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for visitorId. */ - com.google.protobuf.ByteString getVisitorIdBytes(); + com.google.protobuf.ByteString + getVisitorIdBytes(); /** - * - * *
          * Optional. Unique identifier for logged-in user with a length limit of 128
          * bytes. Required only for logged-in users.
          * 
      * * string user_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The userId. */ java.lang.String getUserId(); /** - * - * *
          * Optional. Unique identifier for logged-in user with a length limit of 128
          * bytes. Required only for logged-in users.
          * 
      * * string user_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for userId. */ - com.google.protobuf.ByteString getUserIdBytes(); + com.google.protobuf.ByteString + getUserIdBytes(); /** - * - * *
          * Optional. IP address of the user. This could be either IPv4 (e.g. 104.133.9.80) or
          * IPv6 (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This should *not* be
      @@ -96,13 +68,10 @@ public interface UserInfoOrBuilder
          * 
      * * string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The ipAddress. */ java.lang.String getIpAddress(); /** - * - * *
          * Optional. IP address of the user. This could be either IPv4 (e.g. 104.133.9.80) or
          * IPv6 (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This should *not* be
      @@ -111,14 +80,12 @@ public interface UserInfoOrBuilder
          * 
      * * string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString getIpAddressBytes(); + com.google.protobuf.ByteString + getIpAddressBytes(); /** - * - * *
          * Optional. User agent as included in the HTTP header. UTF-8 encoded string
          * with a length limit of 1 KiB.
      @@ -127,13 +94,10 @@ public interface UserInfoOrBuilder
          * 
      * * string user_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The userAgent. */ java.lang.String getUserAgent(); /** - * - * *
          * Optional. User agent as included in the HTTP header. UTF-8 encoded string
          * with a length limit of 1 KiB.
      @@ -142,14 +106,12 @@ public interface UserInfoOrBuilder
          * 
      * * string user_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for userAgent. */ - com.google.protobuf.ByteString getUserAgentBytes(); + com.google.protobuf.ByteString + getUserAgentBytes(); /** - * - * *
          * Optional. Indicates if the request is made directly from the end user
          * in which case the user_agent and ip_address fields can be populated
      @@ -160,7 +122,6 @@ public interface UserInfoOrBuilder
          * 
      * * bool direct_user_request = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The directUserRequest. */ boolean getDirectUserRequest(); diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequest.java similarity index 61% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequest.java index bd0b7c21..a690c01b 100644 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; /** - * - * *
        * Request message for WriteUserEvent method.
        * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.WriteUserEventRequest} */ -public final class WriteUserEventRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WriteUserEventRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) WriteUserEventRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WriteUserEventRequest.newBuilder() to construct. private WriteUserEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WriteUserEventRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WriteUserEventRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WriteUserEventRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,37 +53,32 @@ private WriteUserEventRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder subBuilder = null; + if (userEvent_ != null) { + subBuilder = userEvent_.toBuilder(); } - case 18: - { - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder subBuilder = null; - if (userEvent_ != null) { - subBuilder = userEvent_.toBuilder(); - } - userEvent_ = - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.UserEvent.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(userEvent_); - userEvent_ = subBuilder.buildPartial(); - } - - break; + userEvent_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.UserEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(userEvent_); + userEvent_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,42 +86,35 @@ private WriteUserEventRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.class, - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.class, com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
          * Required. The parent eventStore resource name, such as
          * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -152,32 +123,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
          * Required. The parent eventStore resource name, such as
          * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -188,16 +157,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int USER_EVENT_FIELD_NUMBER = 2; private com.google.cloud.recommendationengine.v1beta1.UserEvent userEvent_; /** - * - * *
          * Required. User event to write.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the userEvent field is set. */ @java.lang.Override @@ -205,34 +169,23 @@ public boolean hasUserEvent() { return userEvent_ != null; } /** - * - * *
          * Required. User event to write.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The userEvent. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvent() { - return userEvent_ == null - ? com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() - : userEvent_; + return userEvent_ == null ? com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() : userEvent_; } /** - * - * *
          * Required. User event to write.
          * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventOrBuilder() { @@ -240,7 +193,6 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserE } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -272,7 +225,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (userEvent_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUserEvent()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUserEvent()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -282,18 +236,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest other = - (com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) obj; + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest other = (com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasUserEvent() != other.hasUserEvent()) return false; if (hasUserEvent()) { - if (!getUserEvent().equals(other.getUserEvent())) return false; + if (!getUserEvent() + .equals(other.getUserEvent())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -318,145 +273,134 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest prototype) { + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
          * Request message for WriteUserEvent method.
          * 
      * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.WriteUserEventRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.class, - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.class, com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.Builder.class); } - // Construct using - // com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.newBuilder() + // Construct using com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -472,16 +416,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass - .internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest - .getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.getDefaultInstance(); } @java.lang.Override @@ -495,8 +437,7 @@ public com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest build @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest result = - new com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest(this); + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest result = new com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest(this); result.parent_ = parent_; if (userEventBuilder_ == null) { result.userEvent_ = userEvent_; @@ -511,51 +452,46 @@ public com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest other) { + if (other == com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -582,9 +518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -596,23 +530,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
            * Required. The parent eventStore resource name, such as
            * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -621,24 +551,21 @@ public java.lang.String getParent() { } } /** - * - * *
            * Required. The parent eventStore resource name, such as
            * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -646,70 +573,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
            * Required. The parent eventStore resource name, such as
            * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
            * Required. The parent eventStore resource name, such as
            * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
            * Required. The parent eventStore resource name, such as
            * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
            * 
      * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -717,58 +631,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.recommendationengine.v1beta1.UserEvent userEvent_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, - com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> - userEventBuilder_; + com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> userEventBuilder_; /** - * - * *
            * Required. User event to write.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the userEvent field is set. */ public boolean hasUserEvent() { return userEventBuilder_ != null || userEvent_ != null; } /** - * - * *
            * Required. User event to write.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The userEvent. */ public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvent() { if (userEventBuilder_ == null) { - return userEvent_ == null - ? com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() - : userEvent_; + return userEvent_ == null ? com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() : userEvent_; } else { return userEventBuilder_.getMessage(); } } /** - * - * *
            * Required. User event to write.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUserEvent(com.google.cloud.recommendationengine.v1beta1.UserEvent value) { if (userEventBuilder_ == null) { @@ -784,15 +679,11 @@ public Builder setUserEvent(com.google.cloud.recommendationengine.v1beta1.UserEv return this; } /** - * - * *
            * Required. User event to write.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUserEvent( com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { @@ -806,23 +697,17 @@ public Builder setUserEvent( return this; } /** - * - * *
            * Required. User event to write.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUserEvent(com.google.cloud.recommendationengine.v1beta1.UserEvent value) { if (userEventBuilder_ == null) { if (userEvent_ != null) { userEvent_ = - com.google.cloud.recommendationengine.v1beta1.UserEvent.newBuilder(userEvent_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.recommendationengine.v1beta1.UserEvent.newBuilder(userEvent_).mergeFrom(value).buildPartial(); } else { userEvent_ = value; } @@ -834,15 +719,11 @@ public Builder mergeUserEvent(com.google.cloud.recommendationengine.v1beta1.User return this; } /** - * - * *
            * Required. User event to write.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUserEvent() { if (userEventBuilder_ == null) { @@ -856,72 +737,55 @@ public Builder clearUserEvent() { return this; } /** - * - * *
            * Required. User event to write.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder getUserEventBuilder() { - + onChanged(); return getUserEventFieldBuilder().getBuilder(); } /** - * - * *
            * Required. User event to write.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder - getUserEventOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventOrBuilder() { if (userEventBuilder_ != null) { return userEventBuilder_.getMessageOrBuilder(); } else { - return userEvent_ == null - ? com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() - : userEvent_; + return userEvent_ == null ? + com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() : userEvent_; } } /** - * - * *
            * Required. User event to write.
            * 
      * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, - com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> + com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> getUserEventFieldBuilder() { if (userEventBuilder_ == null) { - userEventBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, - com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder>( - getUserEvent(), getParentForChildren(), isClean()); + userEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder>( + getUserEvent(), + getParentForChildren(), + isClean()); userEvent_ = null; } return userEventBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -931,32 +795,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) - private static final com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest - getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WriteUserEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WriteUserEventRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteUserEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WriteUserEventRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -968,8 +830,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest - getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequestOrBuilder.java new file mode 100644 index 00000000..f5f6aef3 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/user_event_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public interface WriteUserEventRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
      +   * Required. The parent eventStore resource name, such as
      +   * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      +   * 
      + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
      +   * Required. The parent eventStore resource name, such as
      +   * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      +   * 
      + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
      +   * Required. User event to write.
      +   * 
      + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the userEvent field is set. + */ + boolean hasUserEvent(); + /** + *
      +   * Required. User event to write.
      +   * 
      + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The userEvent. + */ + com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvent(); + /** + *
      +   * Required. User event to write.
      +   * 
      + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventOrBuilder(); +} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/catalog.proto b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/catalog.proto similarity index 100% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/catalog.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/catalog.proto diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/catalog_service.proto b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/catalog_service.proto similarity index 100% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/catalog_service.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/catalog_service.proto diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/common.proto b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/common.proto similarity index 100% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/common.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/common.proto diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/import.proto b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/import.proto similarity index 100% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/import.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/import.proto diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto similarity index 100% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/prediction_service.proto b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/prediction_service.proto similarity index 100% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/prediction_service.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/prediction_service.proto diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto similarity index 100% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/user_event.proto b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/user_event.proto similarity index 100% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/user_event.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/user_event.proto diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/user_event_service.proto b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/user_event_service.proto similarity index 100% rename from proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/user_event_service.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/user_event_service.proto diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..127ed725 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceSettings; +import com.google.cloud.recommendationengine.v1beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CatalogServiceSettings catalogServiceSettings = + CatalogServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + CatalogServiceClient catalogServiceClient = CatalogServiceClient.create(catalogServiceSettings); + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..4198bf00 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_create_setcredentialsprovider1_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CatalogServiceSettings catalogServiceSettings = + CatalogServiceSettings.newBuilder() + .setTransportChannelProvider( + CatalogServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + CatalogServiceClient catalogServiceClient = CatalogServiceClient.create(catalogServiceSettings); + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..a0e2bb5c --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_create_setendpoint_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceSettings; +import com.google.cloud.recommendationengine.v1beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CatalogServiceSettings catalogServiceSettings = + CatalogServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + CatalogServiceClient catalogServiceClient = CatalogServiceClient.create(catalogServiceSettings); + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/AsyncCreateCatalogItem.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/AsyncCreateCatalogItem.java new file mode 100644 index 00000000..88503af6 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/AsyncCreateCatalogItem.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.recommendationengine.v1beta1.CatalogItem; +import com.google.cloud.recommendationengine.v1beta1.CatalogName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest; + +public class AsyncCreateCatalogItem { + + public static void main(String[] args) throws Exception { + asyncCreateCatalogItem(); + } + + public static void asyncCreateCatalogItem() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + CreateCatalogItemRequest request = + CreateCatalogItemRequest.newBuilder() + .setParent(CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString()) + .setCatalogItem(CatalogItem.newBuilder().build()) + .build(); + ApiFuture future = + catalogServiceClient.createCatalogItemCallable().futureCall(request); + // Do something. + CatalogItem response = future.get(); + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItem.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItem.java new file mode 100644 index 00000000..69689076 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItem.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogItem; +import com.google.cloud.recommendationengine.v1beta1.CatalogName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest; + +public class SyncCreateCatalogItem { + + public static void main(String[] args) throws Exception { + syncCreateCatalogItem(); + } + + public static void syncCreateCatalogItem() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + CreateCatalogItemRequest request = + CreateCatalogItemRequest.newBuilder() + .setParent(CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString()) + .setCatalogItem(CatalogItem.newBuilder().build()) + .build(); + CatalogItem response = catalogServiceClient.createCatalogItem(request); + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemCatalognameCatalogitem.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemCatalognameCatalogitem.java new file mode 100644 index 00000000..facfb065 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemCatalognameCatalogitem.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_catalognamecatalogitem_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogItem; +import com.google.cloud.recommendationengine.v1beta1.CatalogName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; + +public class SyncCreateCatalogItemCatalognameCatalogitem { + + public static void main(String[] args) throws Exception { + syncCreateCatalogItemCatalognameCatalogitem(); + } + + public static void syncCreateCatalogItemCatalognameCatalogitem() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]"); + CatalogItem catalogItem = CatalogItem.newBuilder().build(); + CatalogItem response = catalogServiceClient.createCatalogItem(parent, catalogItem); + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_catalognamecatalogitem_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemStringCatalogitem.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemStringCatalogitem.java new file mode 100644 index 00000000..fca23eab --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemStringCatalogitem.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_stringcatalogitem_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogItem; +import com.google.cloud.recommendationengine.v1beta1.CatalogName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; + +public class SyncCreateCatalogItemStringCatalogitem { + + public static void main(String[] args) throws Exception { + syncCreateCatalogItemStringCatalogitem(); + } + + public static void syncCreateCatalogItemStringCatalogitem() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString(); + CatalogItem catalogItem = CatalogItem.newBuilder().build(); + CatalogItem response = catalogServiceClient.createCatalogItem(parent, catalogItem); + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_stringcatalogitem_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/AsyncDeleteCatalogItem.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/AsyncDeleteCatalogItem.java new file mode 100644 index 00000000..1aaf20dd --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/AsyncDeleteCatalogItem.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_deletecatalogitem_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteCatalogItem { + + public static void main(String[] args) throws Exception { + asyncDeleteCatalogItem(); + } + + public static void asyncDeleteCatalogItem() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + DeleteCatalogItemRequest request = + DeleteCatalogItemRequest.newBuilder() + .setName( + CatalogItemPathName.of( + "[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]") + .toString()) + .build(); + ApiFuture future = + catalogServiceClient.deleteCatalogItemCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_deletecatalogitem_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItem.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItem.java new file mode 100644 index 00000000..635e4200 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItem.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_deletecatalogitem_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteCatalogItem { + + public static void main(String[] args) throws Exception { + syncDeleteCatalogItem(); + } + + public static void syncDeleteCatalogItem() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + DeleteCatalogItemRequest request = + DeleteCatalogItemRequest.newBuilder() + .setName( + CatalogItemPathName.of( + "[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]") + .toString()) + .build(); + catalogServiceClient.deleteCatalogItem(request); + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_deletecatalogitem_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemCatalogitempathname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemCatalogitempathname.java new file mode 100644 index 00000000..4f14c7c9 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemCatalogitempathname.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_deletecatalogitem_catalogitempathname_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCatalogItemCatalogitempathname { + + public static void main(String[] args) throws Exception { + syncDeleteCatalogItemCatalogitempathname(); + } + + public static void syncDeleteCatalogItemCatalogitempathname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + CatalogItemPathName name = + CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]"); + catalogServiceClient.deleteCatalogItem(name); + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_deletecatalogitem_catalogitempathname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemString.java new file mode 100644 index 00000000..06b0e6df --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_deletecatalogitem_string_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCatalogItemString { + + public static void main(String[] args) throws Exception { + syncDeleteCatalogItemString(); + } + + public static void syncDeleteCatalogItemString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + String name = + CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]") + .toString(); + catalogServiceClient.deleteCatalogItem(name); + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_deletecatalogitem_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/AsyncGetCatalogItem.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/AsyncGetCatalogItem.java new file mode 100644 index 00000000..96cf076c --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/AsyncGetCatalogItem.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_getcatalogitem_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.recommendationengine.v1beta1.CatalogItem; +import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest; + +public class AsyncGetCatalogItem { + + public static void main(String[] args) throws Exception { + asyncGetCatalogItem(); + } + + public static void asyncGetCatalogItem() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + GetCatalogItemRequest request = + GetCatalogItemRequest.newBuilder() + .setName( + CatalogItemPathName.of( + "[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]") + .toString()) + .build(); + ApiFuture future = + catalogServiceClient.getCatalogItemCallable().futureCall(request); + // Do something. + CatalogItem response = future.get(); + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_getcatalogitem_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItem.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItem.java new file mode 100644 index 00000000..7afb1145 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItem.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_getcatalogitem_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogItem; +import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest; + +public class SyncGetCatalogItem { + + public static void main(String[] args) throws Exception { + syncGetCatalogItem(); + } + + public static void syncGetCatalogItem() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + GetCatalogItemRequest request = + GetCatalogItemRequest.newBuilder() + .setName( + CatalogItemPathName.of( + "[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]") + .toString()) + .build(); + CatalogItem response = catalogServiceClient.getCatalogItem(request); + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_getcatalogitem_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemCatalogitempathname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemCatalogitempathname.java new file mode 100644 index 00000000..05e37bb8 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemCatalogitempathname.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_getcatalogitem_catalogitempathname_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogItem; +import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; + +public class SyncGetCatalogItemCatalogitempathname { + + public static void main(String[] args) throws Exception { + syncGetCatalogItemCatalogitempathname(); + } + + public static void syncGetCatalogItemCatalogitempathname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + CatalogItemPathName name = + CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]"); + CatalogItem response = catalogServiceClient.getCatalogItem(name); + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_getcatalogitem_catalogitempathname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemString.java new file mode 100644 index 00000000..c28aec80 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_getcatalogitem_string_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogItem; +import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; + +public class SyncGetCatalogItemString { + + public static void main(String[] args) throws Exception { + syncGetCatalogItemString(); + } + + public static void syncGetCatalogItemString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + String name = + CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]") + .toString(); + CatalogItem response = catalogServiceClient.getCatalogItem(name); + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_getcatalogitem_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItems.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItems.java new file mode 100644 index 00000000..dcf13868 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItems.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.recommendationengine.v1beta1.CatalogName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest; +import com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig; +import com.google.cloud.recommendationengine.v1beta1.InputConfig; +import com.google.longrunning.Operation; + +public class AsyncImportCatalogItems { + + public static void main(String[] args) throws Exception { + asyncImportCatalogItems(); + } + + public static void asyncImportCatalogItems() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + ImportCatalogItemsRequest request = + ImportCatalogItemsRequest.newBuilder() + .setParent(CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString()) + .setRequestId("requestId693933066") + .setInputConfig(InputConfig.newBuilder().build()) + .setErrorsConfig(ImportErrorsConfig.newBuilder().build()) + .build(); + ApiFuture future = + catalogServiceClient.importCatalogItemsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItemsLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItemsLRO.java new file mode 100644 index 00000000..c5166c68 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItemsLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.recommendationengine.v1beta1.CatalogName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest; +import com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse; +import com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig; +import com.google.cloud.recommendationengine.v1beta1.ImportMetadata; +import com.google.cloud.recommendationengine.v1beta1.InputConfig; + +public class AsyncImportCatalogItemsLRO { + + public static void main(String[] args) throws Exception { + asyncImportCatalogItemsLRO(); + } + + public static void asyncImportCatalogItemsLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + ImportCatalogItemsRequest request = + ImportCatalogItemsRequest.newBuilder() + .setParent(CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString()) + .setRequestId("requestId693933066") + .setInputConfig(InputConfig.newBuilder().build()) + .setErrorsConfig(ImportErrorsConfig.newBuilder().build()) + .build(); + OperationFuture future = + catalogServiceClient.importCatalogItemsOperationCallable().futureCall(request); + // Do something. + ImportCatalogItemsResponse response = future.get(); + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_lro_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItems.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItems.java new file mode 100644 index 00000000..d2487f20 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItems.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest; +import com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse; +import com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig; +import com.google.cloud.recommendationengine.v1beta1.InputConfig; + +public class SyncImportCatalogItems { + + public static void main(String[] args) throws Exception { + syncImportCatalogItems(); + } + + public static void syncImportCatalogItems() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + ImportCatalogItemsRequest request = + ImportCatalogItemsRequest.newBuilder() + .setParent(CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString()) + .setRequestId("requestId693933066") + .setInputConfig(InputConfig.newBuilder().build()) + .setErrorsConfig(ImportErrorsConfig.newBuilder().build()) + .build(); + ImportCatalogItemsResponse response = + catalogServiceClient.importCatalogItemsAsync(request).get(); + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsCatalognameStringInputconfigImporterrorsconfig.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsCatalognameStringInputconfigImporterrorsconfig.java new file mode 100644 index 00000000..e57a74d3 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsCatalognameStringInputconfigImporterrorsconfig.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_catalognamestringinputconfigimporterrorsconfig_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse; +import com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig; +import com.google.cloud.recommendationengine.v1beta1.InputConfig; + +public class SyncImportCatalogItemsCatalognameStringInputconfigImporterrorsconfig { + + public static void main(String[] args) throws Exception { + syncImportCatalogItemsCatalognameStringInputconfigImporterrorsconfig(); + } + + public static void syncImportCatalogItemsCatalognameStringInputconfigImporterrorsconfig() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]"); + String requestId = "requestId693933066"; + InputConfig inputConfig = InputConfig.newBuilder().build(); + ImportErrorsConfig errorsConfig = ImportErrorsConfig.newBuilder().build(); + ImportCatalogItemsResponse response = + catalogServiceClient + .importCatalogItemsAsync(parent, requestId, inputConfig, errorsConfig) + .get(); + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_catalognamestringinputconfigimporterrorsconfig_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsStringStringInputconfigImporterrorsconfig.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsStringStringInputconfigImporterrorsconfig.java new file mode 100644 index 00000000..c6a7dd49 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsStringStringInputconfigImporterrorsconfig.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_stringstringinputconfigimporterrorsconfig_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse; +import com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig; +import com.google.cloud.recommendationengine.v1beta1.InputConfig; + +public class SyncImportCatalogItemsStringStringInputconfigImporterrorsconfig { + + public static void main(String[] args) throws Exception { + syncImportCatalogItemsStringStringInputconfigImporterrorsconfig(); + } + + public static void syncImportCatalogItemsStringStringInputconfigImporterrorsconfig() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString(); + String requestId = "requestId693933066"; + InputConfig inputConfig = InputConfig.newBuilder().build(); + ImportErrorsConfig errorsConfig = ImportErrorsConfig.newBuilder().build(); + ImportCatalogItemsResponse response = + catalogServiceClient + .importCatalogItemsAsync(parent, requestId, inputConfig, errorsConfig) + .get(); + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_stringstringinputconfigimporterrorsconfig_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItems.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItems.java new file mode 100644 index 00000000..10012053 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItems.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.recommendationengine.v1beta1.CatalogItem; +import com.google.cloud.recommendationengine.v1beta1.CatalogName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest; + +public class AsyncListCatalogItems { + + public static void main(String[] args) throws Exception { + asyncListCatalogItems(); + } + + public static void asyncListCatalogItems() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + ListCatalogItemsRequest request = + ListCatalogItemsRequest.newBuilder() + .setParent(CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + catalogServiceClient.listCatalogItemsPagedCallable().futureCall(request); + // Do something. + for (CatalogItem element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItemsPaged.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItemsPaged.java new file mode 100644 index 00000000..43356e9a --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItemsPaged.java @@ -0,0 +1,60 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_paged_async] +import com.google.cloud.recommendationengine.v1beta1.CatalogItem; +import com.google.cloud.recommendationengine.v1beta1.CatalogName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest; +import com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse; +import com.google.common.base.Strings; + +public class AsyncListCatalogItemsPaged { + + public static void main(String[] args) throws Exception { + asyncListCatalogItemsPaged(); + } + + public static void asyncListCatalogItemsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + ListCatalogItemsRequest request = + ListCatalogItemsRequest.newBuilder() + .setParent(CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListCatalogItemsResponse response = + catalogServiceClient.listCatalogItemsCallable().call(request); + for (CatalogItem element : response.getCatalogItemsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_paged_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItems.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItems.java new file mode 100644 index 00000000..a200effa --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItems.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogItem; +import com.google.cloud.recommendationengine.v1beta1.CatalogName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest; + +public class SyncListCatalogItems { + + public static void main(String[] args) throws Exception { + syncListCatalogItems(); + } + + public static void syncListCatalogItems() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + ListCatalogItemsRequest request = + ListCatalogItemsRequest.newBuilder() + .setParent(CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (CatalogItem element : catalogServiceClient.listCatalogItems(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsCatalognameString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsCatalognameString.java new file mode 100644 index 00000000..7cab5a71 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsCatalognameString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_catalognamestring_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogItem; +import com.google.cloud.recommendationengine.v1beta1.CatalogName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; + +public class SyncListCatalogItemsCatalognameString { + + public static void main(String[] args) throws Exception { + syncListCatalogItemsCatalognameString(); + } + + public static void syncListCatalogItemsCatalognameString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]"); + String filter = "filter-1274492040"; + for (CatalogItem element : + catalogServiceClient.listCatalogItems(parent, filter).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_catalognamestring_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsStringString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsStringString.java new file mode 100644 index 00000000..af3b4d98 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsStringString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_stringstring_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogItem; +import com.google.cloud.recommendationengine.v1beta1.CatalogName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; + +public class SyncListCatalogItemsStringString { + + public static void main(String[] args) throws Exception { + syncListCatalogItemsStringString(); + } + + public static void syncListCatalogItemsStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString(); + String filter = "filter-1274492040"; + for (CatalogItem element : + catalogServiceClient.listCatalogItems(parent, filter).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_stringstring_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/AsyncUpdateCatalogItem.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/AsyncUpdateCatalogItem.java new file mode 100644 index 00000000..df12ae96 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/AsyncUpdateCatalogItem.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.recommendationengine.v1beta1.CatalogItem; +import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCatalogItem { + + public static void main(String[] args) throws Exception { + asyncUpdateCatalogItem(); + } + + public static void asyncUpdateCatalogItem() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + UpdateCatalogItemRequest request = + UpdateCatalogItemRequest.newBuilder() + .setName( + CatalogItemPathName.of( + "[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]") + .toString()) + .setCatalogItem(CatalogItem.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + catalogServiceClient.updateCatalogItemCallable().futureCall(request); + // Do something. + CatalogItem response = future.get(); + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItem.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItem.java new file mode 100644 index 00000000..ad9a4b94 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItem.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogItem; +import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCatalogItem { + + public static void main(String[] args) throws Exception { + syncUpdateCatalogItem(); + } + + public static void syncUpdateCatalogItem() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + UpdateCatalogItemRequest request = + UpdateCatalogItemRequest.newBuilder() + .setName( + CatalogItemPathName.of( + "[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]") + .toString()) + .setCatalogItem(CatalogItem.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + CatalogItem response = catalogServiceClient.updateCatalogItem(request); + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemCatalogitempathnameCatalogitemFieldmask.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemCatalogitempathnameCatalogitemFieldmask.java new file mode 100644 index 00000000..fa3fe4df --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemCatalogitempathnameCatalogitemFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_catalogitempathnamecatalogitemfieldmask_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogItem; +import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCatalogItemCatalogitempathnameCatalogitemFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCatalogItemCatalogitempathnameCatalogitemFieldmask(); + } + + public static void syncUpdateCatalogItemCatalogitempathnameCatalogitemFieldmask() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + CatalogItemPathName name = + CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]"); + CatalogItem catalogItem = CatalogItem.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + CatalogItem response = catalogServiceClient.updateCatalogItem(name, catalogItem, updateMask); + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_catalogitempathnamecatalogitemfieldmask_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemStringCatalogitemFieldmask.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemStringCatalogitemFieldmask.java new file mode 100644 index 00000000..b437c096 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemStringCatalogitemFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_stringcatalogitemfieldmask_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogItem; +import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName; +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCatalogItemStringCatalogitemFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCatalogItemStringCatalogitemFieldmask(); + } + + public static void syncUpdateCatalogItemStringCatalogitemFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) { + String name = + CatalogItemPathName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[CATALOG_ITEM_PATH]") + .toString(); + CatalogItem catalogItem = CatalogItem.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + CatalogItem response = catalogServiceClient.updateCatalogItem(name, catalogItem, updateMask); + } + } +} +// [END recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_stringcatalogitemfieldmask_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogservicesettings/createcatalogitem/SyncCreateCatalogItem.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogservicesettings/createcatalogitem/SyncCreateCatalogItem.java new file mode 100644 index 00000000..fb684018 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogservicesettings/createcatalogitem/SyncCreateCatalogItem.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_catalogservicesettings_createcatalogitem_sync] +import com.google.cloud.recommendationengine.v1beta1.CatalogServiceSettings; +import java.time.Duration; + +public class SyncCreateCatalogItem { + + public static void main(String[] args) throws Exception { + syncCreateCatalogItem(); + } + + public static void syncCreateCatalogItem() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CatalogServiceSettings.Builder catalogServiceSettingsBuilder = + CatalogServiceSettings.newBuilder(); + catalogServiceSettingsBuilder + .createCatalogItemSettings() + .setRetrySettings( + catalogServiceSettingsBuilder + .createCatalogItemSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CatalogServiceSettings catalogServiceSettings = catalogServiceSettingsBuilder.build(); + } +} +// [END recommendationengine_v1beta1_generated_catalogservicesettings_createcatalogitem_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..c7c6d7b0 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrySettings; +import com.google.cloud.recommendationengine.v1beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + PredictionApiKeyRegistrySettings predictionApiKeyRegistrySettings = + PredictionApiKeyRegistrySettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = + PredictionApiKeyRegistryClient.create(predictionApiKeyRegistrySettings); + } +} +// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..8df2d428 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setcredentialsprovider1_sync] +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrySettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + PredictionApiKeyRegistrySettings predictionApiKeyRegistrySettings = + PredictionApiKeyRegistrySettings.newBuilder() + .setTransportChannelProvider( + PredictionApiKeyRegistrySettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = + PredictionApiKeyRegistryClient.create(predictionApiKeyRegistrySettings); + } +} +// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..b6955fb1 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setendpoint_sync] +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrySettings; +import com.google.cloud.recommendationengine.v1beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + PredictionApiKeyRegistrySettings predictionApiKeyRegistrySettings = + PredictionApiKeyRegistrySettings.newBuilder().setEndpoint(myEndpoint).build(); + PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = + PredictionApiKeyRegistryClient.create(predictionApiKeyRegistrySettings); + } +} +// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/AsyncCreatePredictionApiKeyRegistration.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/AsyncCreatePredictionApiKeyRegistration.java new file mode 100644 index 00000000..15c95efe --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/AsyncCreatePredictionApiKeyRegistration.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest; +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; + +public class AsyncCreatePredictionApiKeyRegistration { + + public static void main(String[] args) throws Exception { + asyncCreatePredictionApiKeyRegistration(); + } + + public static void asyncCreatePredictionApiKeyRegistration() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = + PredictionApiKeyRegistryClient.create()) { + CreatePredictionApiKeyRegistrationRequest request = + CreatePredictionApiKeyRegistrationRequest.newBuilder() + .setParent( + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]") + .toString()) + .setPredictionApiKeyRegistration(PredictionApiKeyRegistration.newBuilder().build()) + .build(); + ApiFuture future = + predictionApiKeyRegistryClient + .createPredictionApiKeyRegistrationCallable() + .futureCall(request); + // Do something. + PredictionApiKeyRegistration response = future.get(); + } + } +} +// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java new file mode 100644 index 00000000..65c45e75 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_sync] +import com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest; +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; + +public class SyncCreatePredictionApiKeyRegistration { + + public static void main(String[] args) throws Exception { + syncCreatePredictionApiKeyRegistration(); + } + + public static void syncCreatePredictionApiKeyRegistration() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = + PredictionApiKeyRegistryClient.create()) { + CreatePredictionApiKeyRegistrationRequest request = + CreatePredictionApiKeyRegistrationRequest.newBuilder() + .setParent( + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]") + .toString()) + .setPredictionApiKeyRegistration(PredictionApiKeyRegistration.newBuilder().build()) + .build(); + PredictionApiKeyRegistration response = + predictionApiKeyRegistryClient.createPredictionApiKeyRegistration(request); + } + } +} +// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationEventstorenamePredictionapikeyregistration.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationEventstorenamePredictionapikeyregistration.java new file mode 100644 index 00000000..bace15fd --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationEventstorenamePredictionapikeyregistration.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_eventstorenamepredictionapikeyregistration_sync] +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; + +public class SyncCreatePredictionApiKeyRegistrationEventstorenamePredictionapikeyregistration { + + public static void main(String[] args) throws Exception { + syncCreatePredictionApiKeyRegistrationEventstorenamePredictionapikeyregistration(); + } + + public static void + syncCreatePredictionApiKeyRegistrationEventstorenamePredictionapikeyregistration() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = + PredictionApiKeyRegistryClient.create()) { + EventStoreName parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"); + PredictionApiKeyRegistration predictionApiKeyRegistration = + PredictionApiKeyRegistration.newBuilder().build(); + PredictionApiKeyRegistration response = + predictionApiKeyRegistryClient.createPredictionApiKeyRegistration( + parent, predictionApiKeyRegistration); + } + } +} +// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_eventstorenamepredictionapikeyregistration_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationStringPredictionapikeyregistration.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationStringPredictionapikeyregistration.java new file mode 100644 index 00000000..6490c759 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationStringPredictionapikeyregistration.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_stringpredictionapikeyregistration_sync] +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; + +public class SyncCreatePredictionApiKeyRegistrationStringPredictionapikeyregistration { + + public static void main(String[] args) throws Exception { + syncCreatePredictionApiKeyRegistrationStringPredictionapikeyregistration(); + } + + public static void syncCreatePredictionApiKeyRegistrationStringPredictionapikeyregistration() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = + PredictionApiKeyRegistryClient.create()) { + String parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]").toString(); + PredictionApiKeyRegistration predictionApiKeyRegistration = + PredictionApiKeyRegistration.newBuilder().build(); + PredictionApiKeyRegistration response = + predictionApiKeyRegistryClient.createPredictionApiKeyRegistration( + parent, predictionApiKeyRegistration); + } + } +} +// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_stringpredictionapikeyregistration_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/AsyncDeletePredictionApiKeyRegistration.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/AsyncDeletePredictionApiKeyRegistration.java new file mode 100644 index 00000000..a7b1b033 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/AsyncDeletePredictionApiKeyRegistration.java @@ -0,0 +1,57 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationName; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; +import com.google.protobuf.Empty; + +public class AsyncDeletePredictionApiKeyRegistration { + + public static void main(String[] args) throws Exception { + asyncDeletePredictionApiKeyRegistration(); + } + + public static void asyncDeletePredictionApiKeyRegistration() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = + PredictionApiKeyRegistryClient.create()) { + DeletePredictionApiKeyRegistrationRequest request = + DeletePredictionApiKeyRegistrationRequest.newBuilder() + .setName( + PredictionApiKeyRegistrationName.of( + "[PROJECT]", + "[LOCATION]", + "[CATALOG]", + "[EVENT_STORE]", + "[PREDICTION_API_KEY_REGISTRATION]") + .toString()) + .build(); + ApiFuture future = + predictionApiKeyRegistryClient + .deletePredictionApiKeyRegistrationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistration.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistration.java new file mode 100644 index 00000000..1dd21904 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistration.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_sync] +import com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationName; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; +import com.google.protobuf.Empty; + +public class SyncDeletePredictionApiKeyRegistration { + + public static void main(String[] args) throws Exception { + syncDeletePredictionApiKeyRegistration(); + } + + public static void syncDeletePredictionApiKeyRegistration() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = + PredictionApiKeyRegistryClient.create()) { + DeletePredictionApiKeyRegistrationRequest request = + DeletePredictionApiKeyRegistrationRequest.newBuilder() + .setName( + PredictionApiKeyRegistrationName.of( + "[PROJECT]", + "[LOCATION]", + "[CATALOG]", + "[EVENT_STORE]", + "[PREDICTION_API_KEY_REGISTRATION]") + .toString()) + .build(); + predictionApiKeyRegistryClient.deletePredictionApiKeyRegistration(request); + } + } +} +// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationPredictionapikeyregistrationname.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationPredictionapikeyregistrationname.java new file mode 100644 index 00000000..d182a625 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationPredictionapikeyregistrationname.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_predictionapikeyregistrationname_sync] +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationName; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; +import com.google.protobuf.Empty; + +public class SyncDeletePredictionApiKeyRegistrationPredictionapikeyregistrationname { + + public static void main(String[] args) throws Exception { + syncDeletePredictionApiKeyRegistrationPredictionapikeyregistrationname(); + } + + public static void syncDeletePredictionApiKeyRegistrationPredictionapikeyregistrationname() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = + PredictionApiKeyRegistryClient.create()) { + PredictionApiKeyRegistrationName name = + PredictionApiKeyRegistrationName.of( + "[PROJECT]", + "[LOCATION]", + "[CATALOG]", + "[EVENT_STORE]", + "[PREDICTION_API_KEY_REGISTRATION]"); + predictionApiKeyRegistryClient.deletePredictionApiKeyRegistration(name); + } + } +} +// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_predictionapikeyregistrationname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationString.java new file mode 100644 index 00000000..289d4503 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_string_sync] +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationName; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; +import com.google.protobuf.Empty; + +public class SyncDeletePredictionApiKeyRegistrationString { + + public static void main(String[] args) throws Exception { + syncDeletePredictionApiKeyRegistrationString(); + } + + public static void syncDeletePredictionApiKeyRegistrationString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = + PredictionApiKeyRegistryClient.create()) { + String name = + PredictionApiKeyRegistrationName.of( + "[PROJECT]", + "[LOCATION]", + "[CATALOG]", + "[EVENT_STORE]", + "[PREDICTION_API_KEY_REGISTRATION]") + .toString(); + predictionApiKeyRegistryClient.deletePredictionApiKeyRegistration(name); + } + } +} +// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrations.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrations.java new file mode 100644 index 00000000..ea9134ea --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrations.java @@ -0,0 +1,56 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; + +public class AsyncListPredictionApiKeyRegistrations { + + public static void main(String[] args) throws Exception { + asyncListPredictionApiKeyRegistrations(); + } + + public static void asyncListPredictionApiKeyRegistrations() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = + PredictionApiKeyRegistryClient.create()) { + ListPredictionApiKeyRegistrationsRequest request = + ListPredictionApiKeyRegistrationsRequest.newBuilder() + .setParent( + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + predictionApiKeyRegistryClient + .listPredictionApiKeyRegistrationsPagedCallable() + .futureCall(request); + // Do something. + for (PredictionApiKeyRegistration element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrationsPaged.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrationsPaged.java new file mode 100644 index 00000000..c657e9d8 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrationsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_paged_async] +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest; +import com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; +import com.google.common.base.Strings; + +public class AsyncListPredictionApiKeyRegistrationsPaged { + + public static void main(String[] args) throws Exception { + asyncListPredictionApiKeyRegistrationsPaged(); + } + + public static void asyncListPredictionApiKeyRegistrationsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = + PredictionApiKeyRegistryClient.create()) { + ListPredictionApiKeyRegistrationsRequest request = + ListPredictionApiKeyRegistrationsRequest.newBuilder() + .setParent( + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListPredictionApiKeyRegistrationsResponse response = + predictionApiKeyRegistryClient + .listPredictionApiKeyRegistrationsCallable() + .call(request); + for (PredictionApiKeyRegistration element : + response.getPredictionApiKeyRegistrationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_paged_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrations.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrations.java new file mode 100644 index 00000000..6764146c --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrations.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_sync] +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; + +public class SyncListPredictionApiKeyRegistrations { + + public static void main(String[] args) throws Exception { + syncListPredictionApiKeyRegistrations(); + } + + public static void syncListPredictionApiKeyRegistrations() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = + PredictionApiKeyRegistryClient.create()) { + ListPredictionApiKeyRegistrationsRequest request = + ListPredictionApiKeyRegistrationsRequest.newBuilder() + .setParent( + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (PredictionApiKeyRegistration element : + predictionApiKeyRegistryClient.listPredictionApiKeyRegistrations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsEventstorename.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsEventstorename.java new file mode 100644 index 00000000..fafd8a21 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsEventstorename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_eventstorename_sync] +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; + +public class SyncListPredictionApiKeyRegistrationsEventstorename { + + public static void main(String[] args) throws Exception { + syncListPredictionApiKeyRegistrationsEventstorename(); + } + + public static void syncListPredictionApiKeyRegistrationsEventstorename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = + PredictionApiKeyRegistryClient.create()) { + EventStoreName parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"); + for (PredictionApiKeyRegistration element : + predictionApiKeyRegistryClient.listPredictionApiKeyRegistrations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_eventstorename_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsString.java new file mode 100644 index 00000000..f8ed0a0a --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_string_sync] +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration; +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; + +public class SyncListPredictionApiKeyRegistrationsString { + + public static void main(String[] args) throws Exception { + syncListPredictionApiKeyRegistrationsString(); + } + + public static void syncListPredictionApiKeyRegistrationsString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient = + PredictionApiKeyRegistryClient.create()) { + String parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]").toString(); + for (PredictionApiKeyRegistration element : + predictionApiKeyRegistryClient.listPredictionApiKeyRegistrations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistrysettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistrysettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java new file mode 100644 index 00000000..c9ceebd3 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistrysettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionapikeyregistrysettings_createpredictionapikeyregistration_sync] +import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrySettings; +import java.time.Duration; + +public class SyncCreatePredictionApiKeyRegistration { + + public static void main(String[] args) throws Exception { + syncCreatePredictionApiKeyRegistration(); + } + + public static void syncCreatePredictionApiKeyRegistration() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + PredictionApiKeyRegistrySettings.Builder predictionApiKeyRegistrySettingsBuilder = + PredictionApiKeyRegistrySettings.newBuilder(); + predictionApiKeyRegistrySettingsBuilder + .createPredictionApiKeyRegistrationSettings() + .setRetrySettings( + predictionApiKeyRegistrySettingsBuilder + .createPredictionApiKeyRegistrationSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + PredictionApiKeyRegistrySettings predictionApiKeyRegistrySettings = + predictionApiKeyRegistrySettingsBuilder.build(); + } +} +// [END recommendationengine_v1beta1_generated_predictionapikeyregistrysettings_createpredictionapikeyregistration_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..be3678cc --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.recommendationengine.v1beta1.PredictionServiceClient; +import com.google.cloud.recommendationengine.v1beta1.PredictionServiceSettings; +import com.google.cloud.recommendationengine.v1beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + PredictionServiceSettings predictionServiceSettings = + PredictionServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + PredictionServiceClient predictionServiceClient = + PredictionServiceClient.create(predictionServiceSettings); + } +} +// [END recommendationengine_v1beta1_generated_predictionserviceclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..13d9e88c --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionserviceclient_create_setcredentialsprovider1_sync] +import com.google.cloud.recommendationengine.v1beta1.PredictionServiceClient; +import com.google.cloud.recommendationengine.v1beta1.PredictionServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + PredictionServiceSettings predictionServiceSettings = + PredictionServiceSettings.newBuilder() + .setTransportChannelProvider( + PredictionServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + PredictionServiceClient predictionServiceClient = + PredictionServiceClient.create(predictionServiceSettings); + } +} +// [END recommendationengine_v1beta1_generated_predictionserviceclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..e99a3753 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionserviceclient_create_setendpoint_sync] +import com.google.cloud.recommendationengine.v1beta1.PredictionServiceClient; +import com.google.cloud.recommendationengine.v1beta1.PredictionServiceSettings; +import com.google.cloud.recommendationengine.v1beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + PredictionServiceSettings predictionServiceSettings = + PredictionServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + PredictionServiceClient predictionServiceClient = + PredictionServiceClient.create(predictionServiceSettings); + } +} +// [END recommendationengine_v1beta1_generated_predictionserviceclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredict.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredict.java new file mode 100644 index 00000000..3d1f411b --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredict.java @@ -0,0 +1,62 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionserviceclient_predict_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.recommendationengine.v1beta1.PlacementName; +import com.google.cloud.recommendationengine.v1beta1.PredictRequest; +import com.google.cloud.recommendationengine.v1beta1.PredictionServiceClient; +import com.google.cloud.recommendationengine.v1beta1.UserEvent; +import com.google.protobuf.Value; +import java.util.HashMap; +import java.util.Map; + +public class AsyncPredict { + + public static void main(String[] args) throws Exception { + asyncPredict(); + } + + public static void asyncPredict() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { + PredictRequest request = + PredictRequest.newBuilder() + .setName( + PlacementName.of( + "[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PLACEMENT]") + .toString()) + .setUserEvent(UserEvent.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setDryRun(true) + .putAllParams(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + ApiFuture> future = + predictionServiceClient.predictPagedCallable().futureCall(request); + // Do something. + for (Map.Entry element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END recommendationengine_v1beta1_generated_predictionserviceclient_predict_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredictPaged.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredictPaged.java new file mode 100644 index 00000000..8f114ea7 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredictPaged.java @@ -0,0 +1,69 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionserviceclient_predict_paged_async] +import com.google.cloud.recommendationengine.v1beta1.PlacementName; +import com.google.cloud.recommendationengine.v1beta1.PredictRequest; +import com.google.cloud.recommendationengine.v1beta1.PredictResponse; +import com.google.cloud.recommendationengine.v1beta1.PredictionServiceClient; +import com.google.cloud.recommendationengine.v1beta1.UserEvent; +import com.google.common.base.Strings; +import com.google.protobuf.Value; +import java.util.HashMap; +import java.util.Map; + +public class AsyncPredictPaged { + + public static void main(String[] args) throws Exception { + asyncPredictPaged(); + } + + public static void asyncPredictPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { + PredictRequest request = + PredictRequest.newBuilder() + .setName( + PlacementName.of( + "[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PLACEMENT]") + .toString()) + .setUserEvent(UserEvent.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setDryRun(true) + .putAllParams(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + while (true) { + PredictResponse response = predictionServiceClient.predictCallable().call(request); + for (Map.Entry element : response.getMetadataList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END recommendationengine_v1beta1_generated_predictionserviceclient_predict_paged_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredict.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredict.java new file mode 100644 index 00000000..456be7eb --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredict.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionserviceclient_predict_sync] +import com.google.cloud.recommendationengine.v1beta1.PlacementName; +import com.google.cloud.recommendationengine.v1beta1.PredictRequest; +import com.google.cloud.recommendationengine.v1beta1.PredictionServiceClient; +import com.google.cloud.recommendationengine.v1beta1.UserEvent; +import com.google.protobuf.Value; +import java.util.HashMap; +import java.util.Map; + +public class SyncPredict { + + public static void main(String[] args) throws Exception { + syncPredict(); + } + + public static void syncPredict() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { + PredictRequest request = + PredictRequest.newBuilder() + .setName( + PlacementName.of( + "[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PLACEMENT]") + .toString()) + .setUserEvent(UserEvent.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setDryRun(true) + .putAllParams(new HashMap()) + .putAllLabels(new HashMap()) + .build(); + for (Map.Entry element : + predictionServiceClient.predict(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END recommendationengine_v1beta1_generated_predictionserviceclient_predict_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictPlacementnameUserevent.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictPlacementnameUserevent.java new file mode 100644 index 00000000..007e7a2a --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictPlacementnameUserevent.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionserviceclient_predict_placementnameuserevent_sync] +import com.google.cloud.recommendationengine.v1beta1.PlacementName; +import com.google.cloud.recommendationengine.v1beta1.PredictionServiceClient; +import com.google.cloud.recommendationengine.v1beta1.UserEvent; +import com.google.protobuf.Value; +import java.util.Map; + +public class SyncPredictPlacementnameUserevent { + + public static void main(String[] args) throws Exception { + syncPredictPlacementnameUserevent(); + } + + public static void syncPredictPlacementnameUserevent() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { + PlacementName name = + PlacementName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PLACEMENT]"); + UserEvent userEvent = UserEvent.newBuilder().build(); + for (Map.Entry element : + predictionServiceClient.predict(name, userEvent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END recommendationengine_v1beta1_generated_predictionserviceclient_predict_placementnameuserevent_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictStringUserevent.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictStringUserevent.java new file mode 100644 index 00000000..3b82fdcf --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictStringUserevent.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionserviceclient_predict_stringuserevent_sync] +import com.google.cloud.recommendationengine.v1beta1.PlacementName; +import com.google.cloud.recommendationengine.v1beta1.PredictionServiceClient; +import com.google.cloud.recommendationengine.v1beta1.UserEvent; +import com.google.protobuf.Value; +import java.util.Map; + +public class SyncPredictStringUserevent { + + public static void main(String[] args) throws Exception { + syncPredictStringUserevent(); + } + + public static void syncPredictStringUserevent() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { + String name = + PlacementName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]", "[PLACEMENT]") + .toString(); + UserEvent userEvent = UserEvent.newBuilder().build(); + for (Map.Entry element : + predictionServiceClient.predict(name, userEvent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END recommendationengine_v1beta1_generated_predictionserviceclient_predict_stringuserevent_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionservicesettings/predict/SyncPredict.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionservicesettings/predict/SyncPredict.java new file mode 100644 index 00000000..3e0fb6cc --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionservicesettings/predict/SyncPredict.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_predictionservicesettings_predict_sync] +import com.google.cloud.recommendationengine.v1beta1.PredictionServiceSettings; +import java.time.Duration; + +public class SyncPredict { + + public static void main(String[] args) throws Exception { + syncPredict(); + } + + public static void syncPredict() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + PredictionServiceSettings.Builder predictionServiceSettingsBuilder = + PredictionServiceSettings.newBuilder(); + predictionServiceSettingsBuilder + .predictSettings() + .setRetrySettings( + predictionServiceSettingsBuilder + .predictSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + PredictionServiceSettings predictionServiceSettings = predictionServiceSettingsBuilder.build(); + } +} +// [END recommendationengine_v1beta1_generated_predictionservicesettings_predict_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/catalogservicestubsettings/createcatalogitem/SyncCreateCatalogItem.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/catalogservicestubsettings/createcatalogitem/SyncCreateCatalogItem.java new file mode 100644 index 00000000..0ed140ee --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/catalogservicestubsettings/createcatalogitem/SyncCreateCatalogItem.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.stub.samples; + +// [START recommendationengine_v1beta1_generated_catalogservicestubsettings_createcatalogitem_sync] +import com.google.cloud.recommendationengine.v1beta1.stub.CatalogServiceStubSettings; +import java.time.Duration; + +public class SyncCreateCatalogItem { + + public static void main(String[] args) throws Exception { + syncCreateCatalogItem(); + } + + public static void syncCreateCatalogItem() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CatalogServiceStubSettings.Builder catalogServiceSettingsBuilder = + CatalogServiceStubSettings.newBuilder(); + catalogServiceSettingsBuilder + .createCatalogItemSettings() + .setRetrySettings( + catalogServiceSettingsBuilder + .createCatalogItemSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CatalogServiceStubSettings catalogServiceSettings = catalogServiceSettingsBuilder.build(); + } +} +// [END recommendationengine_v1beta1_generated_catalogservicestubsettings_createcatalogitem_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionapikeyregistrystubsettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionapikeyregistrystubsettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java new file mode 100644 index 00000000..1c96ba9a --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionapikeyregistrystubsettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.stub.samples; + +// [START recommendationengine_v1beta1_generated_predictionapikeyregistrystubsettings_createpredictionapikeyregistration_sync] +import com.google.cloud.recommendationengine.v1beta1.stub.PredictionApiKeyRegistryStubSettings; +import java.time.Duration; + +public class SyncCreatePredictionApiKeyRegistration { + + public static void main(String[] args) throws Exception { + syncCreatePredictionApiKeyRegistration(); + } + + public static void syncCreatePredictionApiKeyRegistration() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + PredictionApiKeyRegistryStubSettings.Builder predictionApiKeyRegistrySettingsBuilder = + PredictionApiKeyRegistryStubSettings.newBuilder(); + predictionApiKeyRegistrySettingsBuilder + .createPredictionApiKeyRegistrationSettings() + .setRetrySettings( + predictionApiKeyRegistrySettingsBuilder + .createPredictionApiKeyRegistrationSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + PredictionApiKeyRegistryStubSettings predictionApiKeyRegistrySettings = + predictionApiKeyRegistrySettingsBuilder.build(); + } +} +// [END recommendationengine_v1beta1_generated_predictionapikeyregistrystubsettings_createpredictionapikeyregistration_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionservicestubsettings/predict/SyncPredict.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionservicestubsettings/predict/SyncPredict.java new file mode 100644 index 00000000..59ffcf50 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionservicestubsettings/predict/SyncPredict.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.stub.samples; + +// [START recommendationengine_v1beta1_generated_predictionservicestubsettings_predict_sync] +import com.google.cloud.recommendationengine.v1beta1.stub.PredictionServiceStubSettings; +import java.time.Duration; + +public class SyncPredict { + + public static void main(String[] args) throws Exception { + syncPredict(); + } + + public static void syncPredict() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + PredictionServiceStubSettings.Builder predictionServiceSettingsBuilder = + PredictionServiceStubSettings.newBuilder(); + predictionServiceSettingsBuilder + .predictSettings() + .setRetrySettings( + predictionServiceSettingsBuilder + .predictSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + PredictionServiceStubSettings predictionServiceSettings = + predictionServiceSettingsBuilder.build(); + } +} +// [END recommendationengine_v1beta1_generated_predictionservicestubsettings_predict_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java new file mode 100644 index 00000000..d38d1acd --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.stub.samples; + +// [START recommendationengine_v1beta1_generated_usereventservicestubsettings_writeuserevent_sync] +import com.google.cloud.recommendationengine.v1beta1.stub.UserEventServiceStubSettings; +import java.time.Duration; + +public class SyncWriteUserEvent { + + public static void main(String[] args) throws Exception { + syncWriteUserEvent(); + } + + public static void syncWriteUserEvent() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + UserEventServiceStubSettings.Builder userEventServiceSettingsBuilder = + UserEventServiceStubSettings.newBuilder(); + userEventServiceSettingsBuilder + .writeUserEventSettings() + .setRetrySettings( + userEventServiceSettingsBuilder + .writeUserEventSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + UserEventServiceStubSettings userEventServiceSettings = userEventServiceSettingsBuilder.build(); + } +} +// [END recommendationengine_v1beta1_generated_usereventservicestubsettings_writeuserevent_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/AsyncCollectUserEvent.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/AsyncCollectUserEvent.java new file mode 100644 index 00000000..ef8f78d4 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/AsyncCollectUserEvent.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_collectuserevent_async] +import com.google.api.HttpBody; +import com.google.api.core.ApiFuture; +import com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest; +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; + +public class AsyncCollectUserEvent { + + public static void main(String[] args) throws Exception { + asyncCollectUserEvent(); + } + + public static void asyncCollectUserEvent() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + CollectUserEventRequest request = + CollectUserEventRequest.newBuilder() + .setParent( + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]") + .toString()) + .setUserEvent("userEvent315571599") + .setUri("uri116076") + .setEts(100772) + .build(); + ApiFuture future = + userEventServiceClient.collectUserEventCallable().futureCall(request); + // Do something. + HttpBody response = future.get(); + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_collectuserevent_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEvent.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEvent.java new file mode 100644 index 00000000..e6b9cf99 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEvent.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_collectuserevent_sync] +import com.google.api.HttpBody; +import com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest; +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; + +public class SyncCollectUserEvent { + + public static void main(String[] args) throws Exception { + syncCollectUserEvent(); + } + + public static void syncCollectUserEvent() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + CollectUserEventRequest request = + CollectUserEventRequest.newBuilder() + .setParent( + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]") + .toString()) + .setUserEvent("userEvent315571599") + .setUri("uri116076") + .setEts(100772) + .build(); + HttpBody response = userEventServiceClient.collectUserEvent(request); + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_collectuserevent_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventEventstorenameStringStringLong.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventEventstorenameStringStringLong.java new file mode 100644 index 00000000..06dbccce --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventEventstorenameStringStringLong.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_collectuserevent_eventstorenamestringstringlong_sync] +import com.google.api.HttpBody; +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; + +public class SyncCollectUserEventEventstorenameStringStringLong { + + public static void main(String[] args) throws Exception { + syncCollectUserEventEventstorenameStringStringLong(); + } + + public static void syncCollectUserEventEventstorenameStringStringLong() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + EventStoreName parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"); + String userEvent = "userEvent315571599"; + String uri = "uri116076"; + long ets = 100772; + HttpBody response = userEventServiceClient.collectUserEvent(parent, userEvent, uri, ets); + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_collectuserevent_eventstorenamestringstringlong_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventStringStringStringLong.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventStringStringStringLong.java new file mode 100644 index 00000000..070525ec --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventStringStringStringLong.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_collectuserevent_stringstringstringlong_sync] +import com.google.api.HttpBody; +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; + +public class SyncCollectUserEventStringStringStringLong { + + public static void main(String[] args) throws Exception { + syncCollectUserEventStringStringStringLong(); + } + + public static void syncCollectUserEventStringStringStringLong() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + String parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]").toString(); + String userEvent = "userEvent315571599"; + String uri = "uri116076"; + long ets = 100772; + HttpBody response = userEventServiceClient.collectUserEvent(parent, userEvent, uri, ets); + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_collectuserevent_stringstringstringlong_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..51906a0d --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceSettings; +import com.google.cloud.recommendationengine.v1beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + UserEventServiceSettings userEventServiceSettings = + UserEventServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + UserEventServiceClient userEventServiceClient = + UserEventServiceClient.create(userEventServiceSettings); + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..fcf2408d --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_create_setcredentialsprovider1_sync] +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + UserEventServiceSettings userEventServiceSettings = + UserEventServiceSettings.newBuilder() + .setTransportChannelProvider( + UserEventServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + UserEventServiceClient userEventServiceClient = + UserEventServiceClient.create(userEventServiceSettings); + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..ffcc7a65 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_create_setendpoint_sync] +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceSettings; +import com.google.cloud.recommendationengine.v1beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + UserEventServiceSettings userEventServiceSettings = + UserEventServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + UserEventServiceClient userEventServiceClient = + UserEventServiceClient.create(userEventServiceSettings); + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEvents.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEvents.java new file mode 100644 index 00000000..ce86b3f4 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEvents.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_importuserevents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig; +import com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest; +import com.google.cloud.recommendationengine.v1beta1.InputConfig; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; +import com.google.longrunning.Operation; + +public class AsyncImportUserEvents { + + public static void main(String[] args) throws Exception { + asyncImportUserEvents(); + } + + public static void asyncImportUserEvents() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + ImportUserEventsRequest request = + ImportUserEventsRequest.newBuilder() + .setParent( + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]") + .toString()) + .setRequestId("requestId693933066") + .setInputConfig(InputConfig.newBuilder().build()) + .setErrorsConfig(ImportErrorsConfig.newBuilder().build()) + .build(); + ApiFuture future = + userEventServiceClient.importUserEventsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_importuserevents_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEventsLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEventsLRO.java new file mode 100644 index 00000000..c7e7726d --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEventsLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_importuserevents_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig; +import com.google.cloud.recommendationengine.v1beta1.ImportMetadata; +import com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest; +import com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse; +import com.google.cloud.recommendationengine.v1beta1.InputConfig; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; + +public class AsyncImportUserEventsLRO { + + public static void main(String[] args) throws Exception { + asyncImportUserEventsLRO(); + } + + public static void asyncImportUserEventsLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + ImportUserEventsRequest request = + ImportUserEventsRequest.newBuilder() + .setParent( + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]") + .toString()) + .setRequestId("requestId693933066") + .setInputConfig(InputConfig.newBuilder().build()) + .setErrorsConfig(ImportErrorsConfig.newBuilder().build()) + .build(); + OperationFuture future = + userEventServiceClient.importUserEventsOperationCallable().futureCall(request); + // Do something. + ImportUserEventsResponse response = future.get(); + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_importuserevents_lro_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEvents.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEvents.java new file mode 100644 index 00000000..814c5158 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEvents.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_importuserevents_sync] +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig; +import com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest; +import com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse; +import com.google.cloud.recommendationengine.v1beta1.InputConfig; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; + +public class SyncImportUserEvents { + + public static void main(String[] args) throws Exception { + syncImportUserEvents(); + } + + public static void syncImportUserEvents() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + ImportUserEventsRequest request = + ImportUserEventsRequest.newBuilder() + .setParent( + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]") + .toString()) + .setRequestId("requestId693933066") + .setInputConfig(InputConfig.newBuilder().build()) + .setErrorsConfig(ImportErrorsConfig.newBuilder().build()) + .build(); + ImportUserEventsResponse response = + userEventServiceClient.importUserEventsAsync(request).get(); + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_importuserevents_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsEventstorenameStringInputconfigImporterrorsconfig.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsEventstorenameStringInputconfigImporterrorsconfig.java new file mode 100644 index 00000000..951f0fa5 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsEventstorenameStringInputconfigImporterrorsconfig.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_importuserevents_eventstorenamestringinputconfigimporterrorsconfig_sync] +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig; +import com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse; +import com.google.cloud.recommendationengine.v1beta1.InputConfig; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; + +public class SyncImportUserEventsEventstorenameStringInputconfigImporterrorsconfig { + + public static void main(String[] args) throws Exception { + syncImportUserEventsEventstorenameStringInputconfigImporterrorsconfig(); + } + + public static void syncImportUserEventsEventstorenameStringInputconfigImporterrorsconfig() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + EventStoreName parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"); + String requestId = "requestId693933066"; + InputConfig inputConfig = InputConfig.newBuilder().build(); + ImportErrorsConfig errorsConfig = ImportErrorsConfig.newBuilder().build(); + ImportUserEventsResponse response = + userEventServiceClient + .importUserEventsAsync(parent, requestId, inputConfig, errorsConfig) + .get(); + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_importuserevents_eventstorenamestringinputconfigimporterrorsconfig_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsStringStringInputconfigImporterrorsconfig.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsStringStringInputconfigImporterrorsconfig.java new file mode 100644 index 00000000..72231efe --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsStringStringInputconfigImporterrorsconfig.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_importuserevents_stringstringinputconfigimporterrorsconfig_sync] +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig; +import com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse; +import com.google.cloud.recommendationengine.v1beta1.InputConfig; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; + +public class SyncImportUserEventsStringStringInputconfigImporterrorsconfig { + + public static void main(String[] args) throws Exception { + syncImportUserEventsStringStringInputconfigImporterrorsconfig(); + } + + public static void syncImportUserEventsStringStringInputconfigImporterrorsconfig() + throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + String parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]").toString(); + String requestId = "requestId693933066"; + InputConfig inputConfig = InputConfig.newBuilder().build(); + ImportErrorsConfig errorsConfig = ImportErrorsConfig.newBuilder().build(); + ImportUserEventsResponse response = + userEventServiceClient + .importUserEventsAsync(parent, requestId, inputConfig, errorsConfig) + .get(); + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_importuserevents_stringstringinputconfigimporterrorsconfig_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEvents.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEvents.java new file mode 100644 index 00000000..4569d08b --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEvents.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_listuserevents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest; +import com.google.cloud.recommendationengine.v1beta1.UserEvent; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; + +public class AsyncListUserEvents { + + public static void main(String[] args) throws Exception { + asyncListUserEvents(); + } + + public static void asyncListUserEvents() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + ListUserEventsRequest request = + ListUserEventsRequest.newBuilder() + .setParent( + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + userEventServiceClient.listUserEventsPagedCallable().futureCall(request); + // Do something. + for (UserEvent element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_listuserevents_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEventsPaged.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEventsPaged.java new file mode 100644 index 00000000..3b49148a --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEventsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_listuserevents_paged_async] +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest; +import com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse; +import com.google.cloud.recommendationengine.v1beta1.UserEvent; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; +import com.google.common.base.Strings; + +public class AsyncListUserEventsPaged { + + public static void main(String[] args) throws Exception { + asyncListUserEventsPaged(); + } + + public static void asyncListUserEventsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + ListUserEventsRequest request = + ListUserEventsRequest.newBuilder() + .setParent( + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListUserEventsResponse response = + userEventServiceClient.listUserEventsCallable().call(request); + for (UserEvent element : response.getUserEventsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_listuserevents_paged_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEvents.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEvents.java new file mode 100644 index 00000000..b477446c --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEvents.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_listuserevents_sync] +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest; +import com.google.cloud.recommendationengine.v1beta1.UserEvent; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; + +public class SyncListUserEvents { + + public static void main(String[] args) throws Exception { + syncListUserEvents(); + } + + public static void syncListUserEvents() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + ListUserEventsRequest request = + ListUserEventsRequest.newBuilder() + .setParent( + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (UserEvent element : userEventServiceClient.listUserEvents(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_listuserevents_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsEventstorenameString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsEventstorenameString.java new file mode 100644 index 00000000..3d30dad3 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsEventstorenameString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_listuserevents_eventstorenamestring_sync] +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.UserEvent; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; + +public class SyncListUserEventsEventstorenameString { + + public static void main(String[] args) throws Exception { + syncListUserEventsEventstorenameString(); + } + + public static void syncListUserEventsEventstorenameString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + EventStoreName parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"); + String filter = "filter-1274492040"; + for (UserEvent element : userEventServiceClient.listUserEvents(parent, filter).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_listuserevents_eventstorenamestring_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsStringString.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsStringString.java new file mode 100644 index 00000000..f2f164d9 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsStringString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_listuserevents_stringstring_sync] +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.UserEvent; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; + +public class SyncListUserEventsStringString { + + public static void main(String[] args) throws Exception { + syncListUserEventsStringString(); + } + + public static void syncListUserEventsStringString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + String parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]").toString(); + String filter = "filter-1274492040"; + for (UserEvent element : userEventServiceClient.listUserEvents(parent, filter).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_listuserevents_stringstring_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEvents.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEvents.java new file mode 100644 index 00000000..ab08593d --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEvents.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_purgeuserevents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; +import com.google.longrunning.Operation; + +public class AsyncPurgeUserEvents { + + public static void main(String[] args) throws Exception { + asyncPurgeUserEvents(); + } + + public static void asyncPurgeUserEvents() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + PurgeUserEventsRequest request = + PurgeUserEventsRequest.newBuilder() + .setParent( + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + ApiFuture future = + userEventServiceClient.purgeUserEventsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_purgeuserevents_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEventsLRO.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEventsLRO.java new file mode 100644 index 00000000..acc01ce0 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEventsLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_purgeuserevents_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata; +import com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest; +import com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; + +public class AsyncPurgeUserEventsLRO { + + public static void main(String[] args) throws Exception { + asyncPurgeUserEventsLRO(); + } + + public static void asyncPurgeUserEventsLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + PurgeUserEventsRequest request = + PurgeUserEventsRequest.newBuilder() + .setParent( + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + OperationFuture future = + userEventServiceClient.purgeUserEventsOperationCallable().futureCall(request); + // Do something. + PurgeUserEventsResponse response = future.get(); + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_purgeuserevents_lro_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEvents.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEvents.java new file mode 100644 index 00000000..02631fdd --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEvents.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_purgeuserevents_sync] +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest; +import com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; + +public class SyncPurgeUserEvents { + + public static void main(String[] args) throws Exception { + syncPurgeUserEvents(); + } + + public static void syncPurgeUserEvents() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + PurgeUserEventsRequest request = + PurgeUserEventsRequest.newBuilder() + .setParent( + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + PurgeUserEventsResponse response = userEventServiceClient.purgeUserEventsAsync(request).get(); + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_purgeuserevents_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsEventstorenameStringBoolean.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsEventstorenameStringBoolean.java new file mode 100644 index 00000000..b1927cb9 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsEventstorenameStringBoolean.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_purgeuserevents_eventstorenamestringboolean_sync] +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; + +public class SyncPurgeUserEventsEventstorenameStringBoolean { + + public static void main(String[] args) throws Exception { + syncPurgeUserEventsEventstorenameStringBoolean(); + } + + public static void syncPurgeUserEventsEventstorenameStringBoolean() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + EventStoreName parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"); + String filter = "filter-1274492040"; + boolean force = true; + PurgeUserEventsResponse response = + userEventServiceClient.purgeUserEventsAsync(parent, filter, force).get(); + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_purgeuserevents_eventstorenamestringboolean_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsStringStringBoolean.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsStringStringBoolean.java new file mode 100644 index 00000000..27c020fb --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsStringStringBoolean.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_purgeuserevents_stringstringboolean_sync] +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; + +public class SyncPurgeUserEventsStringStringBoolean { + + public static void main(String[] args) throws Exception { + syncPurgeUserEventsStringStringBoolean(); + } + + public static void syncPurgeUserEventsStringStringBoolean() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + String parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]").toString(); + String filter = "filter-1274492040"; + boolean force = true; + PurgeUserEventsResponse response = + userEventServiceClient.purgeUserEventsAsync(parent, filter, force).get(); + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_purgeuserevents_stringstringboolean_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/AsyncWriteUserEvent.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/AsyncWriteUserEvent.java new file mode 100644 index 00000000..6f8a04c7 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/AsyncWriteUserEvent.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_writeuserevent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.UserEvent; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; +import com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest; + +public class AsyncWriteUserEvent { + + public static void main(String[] args) throws Exception { + asyncWriteUserEvent(); + } + + public static void asyncWriteUserEvent() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + WriteUserEventRequest request = + WriteUserEventRequest.newBuilder() + .setParent( + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]") + .toString()) + .setUserEvent(UserEvent.newBuilder().build()) + .build(); + ApiFuture future = + userEventServiceClient.writeUserEventCallable().futureCall(request); + // Do something. + UserEvent response = future.get(); + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_writeuserevent_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEvent.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEvent.java new file mode 100644 index 00000000..2dff34ee --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEvent.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_writeuserevent_sync] +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.UserEvent; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; +import com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest; + +public class SyncWriteUserEvent { + + public static void main(String[] args) throws Exception { + syncWriteUserEvent(); + } + + public static void syncWriteUserEvent() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + WriteUserEventRequest request = + WriteUserEventRequest.newBuilder() + .setParent( + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]") + .toString()) + .setUserEvent(UserEvent.newBuilder().build()) + .build(); + UserEvent response = userEventServiceClient.writeUserEvent(request); + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_writeuserevent_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventEventstorenameUserevent.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventEventstorenameUserevent.java new file mode 100644 index 00000000..0a3babf7 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventEventstorenameUserevent.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_writeuserevent_eventstorenameuserevent_sync] +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.UserEvent; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; + +public class SyncWriteUserEventEventstorenameUserevent { + + public static void main(String[] args) throws Exception { + syncWriteUserEventEventstorenameUserevent(); + } + + public static void syncWriteUserEventEventstorenameUserevent() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + EventStoreName parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]"); + UserEvent userEvent = UserEvent.newBuilder().build(); + UserEvent response = userEventServiceClient.writeUserEvent(parent, userEvent); + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_writeuserevent_eventstorenameuserevent_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventStringUserevent.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventStringUserevent.java new file mode 100644 index 00000000..d61048aa --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventStringUserevent.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventserviceclient_writeuserevent_stringuserevent_sync] +import com.google.cloud.recommendationengine.v1beta1.EventStoreName; +import com.google.cloud.recommendationengine.v1beta1.UserEvent; +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; + +public class SyncWriteUserEventStringUserevent { + + public static void main(String[] args) throws Exception { + syncWriteUserEventStringUserevent(); + } + + public static void syncWriteUserEventStringUserevent() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (UserEventServiceClient userEventServiceClient = UserEventServiceClient.create()) { + String parent = + EventStoreName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[EVENT_STORE]").toString(); + UserEvent userEvent = UserEvent.newBuilder().build(); + UserEvent response = userEventServiceClient.writeUserEvent(parent, userEvent); + } + } +} +// [END recommendationengine_v1beta1_generated_usereventserviceclient_writeuserevent_stringuserevent_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java new file mode 100644 index 00000000..a7f7a581 --- /dev/null +++ b/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.recommendationengine.v1beta1.samples; + +// [START recommendationengine_v1beta1_generated_usereventservicesettings_writeuserevent_sync] +import com.google.cloud.recommendationengine.v1beta1.UserEventServiceSettings; +import java.time.Duration; + +public class SyncWriteUserEvent { + + public static void main(String[] args) throws Exception { + syncWriteUserEvent(); + } + + public static void syncWriteUserEvent() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + UserEventServiceSettings.Builder userEventServiceSettingsBuilder = + UserEventServiceSettings.newBuilder(); + userEventServiceSettingsBuilder + .writeUserEventSettings() + .setRetrySettings( + userEventServiceSettingsBuilder + .writeUserEventSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + UserEventServiceSettings userEventServiceSettings = userEventServiceSettingsBuilder.build(); + } +} +// [END recommendationengine_v1beta1_generated_usereventservicesettings_writeuserevent_sync] diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Catalog.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Catalog.java deleted file mode 100644 index b0d7798f..00000000 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Catalog.java +++ /dev/null @@ -1,221 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/catalog.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public final class Catalog { - private Catalog() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_Image_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n7google/cloud/recommendationengine/v1be" - + "ta1/catalog.proto\022)google.cloud.recommen" - + "dationengine.v1beta1\032\037google/api/field_b" - + "ehavior.proto\0326google/cloud/recommendati" - + "onengine/v1beta1/common.proto\032\034google/pr" - + "otobuf/struct.proto\032\034google/api/annotati" - + "ons.proto\"\376\003\n\013CatalogItem\022\017\n\002id\030\001 \001(\tB\003\340" - + "A\002\022k\n\024category_hierarchies\030\002 \003(\0132H.googl" - + "e.cloud.recommendationengine.v1beta1.Cat" - + "alogItem.CategoryHierarchyB\003\340A\002\022\022\n\005title" - + "\030\003 \001(\tB\003\340A\002\022\030\n\013description\030\004 \001(\tB\003\340A\001\022S\n" - + "\017item_attributes\030\005 \001(\01325.google.cloud.re" - + "commendationengine.v1beta1.FeatureMapB\003\340" - + "A\001\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A\001\022\021\n\004tags\030\010" - + " \003(\tB\003\340A\001\022\032\n\ritem_group_id\030\t \001(\tB\003\340A\001\022^\n" - + "\020product_metadata\030\n \001(\0132=.google.cloud.r" - + "ecommendationengine.v1beta1.ProductCatal" - + "ogItemB\003\340A\001H\000\032,\n\021CategoryHierarchy\022\027\n\nca" - + "tegories\030\001 \003(\tB\003\340A\002B\025\n\023recommendation_ty" - + "pe\"\346\006\n\022ProductCatalogItem\022d\n\013exact_price" - + "\030\001 \001(\0132H.google.cloud.recommendationengi" - + "ne.v1beta1.ProductCatalogItem.ExactPrice" - + "B\003\340A\001H\000\022d\n\013price_range\030\002 \001(\0132H.google.cl" - + "oud.recommendationengine.v1beta1.Product" - + "CatalogItem.PriceRangeB\003\340A\001H\000\022\\\n\005costs\030\003" - + " \003(\0132H.google.cloud.recommendationengine" - + ".v1beta1.ProductCatalogItem.CostsEntryB\003" - + "\340A\001\022\032\n\rcurrency_code\030\004 \001(\tB\003\340A\001\022b\n\013stock" - + "_state\030\005 \001(\0162H.google.cloud.recommendati" - + "onengine.v1beta1.ProductCatalogItem.Stoc" - + "kStateB\003\340A\001\022\037\n\022available_quantity\030\006 \001(\003B" - + "\003\340A\001\022\"\n\025canonical_product_uri\030\007 \001(\tB\003\340A\001" - + "\022E\n\006images\030\010 \003(\01320.google.cloud.recommen" - + "dationengine.v1beta1.ImageB\003\340A\001\032E\n\nExact" - + "Price\022\032\n\rdisplay_price\030\001 \001(\002B\003\340A\001\022\033\n\016ori" - + "ginal_price\030\002 \001(\002B\003\340A\001\0320\n\nPriceRange\022\020\n\003" - + "min\030\001 \001(\002B\003\340A\002\022\020\n\003max\030\002 \001(\002B\003\340A\002\032,\n\nCost" - + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\002:\0028\001\"j" - + "\n\nStockState\022\033\n\027STOCK_STATE_UNSPECIFIED\020" - + "\000\022\014\n\010IN_STOCK\020\000\022\020\n\014OUT_OF_STOCK\020\001\022\014\n\010PRE" - + "ORDER\020\002\022\r\n\tBACKORDER\020\003\032\002\020\001B\007\n\005price\"B\n\005I" - + "mage\022\020\n\003uri\030\001 \001(\tB\003\340A\002\022\023\n\006height\030\002 \001(\005B\003" - + "\340A\001\022\022\n\005width\030\003 \001(\005B\003\340A\001B\237\002\n-com.google.c" - + "loud.recommendationengine.v1beta1P\001Z]goo" - + "gle.golang.org/genproto/googleapis/cloud" - + "/recommendationengine/v1beta1;recommenda" - + "tionengine\242\002\005RECAI\252\002)Google.Cloud.Recomm" - + "endationEngine.V1Beta1\312\002)Google\\Cloud\\Re" - + "commendationEngine\\V1beta1\352\002,Google::Clo" - + "ud::RecommendationEngine::V1beta1b\006proto" - + "3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.Common.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor, - new java.lang.String[] { - "Id", - "CategoryHierarchies", - "Title", - "Description", - "ItemAttributes", - "LanguageCode", - "Tags", - "ItemGroupId", - "ProductMetadata", - "RecommendationType", - }); - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor, - new java.lang.String[] { - "Categories", - }); - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor, - new java.lang.String[] { - "ExactPrice", - "PriceRange", - "Costs", - "CurrencyCode", - "StockState", - "AvailableQuantity", - "CanonicalProductUri", - "Images", - "Price", - }); - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor, - new java.lang.String[] { - "DisplayPrice", "OriginalPrice", - }); - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor, - new java.lang.String[] { - "Min", "Max", - }); - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_recommendationengine_v1beta1_Image_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor, - new java.lang.String[] { - "Uri", "Height", "Width", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.Common.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSourceOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSourceOrBuilder.java deleted file mode 100644 index a774086a..00000000 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSourceOrBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/import.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public interface CatalogInlineSourceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.CatalogInlineSource) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
      -   * Optional. A list of catalog items to update/create. Recommended max of 10k
      -   * items.
      -   * 
      - * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List getCatalogItemsList(); - /** - * - * - *
      -   * Optional. A list of catalog items to update/create. Recommended max of 10k
      -   * items.
      -   * 
      - * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItems(int index); - /** - * - * - *
      -   * Optional. A list of catalog items to update/create. Recommended max of 10k
      -   * items.
      -   * 
      - * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getCatalogItemsCount(); - /** - * - * - *
      -   * Optional. A list of catalog items to update/create. Recommended max of 10k
      -   * items.
      -   * 
      - * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getCatalogItemsOrBuilderList(); - /** - * - * - *
      -   * Optional. A list of catalog items to update/create. Recommended max of 10k
      -   * items.
      -   * 
      - * - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemsOrBuilder( - int index); -} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceOuterClass.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceOuterClass.java deleted file mode 100644 index 05f4a485..00000000 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceOuterClass.java +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/catalog_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public final class CatalogServiceOuterClass { - private CatalogServiceOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n?google/cloud/recommendationengine/v1be" - + "ta1/catalog_service.proto\022)google.cloud." - + "recommendationengine.v1beta1\032\034google/api" - + "/annotations.proto\032\027google/api/client.pr" - + "oto\032\037google/api/field_behavior.proto\032\031go" - + "ogle/api/resource.proto\0327google/cloud/re" - + "commendationengine/v1beta1/catalog.proto" - + "\0326google/cloud/recommendationengine/v1be" - + "ta1/import.proto\032Ngoogle/cloud/recommend" - + "ationengine/v1beta1/recommendationengine" - + "_resources.proto\032#google/longrunning/ope" - + "rations.proto\032\033google/protobuf/empty.pro" - + "to\032 google/protobuf/field_mask.proto\"\262\001\n" - + "\030CreateCatalogItemRequest\022C\n\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\n+recommendationengine.googleap" - + "is.com/Catalog\022Q\n\014catalog_item\030\002 \001(\01326.g" - + "oogle.cloud.recommendationengine.v1beta1" - + ".CatalogItemB\003\340A\002\"b\n\025GetCatalogItemReque" - + "st\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3recommendation" - + "engine.googleapis.com/CatalogItemPath\"\244\001" - + "\n\027ListCatalogItemsRequest\022C\n\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\n+recommendationengine.googleap" - + "is.com/Catalog\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027" - + "\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB" - + "\003\340A\001\"\202\001\n\030ListCatalogItemsResponse\022M\n\rcat" - + "alog_items\030\001 \003(\01326.google.cloud.recommen" - + "dationengine.v1beta1.CatalogItem\022\027\n\017next" - + "_page_token\030\002 \001(\t\"\351\001\n\030UpdateCatalogItemR" - + "equest\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3recommenda" - + "tionengine.googleapis.com/CatalogItemPat" - + "h\022Q\n\014catalog_item\030\002 \001(\01326.google.cloud.r" - + "ecommendationengine.v1beta1.CatalogItemB" - + "\003\340A\002\022/\n\013update_mask\030\003 \001(\0132\032.google.proto" - + "buf.FieldMask\"e\n\030DeleteCatalogItemReques" - + "t\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3recommendatione" - + "ngine.googleapis.com/CatalogItemPath2\226\r\n" - + "\016CatalogService\022\376\001\n\021CreateCatalogItem\022C." - + "google.cloud.recommendationengine.v1beta" - + "1.CreateCatalogItemRequest\0326.google.clou" - + "d.recommendationengine.v1beta1.CatalogIt" - + "em\"l\202\323\344\223\002P\"@/v1beta1/{parent=projects/*/" - + "locations/*/catalogs/*}/catalogItems:\014ca" - + "talog_item\332A\023parent,catalog_item\022\334\001\n\016Get" - + "CatalogItem\022@.google.cloud.recommendatio" - + "nengine.v1beta1.GetCatalogItemRequest\0326." - + "google.cloud.recommendationengine.v1beta" - + "1.CatalogItem\"P\202\323\344\223\002C\022A/v1beta1/{name=pr" - + "ojects/*/locations/*/catalogs/*/catalogI" - + "tems/**}\332A\004name\022\365\001\n\020ListCatalogItems\022B.g" - + "oogle.cloud.recommendationengine.v1beta1" - + ".ListCatalogItemsRequest\032C.google.cloud." - + "recommendationengine.v1beta1.ListCatalog" - + "ItemsResponse\"X\202\323\344\223\002B\022@/v1beta1/{parent=" - + "projects/*/locations/*/catalogs/*}/catal" - + "ogItems\332A\rparent,filter\022\211\002\n\021UpdateCatalo" - + "gItem\022C.google.cloud.recommendationengin" - + "e.v1beta1.UpdateCatalogItemRequest\0326.goo" - + "gle.cloud.recommendationengine.v1beta1.C" - + "atalogItem\"w\202\323\344\223\002Q2A/v1beta1/{name=proje" - + "cts/*/locations/*/catalogs/*/catalogItem" - + "s/**}:\014catalog_item\332A\035name,catalog_item," - + "update_mask\022\302\001\n\021DeleteCatalogItem\022C.goog" - + "le.cloud.recommendationengine.v1beta1.De" - + "leteCatalogItemRequest\032\026.google.protobuf" - + ".Empty\"P\202\323\344\223\002C*A/v1beta1/{name=projects/" - + "*/locations/*/catalogs/*/catalogItems/**" - + "}\332A\004name\022\201\003\n\022ImportCatalogItems\022D.google" - + ".cloud.recommendationengine.v1beta1.Impo" - + "rtCatalogItemsRequest\032\035.google.longrunni" - + "ng.Operation\"\205\002\202\323\344\223\002L\"G/v1beta1/{parent=" - + "projects/*/locations/*/catalogs/*}/catal" - + "ogItems:import:\001*\312A\200\001\nDgoogle.cloud.reco" - + "mmendationengine.v1beta1.ImportCatalogIt" - + "emsResponse\0228google.cloud.recommendation" - + "engine.v1beta1.ImportMetadata\332A,parent,r" - + "equest_id,input_config,errors_config\032W\312A" - + "#recommendationengine.googleapis.com\322A.h" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tformB\237\002\n-com.google.cloud.recommendatio" - + "nengine.v1beta1P\001Z]google.golang.org/gen" - + "proto/googleapis/cloud/recommendationeng" - + "ine/v1beta1;recommendationengine\242\002\005RECAI" - + "\252\002)Google.Cloud.RecommendationEngine.V1B" - + "eta1\312\002)Google\\Cloud\\RecommendationEngine" - + "\\V1beta1\352\002,Google::Cloud::Recommendation" - + "Engine::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.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.Import.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources - .getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor, - new java.lang.String[] { - "Parent", "CatalogItem", - }); - internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor, - new java.lang.String[] { - "CatalogItems", "NextPageToken", - }); - internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor, - new java.lang.String[] { - "Name", "CatalogItem", "UpdateMask", - }); - internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor, - new java.lang.String[] { - "Name", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.Import.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Common.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Common.java deleted file mode 100644 index 353207cb..00000000 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Common.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/common.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public final class Common { - private Common() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/recommendationengine/v1be" - + "ta1/common.proto\022)google.cloud.recommend" - + "ationengine.v1beta1\032\034google/api/annotati" - + "ons.proto\"\226\004\n\nFeatureMap\022l\n\024categorical_" - + "features\030\001 \003(\0132N.google.cloud.recommenda" - + "tionengine.v1beta1.FeatureMap.Categorica" - + "lFeaturesEntry\022h\n\022numerical_features\030\002 \003" - + "(\0132L.google.cloud.recommendationengine.v" - + "1beta1.FeatureMap.NumericalFeaturesEntry" - + "\032\033\n\nStringList\022\r\n\005value\030\001 \003(\t\032\032\n\tFloatLi" - + "st\022\r\n\005value\030\001 \003(\002\032|\n\030CategoricalFeatures" - + "Entry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132@.goog" - + "le.cloud.recommendationengine.v1beta1.Fe" - + "atureMap.StringList:\0028\001\032y\n\026NumericalFeat" - + "uresEntry\022\013\n\003key\030\001 \001(\t\022N\n\005value\030\002 \001(\0132?." - + "google.cloud.recommendationengine.v1beta" - + "1.FeatureMap.FloatList:\0028\001B\237\002\n-com.googl" - + "e.cloud.recommendationengine.v1beta1P\001Z]" - + "google.golang.org/genproto/googleapis/cl" - + "oud/recommendationengine/v1beta1;recomme" - + "ndationengine\242\002\005RECAI\252\002)Google.Cloud.Rec" - + "ommendationEngine.V1Beta1\312\002)Google\\Cloud" - + "\\RecommendationEngine\\V1beta1\352\002,Google::" - + "Cloud::RecommendationEngine::V1beta1b\006pr" - + "oto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor, - new java.lang.String[] { - "CategoricalFeatures", "NumericalFeatures", - }); - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor, - new java.lang.String[] { - "Value", - }); - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor, - new java.lang.String[] { - "Value", - }); - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequestOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequestOrBuilder.java deleted file mode 100644 index a5c70063..00000000 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/catalog_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public interface CreateCatalogItemRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
      -   * Required. The parent catalog resource name, such as
      -   * `projects/*/locations/global/catalogs/default_catalog`.
      -   * 
      - * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
      -   * Required. The parent catalog resource name, such as
      -   * `projects/*/locations/global/catalogs/default_catalog`.
      -   * 
      - * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
      -   * Required. The catalog item to create.
      -   * 
      - * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the catalogItem field is set. - */ - boolean hasCatalogItem(); - /** - * - * - *
      -   * Required. The catalog item to create.
      -   * 
      - * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The catalogItem. - */ - com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItem(); - /** - * - * - *
      -   * Required. The catalog item to create.
      -   * 
      - * - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemOrBuilder(); -} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequest.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequest.java deleted file mode 100644 index 5278b919..00000000 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequest.java +++ /dev/null @@ -1,1041 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -/** - * - * - *
      - * Request message for the `CreatePredictionApiKeyRegistration` method.
      - * 
      - * - * Protobuf type {@code - * google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest} - */ -public final class CreatePredictionApiKeyRegistrationRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) - CreatePredictionApiKeyRegistrationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreatePredictionApiKeyRegistrationRequest.newBuilder() to construct. - private CreatePredictionApiKeyRegistrationRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreatePredictionApiKeyRegistrationRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreatePredictionApiKeyRegistrationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreatePredictionApiKeyRegistrationRequest( - 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.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder - subBuilder = null; - if (predictionApiKeyRegistration_ != null) { - subBuilder = predictionApiKeyRegistration_.toBuilder(); - } - predictionApiKeyRegistration_ = - input.readMessage( - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(predictionApiKeyRegistration_); - predictionApiKeyRegistration_ = 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.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest - .class, - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest - .Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
      -   * Required. The parent resource path.
      -   * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      -   * 
      - * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
      -   * Required. The parent resource path.
      -   * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      -   * 
      - * - * - * 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 PREDICTION_API_KEY_REGISTRATION_FIELD_NUMBER = 2; - private com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - predictionApiKeyRegistration_; - /** - * - * - *
      -   * Required. The prediction API key registration.
      -   * 
      - * - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the predictionApiKeyRegistration field is set. - */ - @java.lang.Override - public boolean hasPredictionApiKeyRegistration() { - return predictionApiKeyRegistration_ != null; - } - /** - * - * - *
      -   * Required. The prediction API key registration.
      -   * 
      - * - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The predictionApiKeyRegistration. - */ - @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - getPredictionApiKeyRegistration() { - return predictionApiKeyRegistration_ == null - ? com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - .getDefaultInstance() - : predictionApiKeyRegistration_; - } - /** - * - * - *
      -   * Required. The prediction API key registration.
      -   * 
      - * - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder - getPredictionApiKeyRegistrationOrBuilder() { - return getPredictionApiKeyRegistration(); - } - - 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 (predictionApiKeyRegistration_ != null) { - output.writeMessage(2, getPredictionApiKeyRegistration()); - } - 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 (predictionApiKeyRegistration_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getPredictionApiKeyRegistration()); - } - 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.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest)) { - return super.equals(obj); - } - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest other = - (com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) - obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasPredictionApiKeyRegistration() != other.hasPredictionApiKeyRegistration()) return false; - if (hasPredictionApiKeyRegistration()) { - if (!getPredictionApiKeyRegistration().equals(other.getPredictionApiKeyRegistration())) - 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 (hasPredictionApiKeyRegistration()) { - hash = (37 * hash) + PREDICTION_API_KEY_REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getPredictionApiKeyRegistration().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest - 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 the `CreatePredictionApiKeyRegistration` method.
      -   * 
      - * - * Protobuf type {@code - * google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) - com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest.class, - com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest.Builder.class); - } - - // Construct using - // com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest.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 (predictionApiKeyRegistrationBuilder_ == null) { - predictionApiKeyRegistration_ = null; - } else { - predictionApiKeyRegistration_ = null; - predictionApiKeyRegistrationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService - .internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest - getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest - build() { - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest - buildPartial() { - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest - result = - new com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest(this); - result.parent_ = parent_; - if (predictionApiKeyRegistrationBuilder_ == null) { - result.predictionApiKeyRegistration_ = predictionApiKeyRegistration_; - } else { - result.predictionApiKeyRegistration_ = predictionApiKeyRegistrationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) { - return mergeFrom( - (com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest - other) { - if (other - == com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest - .getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasPredictionApiKeyRegistration()) { - mergePredictionApiKeyRegistration(other.getPredictionApiKeyRegistration()); - } - 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.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
      -     * Required. The parent resource path.
      -     * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      -     * 
      - * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
      -     * Required. The parent resource path.
      -     * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      -     * 
      - * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
      -     * Required. The parent resource path.
      -     * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      -     * 
      - * - * - * 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; - } - /** - * - * - *
      -     * Required. The parent resource path.
      -     * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      -     * 
      - * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
      -     * Required. The parent resource path.
      -     * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      -     * 
      - * - * - * 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.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - predictionApiKeyRegistration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> - predictionApiKeyRegistrationBuilder_; - /** - * - * - *
      -     * Required. The prediction API key registration.
      -     * 
      - * - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the predictionApiKeyRegistration field is set. - */ - public boolean hasPredictionApiKeyRegistration() { - return predictionApiKeyRegistrationBuilder_ != null || predictionApiKeyRegistration_ != null; - } - /** - * - * - *
      -     * Required. The prediction API key registration.
      -     * 
      - * - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The predictionApiKeyRegistration. - */ - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - getPredictionApiKeyRegistration() { - if (predictionApiKeyRegistrationBuilder_ == null) { - return predictionApiKeyRegistration_ == null - ? com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - .getDefaultInstance() - : predictionApiKeyRegistration_; - } else { - return predictionApiKeyRegistrationBuilder_.getMessage(); - } - } - /** - * - * - *
      -     * Required. The prediction API key registration.
      -     * 
      - * - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPredictionApiKeyRegistration( - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration value) { - if (predictionApiKeyRegistrationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - predictionApiKeyRegistration_ = value; - onChanged(); - } else { - predictionApiKeyRegistrationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
      -     * Required. The prediction API key registration.
      -     * 
      - * - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPredictionApiKeyRegistration( - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder - builderForValue) { - if (predictionApiKeyRegistrationBuilder_ == null) { - predictionApiKeyRegistration_ = builderForValue.build(); - onChanged(); - } else { - predictionApiKeyRegistrationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
      -     * Required. The prediction API key registration.
      -     * 
      - * - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergePredictionApiKeyRegistration( - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration value) { - if (predictionApiKeyRegistrationBuilder_ == null) { - if (predictionApiKeyRegistration_ != null) { - predictionApiKeyRegistration_ = - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.newBuilder( - predictionApiKeyRegistration_) - .mergeFrom(value) - .buildPartial(); - } else { - predictionApiKeyRegistration_ = value; - } - onChanged(); - } else { - predictionApiKeyRegistrationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
      -     * Required. The prediction API key registration.
      -     * 
      - * - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearPredictionApiKeyRegistration() { - if (predictionApiKeyRegistrationBuilder_ == null) { - predictionApiKeyRegistration_ = null; - onChanged(); - } else { - predictionApiKeyRegistration_ = null; - predictionApiKeyRegistrationBuilder_ = null; - } - - return this; - } - /** - * - * - *
      -     * Required. The prediction API key registration.
      -     * 
      - * - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder - getPredictionApiKeyRegistrationBuilder() { - - onChanged(); - return getPredictionApiKeyRegistrationFieldBuilder().getBuilder(); - } - /** - * - * - *
      -     * Required. The prediction API key registration.
      -     * 
      - * - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder - getPredictionApiKeyRegistrationOrBuilder() { - if (predictionApiKeyRegistrationBuilder_ != null) { - return predictionApiKeyRegistrationBuilder_.getMessageOrBuilder(); - } else { - return predictionApiKeyRegistration_ == null - ? com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - .getDefaultInstance() - : predictionApiKeyRegistration_; - } - } - /** - * - * - *
      -     * Required. The prediction API key registration.
      -     * 
      - * - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> - getPredictionApiKeyRegistrationFieldBuilder() { - if (predictionApiKeyRegistrationBuilder_ == null) { - predictionApiKeyRegistrationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, - com.google.cloud.recommendationengine.v1beta1 - .PredictionApiKeyRegistrationOrBuilder>( - getPredictionApiKeyRegistration(), getParentForChildren(), isClean()); - predictionApiKeyRegistration_ = null; - } - return predictionApiKeyRegistrationBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) - private static final com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest(); - } - - public static com.google.cloud.recommendationengine.v1beta1 - .CreatePredictionApiKeyRegistrationRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePredictionApiKeyRegistrationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreatePredictionApiKeyRegistrationRequest(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.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequestOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequestOrBuilder.java deleted file mode 100644 index 31dd7380..00000000 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequestOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public interface CreatePredictionApiKeyRegistrationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
      -   * Required. The parent resource path.
      -   * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      -   * 
      - * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
      -   * Required. The parent resource path.
      -   * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      -   * 
      - * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
      -   * Required. The prediction API key registration.
      -   * 
      - * - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the predictionApiKeyRegistration field is set. - */ - boolean hasPredictionApiKeyRegistration(); - /** - * - * - *
      -   * Required. The prediction API key registration.
      -   * 
      - * - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The predictionApiKeyRegistration. - */ - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - getPredictionApiKeyRegistration(); - /** - * - * - *
      -   * Required. The prediction API key registration.
      -   * 
      - * - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder - getPredictionApiKeyRegistrationOrBuilder(); -} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequestOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequestOrBuilder.java deleted file mode 100644 index 3c8ea470..00000000 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/catalog_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public interface DeleteCatalogItemRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
      -   * Required. Full resource name of catalog item, such as
      -   * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
      -   * 
      - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
      -   * Required. Full resource name of catalog item, such as
      -   * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
      -   * 
      - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequestOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequestOrBuilder.java deleted file mode 100644 index f658c5ec..00000000 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/catalog_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public interface GetCatalogItemRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
      -   * Required. Full resource name of catalog item, such as
      -   * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
      -   * 
      - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
      -   * Required. Full resource name of catalog item, such as
      -   * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
      -   * 
      - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Import.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Import.java deleted file mode 100644 index 75912287..00000000 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Import.java +++ /dev/null @@ -1,275 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/import.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public final class Import { - private Import() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/recommendationengine/v1be" - + "ta1/import.proto\022)google.cloud.recommend" - + "ationengine.v1beta1\032\037google/api/field_be" - + "havior.proto\032\031google/api/resource.proto\032" - + "7google/cloud/recommendationengine/v1bet" - + "a1/catalog.proto\032:google/cloud/recommend" - + "ationengine/v1beta1/user_event.proto\032Ngo" - + "ogle/cloud/recommendationengine/v1beta1/" - + "recommendationengine_resources.proto\032\037go" - + "ogle/protobuf/timestamp.proto\032\027google/rp" - + "c/status.proto\032\034google/api/annotations.p" - + "roto\"$\n\tGcsSource\022\027\n\ninput_uris\030\001 \003(\tB\003\340" - + "A\002\"i\n\023CatalogInlineSource\022R\n\rcatalog_ite" - + "ms\030\001 \003(\01326.google.cloud.recommendationen" - + "gine.v1beta1.CatalogItemB\003\340A\001\"g\n\025UserEve" - + "ntInlineSource\022N\n\013user_events\030\001 \003(\01324.go" - + "ogle.cloud.recommendationengine.v1beta1." - + "UserEventB\003\340A\001\"9\n\022ImportErrorsConfig\022\024\n\n" - + "gcs_prefix\030\001 \001(\tH\000B\r\n\013destination\"\247\002\n\031Im" - + "portCatalogItemsRequest\022C\n\006parent\030\001 \001(\tB" - + "3\340A\002\372A-\n+recommendationengine.googleapis" - + ".com/Catalog\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022Q\n" - + "\014input_config\030\003 \001(\01326.google.cloud.recom" - + "mendationengine.v1beta1.InputConfigB\003\340A\002" - + "\022Y\n\rerrors_config\030\004 \001(\0132=.google.cloud.r" - + "ecommendationengine.v1beta1.ImportErrors" - + "ConfigB\003\340A\001\"\250\002\n\027ImportUserEventsRequest\022" - + "F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.recommendatione" - + "ngine.googleapis.com/EventStore\022\027\n\nreque" - + "st_id\030\002 \001(\tB\003\340A\001\022Q\n\014input_config\030\003 \001(\01326" - + ".google.cloud.recommendationengine.v1bet" - + "a1.InputConfigB\003\340A\002\022Y\n\rerrors_config\030\004 \001" - + "(\0132=.google.cloud.recommendationengine.v" - + "1beta1.ImportErrorsConfigB\003\340A\001\"\252\002\n\013Input" - + "Config\022_\n\025catalog_inline_source\030\001 \001(\0132>." - + "google.cloud.recommendationengine.v1beta" - + "1.CatalogInlineSourceH\000\022J\n\ngcs_source\030\002 " - + "\001(\01324.google.cloud.recommendationengine." - + "v1beta1.GcsSourceH\000\022d\n\030user_event_inline" - + "_source\030\003 \001(\0132@.google.cloud.recommendat" - + "ionengine.v1beta1.UserEventInlineSourceH" - + "\000B\010\n\006source\"\314\001\n\016ImportMetadata\022\026\n\016operat" - + "ion_name\030\005 \001(\t\022\022\n\nrequest_id\030\003 \001(\t\022/\n\013cr" - + "eate_time\030\004 \001(\0132\032.google.protobuf.Timest" - + "amp\022\025\n\rsuccess_count\030\001 \001(\003\022\025\n\rfailure_co" - + "unt\030\002 \001(\003\022/\n\013update_time\030\006 \001(\0132\032.google." - + "protobuf.Timestamp\"\235\001\n\032ImportCatalogItem" - + "sResponse\022)\n\rerror_samples\030\001 \003(\0132\022.googl" - + "e.rpc.Status\022T\n\rerrors_config\030\002 \001(\0132=.go" - + "ogle.cloud.recommendationengine.v1beta1." - + "ImportErrorsConfig\"\366\001\n\030ImportUserEventsR" - + "esponse\022)\n\rerror_samples\030\001 \003(\0132\022.google." - + "rpc.Status\022T\n\rerrors_config\030\002 \001(\0132=.goog" - + "le.cloud.recommendationengine.v1beta1.Im" - + "portErrorsConfig\022Y\n\016import_summary\030\003 \001(\013" - + "2A.google.cloud.recommendationengine.v1b" - + "eta1.UserEventImportSummary\"T\n\026UserEvent" - + "ImportSummary\022\033\n\023joined_events_count\030\001 \001" - + "(\003\022\035\n\025unjoined_events_count\030\002 \001(\003B\237\002\n-co" - + "m.google.cloud.recommendationengine.v1be" - + "ta1P\001Z]google.golang.org/genproto/google" - + "apis/cloud/recommendationengine/v1beta1;" - + "recommendationengine\242\002\005RECAI\252\002)Google.Cl" - + "oud.RecommendationEngine.V1Beta1\312\002)Googl" - + "e\\Cloud\\RecommendationEngine\\V1beta1\352\002,G" - + "oogle::Cloud::RecommendationEngine::V1be" - + "ta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources - .getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor, - new java.lang.String[] { - "InputUris", - }); - internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor, - new java.lang.String[] { - "CatalogItems", - }); - internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor, - new java.lang.String[] { - "UserEvents", - }); - internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor, - new java.lang.String[] { - "GcsPrefix", "Destination", - }); - internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor, - new java.lang.String[] { - "Parent", "RequestId", "InputConfig", "ErrorsConfig", - }); - internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor, - new java.lang.String[] { - "Parent", "RequestId", "InputConfig", "ErrorsConfig", - }); - internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor, - new java.lang.String[] { - "CatalogInlineSource", "GcsSource", "UserEventInlineSource", "Source", - }); - internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor, - new java.lang.String[] { - "OperationName", - "RequestId", - "CreateTime", - "SuccessCount", - "FailureCount", - "UpdateTime", - }); - internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor, - new java.lang.String[] { - "ErrorSamples", "ErrorsConfig", - }); - internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor, - new java.lang.String[] { - "ErrorSamples", "ErrorsConfig", "ImportSummary", - }); - internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor, - new java.lang.String[] { - "JoinedEventsCount", "UnjoinedEventsCount", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponseOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponseOrBuilder.java deleted file mode 100644 index b84893ce..00000000 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponseOrBuilder.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public interface ListPredictionApiKeyRegistrationsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
      -   * The list of registered API keys.
      -   * 
      - * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * - */ - java.util.List - getPredictionApiKeyRegistrationsList(); - /** - * - * - *
      -   * The list of registered API keys.
      -   * 
      - * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * - */ - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration - getPredictionApiKeyRegistrations(int index); - /** - * - * - *
      -   * The list of registered API keys.
      -   * 
      - * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * - */ - int getPredictionApiKeyRegistrationsCount(); - /** - * - * - *
      -   * The list of registered API keys.
      -   * 
      - * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * - */ - java.util.List< - ? extends - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> - getPredictionApiKeyRegistrationsOrBuilderList(); - /** - * - * - *
      -   * The list of registered API keys.
      -   * 
      - * - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - * - */ - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder - getPredictionApiKeyRegistrationsOrBuilder(int index); - - /** - * - * - *
      -   * If empty, the list is complete. If nonempty, pass the token to the next
      -   * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
      -   * 
      - * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
      -   * If empty, the list is complete. If nonempty, pass the token to the next
      -   * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
      -   * 
      - * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationOrBuilder.java deleted file mode 100644 index b79e9622..00000000 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public interface PredictionApiKeyRegistrationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
      -   * The API key.
      -   * 
      - * - * string api_key = 1; - * - * @return The apiKey. - */ - java.lang.String getApiKey(); - /** - * - * - *
      -   * The API key.
      -   * 
      - * - * string api_key = 1; - * - * @return The bytes for apiKey. - */ - com.google.protobuf.ByteString getApiKeyBytes(); -} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApikeyRegistryService.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApikeyRegistryService.java deleted file mode 100644 index d2d764a4..00000000 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApikeyRegistryService.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public final class PredictionApikeyRegistryService { - private PredictionApikeyRegistryService() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nRgoogle/cloud/recommendationengine/v1be" - + "ta1/prediction_apikey_registry_service.p" - + "roto\022)google.cloud.recommendationengine." - + "v1beta1\032\034google/api/annotations.proto\032\037g" - + "oogle/api/field_behavior.proto\032\031google/a" - + "pi/resource.proto\032\033google/protobuf/empty" - + ".proto\032\027google/api/client.proto\032Ngoogle/" - + "cloud/recommendationengine/v1beta1/recom" - + "mendationengine_resources.proto\"/\n\034Predi" - + "ctionApiKeyRegistration\022\017\n\007api_key\030\001 \001(\t" - + "\"\352\001\n)CreatePredictionApiKeyRegistrationR" - + "equest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.recommen" - + "dationengine.googleapis.com/EventStore\022u" - + "\n\037prediction_api_key_registration\030\002 \001(\0132" - + "G.google.cloud.recommendationengine.v1be" - + "ta1.PredictionApiKeyRegistrationB\003\340A\002\"\243\001" - + "\n(ListPredictionApiKeyRegistrationsReque" - + "st\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.recommendati" - + "onengine.googleapis.com/EventStore\022\026\n\tpa" - + "ge_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003" - + "\340A\001\"\267\001\n)ListPredictionApiKeyRegistration" - + "sResponse\022q\n prediction_api_key_registra" - + "tions\030\001 \003(\0132G.google.cloud.recommendatio" - + "nengine.v1beta1.PredictionApiKeyRegistra" - + "tion\022\027\n\017next_page_token\030\002 \001(\t\"\203\001\n)Delete" - + "PredictionApiKeyRegistrationRequest\022V\n\004n" - + "ame\030\001 \001(\tBH\340A\002\372AB\n@recommendationengine." - + "googleapis.com/PredictionApiKeyRegistrat" - + "ion2\227\010\n\030PredictionApiKeyRegistry\022\331\002\n\"Cre" - + "atePredictionApiKeyRegistration\022T.google" - + ".cloud.recommendationengine.v1beta1.Crea" - + "tePredictionApiKeyRegistrationRequest\032G." - + "google.cloud.recommendationengine.v1beta" - + "1.PredictionApiKeyRegistration\"\223\001\202\323\344\223\002d\"" - + "_/v1beta1/{parent=projects/*/locations/*" - + "/catalogs/*/eventStores/*}/predictionApi" - + "KeyRegistrations:\001*\332A&parent,prediction_" - + "api_key_registration\022\300\002\n!ListPredictionA" - + "piKeyRegistrations\022S.google.cloud.recomm" - + "endationengine.v1beta1.ListPredictionApi" - + "KeyRegistrationsRequest\032T.google.cloud.r" - + "ecommendationengine.v1beta1.ListPredicti" - + "onApiKeyRegistrationsResponse\"p\202\323\344\223\002a\022_/" - + "v1beta1/{parent=projects/*/locations/*/c" - + "atalogs/*/eventStores/*}/predictionApiKe" - + "yRegistrations\332A\006parent\022\202\002\n\"DeletePredic" - + "tionApiKeyRegistration\022T.google.cloud.re" - + "commendationengine.v1beta1.DeletePredict" - + "ionApiKeyRegistrationRequest\032\026.google.pr" - + "otobuf.Empty\"n\202\323\344\223\002a*_/v1beta1/{name=pro" - + "jects/*/locations/*/catalogs/*/eventStor" - + "es/*/predictionApiKeyRegistrations/*}\332A\004" - + "name\032W\312A#recommendationengine.googleapis" - + ".com\322A.https://www.googleapis.com/auth/c" - + "loud-platformB\237\002\n-com.google.cloud.recom" - + "mendationengine.v1beta1P\001Z]google.golang" - + ".org/genproto/googleapis/cloud/recommend" - + "ationengine/v1beta1;recommendationengine" - + "\242\002\005RECAI\252\002)Google.Cloud.RecommendationEn" - + "gine.V1Beta1\312\002)Google\\Cloud\\Recommendati" - + "onEngine\\V1beta1\352\002,Google::Cloud::Recomm" - + "endationEngine::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources - .getDescriptor(), - }); - internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor, - new java.lang.String[] { - "ApiKey", - }); - internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor, - new java.lang.String[] { - "Parent", "PredictionApiKeyRegistration", - }); - internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor, - new java.lang.String[] { - "PredictionApiKeyRegistrations", "NextPageToken", - }); - internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceOuterClass.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceOuterClass.java deleted file mode 100644 index 2f9874fd..00000000 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceOuterClass.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/prediction_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public final class PredictionServiceOuterClass { - private PredictionServiceOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nBgoogle/cloud/recommendationengine/v1be" - + "ta1/prediction_service.proto\022)google.clo" - + "ud.recommendationengine.v1beta1\032\034google/" - + "api/annotations.proto\032\037google/api/field_" - + "behavior.proto\032\031google/api/resource.prot" - + "o\032:google/cloud/recommendationengine/v1b" - + "eta1/user_event.proto\032\034google/protobuf/s" - + "truct.proto\032\027google/api/client.proto\"\256\004\n" - + "\016PredictRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-r" - + "ecommendationengine.googleapis.com/Place" - + "ment\022M\n\nuser_event\030\002 \001(\01324.google.cloud." - + "recommendationengine.v1beta1.UserEventB\003" - + "\340A\002\022\026\n\tpage_size\030\007 \001(\005B\003\340A\001\022\027\n\npage_toke" - + "n\030\010 \001(\tB\003\340A\001\022\023\n\006filter\030\003 \001(\tB\003\340A\001\022\024\n\007dry" - + "_run\030\004 \001(\010B\003\340A\001\022Z\n\006params\030\006 \003(\0132E.google" - + ".cloud.recommendationengine.v1beta1.Pred" - + "ictRequest.ParamsEntryB\003\340A\001\022Z\n\006labels\030\t " - + "\003(\0132E.google.cloud.recommendationengine." - + "v1beta1.PredictRequest.LabelsEntryB\003\340A\001\032" - + "E\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001" - + "(\0132\026.google.protobuf.Value:\0028\001\032-\n\013Labels" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\342\004" - + "\n\017PredictResponse\022\\\n\007results\030\001 \003(\0132K.goo" - + "gle.cloud.recommendationengine.v1beta1.P" - + "redictResponse.PredictionResult\022\034\n\024recom" - + "mendation_token\030\002 \001(\t\022 \n\030items_missing_i" - + "n_catalog\030\003 \003(\t\022\017\n\007dry_run\030\004 \001(\010\022Z\n\010meta" - + "data\030\005 \003(\0132H.google.cloud.recommendation" - + "engine.v1beta1.PredictResponse.MetadataE" - + "ntry\022\027\n\017next_page_token\030\006 \001(\t\032\341\001\n\020Predic" - + "tionResult\022\n\n\002id\030\001 \001(\t\022t\n\ritem_metadata\030" - + "\002 \003(\0132].google.cloud.recommendationengin" - + "e.v1beta1.PredictResponse.PredictionResu" - + "lt.ItemMetadataEntry\032K\n\021ItemMetadataEntr" - + "y\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.p" - + "rotobuf.Value:\0028\001\032G\n\rMetadataEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf" - + ".Value:\0028\0012\342\002\n\021PredictionService\022\363\001\n\007Pre" - + "dict\0229.google.cloud.recommendationengine" - + ".v1beta1.PredictRequest\032:.google.cloud.r" - + "ecommendationengine.v1beta1.PredictRespo" - + "nse\"q\202\323\344\223\002Y\"T/v1beta1/{name=projects/*/l" - + "ocations/*/catalogs/*/eventStores/*/plac" - + "ements/*}:predict:\001*\332A\017name,user_event\032W" - + "\312A#recommendationengine.googleapis.com\322A" - + ".https://www.googleapis.com/auth/cloud-p" - + "latformB\237\002\n-com.google.cloud.recommendat" - + "ionengine.v1beta1P\001Z]google.golang.org/g" - + "enproto/googleapis/cloud/recommendatione" - + "ngine/v1beta1;recommendationengine\242\002\005REC" - + "AI\252\002)Google.Cloud.RecommendationEngine.V" - + "1Beta1\312\002)Google\\Cloud\\RecommendationEngi" - + "ne\\V1beta1\352\002,Google::Cloud::Recommendati" - + "onEngine::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }); - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor, - new java.lang.String[] { - "Name", "UserEvent", "PageSize", "PageToken", "Filter", "DryRun", "Params", "Labels", - }); - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor, - new java.lang.String[] { - "Results", - "RecommendationToken", - "ItemsMissingInCatalog", - "DryRun", - "Metadata", - "NextPageToken", - }); - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor, - new java.lang.String[] { - "Id", "ItemMetadata", - }); - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/RecommendationengineResources.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/RecommendationengineResources.java deleted file mode 100644 index 5bbf66e8..00000000 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/RecommendationengineResources.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public final class RecommendationengineResources { - private RecommendationengineResources() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nNgoogle/cloud/recommendationengine/v1be" - + "ta1/recommendationengine_resources.proto" - + "\022)google.cloud.recommendationengine.v1be" - + "ta1\032\031google/api/resource.protoB\253\010\n-com.g" - + "oogle.cloud.recommendationengine.v1beta1" - + "P\001Z]google.golang.org/genproto/googleapi" - + "s/cloud/recommendationengine/v1beta1;rec" - + "ommendationengine\242\002\005RECAI\252\002)Google.Cloud" - + ".RecommendationEngine.V1Beta1\312\002)Google\\C" - + "loud\\RecommendationEngine\\V1beta1\352\002,Goog" - + "le::Cloud::RecommendationEngine::V1beta1" - + "\352Ai\n+recommendationengine.googleapis.com" - + "/Catalog\022:projects/{project}/locations/{" - + "location}/catalogs/{catalog}\352A\225\001\n3recomm" - + "endationengine.googleapis.com/CatalogIte" - + "mPath\022^projects/{project}/locations/{loc" - + "ation}/catalogs/{catalog}/catalogItems/{" - + "catalog_item_path=**}\352A\206\001\n.recommendatio" - + "nengine.googleapis.com/EventStore\022Tproje" - + "cts/{project}/locations/{location}/catal" - + "ogs/{catalog}/eventStores/{event_store}\352" - + "A\331\001\n@recommendationengine.googleapis.com" - + "/PredictionApiKeyRegistration\022\224\001projects" - + "/{project}/locations/{location}/catalogs" - + "/{catalog}/eventStores/{event_store}/pre" - + "dictionApiKeyRegistrations/{prediction_a" - + "pi_key_registration}\352A\234\001\n-recommendation" - + "engine.googleapis.com/Placement\022kproject" - + "s/{project}/locations/{location}/catalog" - + "s/{catalog}/eventStores/{event_store}/pl" - + "acements/{placement}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resourceDefinition); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSourceOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSourceOrBuilder.java deleted file mode 100644 index 014044fd..00000000 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSourceOrBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/import.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public interface UserEventInlineSourceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.UserEventInlineSource) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
      -   * Optional. A list of user events to import. Recommended max of 10k items.
      -   * 
      - * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List getUserEventsList(); - /** - * - * - *
      -   * Optional. A list of user events to import. Recommended max of 10k items.
      -   * 
      - * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvents(int index); - /** - * - * - *
      -   * Optional. A list of user events to import. Recommended max of 10k items.
      -   * 
      - * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getUserEventsCount(); - /** - * - * - *
      -   * Optional. A list of user events to import. Recommended max of 10k items.
      -   * 
      - * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getUserEventsOrBuilderList(); - /** - * - * - *
      -   * Optional. A list of user events to import. Recommended max of 10k items.
      -   * 
      - * - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventsOrBuilder( - int index); -} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOuterClass.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOuterClass.java deleted file mode 100644 index c256d076..00000000 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOuterClass.java +++ /dev/null @@ -1,251 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/user_event.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public final class UserEventOuterClass { - private UserEventOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n:google/cloud/recommendationengine/v1be" - + "ta1/user_event.proto\022)google.cloud.recom" - + "mendationengine.v1beta1\032\037google/api/fiel" - + "d_behavior.proto\0327google/cloud/recommend" - + "ationengine/v1beta1/catalog.proto\0326googl" - + "e/cloud/recommendationengine/v1beta1/com" - + "mon.proto\032\037google/protobuf/timestamp.pro" - + "to\032\034google/api/annotations.proto\"\222\004\n\tUse" - + "rEvent\022\027\n\nevent_type\030\001 \001(\tB\003\340A\002\022K\n\tuser_" - + "info\030\002 \001(\01323.google.cloud.recommendation" - + "engine.v1beta1.UserInfoB\003\340A\002\022Q\n\014event_de" - + "tail\030\003 \001(\01326.google.cloud.recommendation" - + "engine.v1beta1.EventDetailB\003\340A\001\022`\n\024produ" - + "ct_event_detail\030\004 \001(\0132=.google.cloud.rec" - + "ommendationengine.v1beta1.ProductEventDe" - + "tailB\003\340A\001\0223\n\nevent_time\030\005 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\001\022[\n\014event_source\030\006" - + " \001(\0162@.google.cloud.recommendationengine" - + ".v1beta1.UserEvent.EventSourceB\003\340A\001\"X\n\013E" - + "ventSource\022\034\n\030EVENT_SOURCE_UNSPECIFIED\020\000" - + "\022\n\n\006AUTOML\020\001\022\r\n\tECOMMERCE\020\002\022\020\n\014BATCH_UPL" - + "OAD\020\003\"\215\001\n\010UserInfo\022\027\n\nvisitor_id\030\001 \001(\tB\003" - + "\340A\002\022\024\n\007user_id\030\002 \001(\tB\003\340A\001\022\027\n\nip_address\030" - + "\003 \001(\tB\003\340A\001\022\027\n\nuser_agent\030\004 \001(\tB\003\340A\001\022 \n\023d" - + "irect_user_request\030\005 \001(\010B\003\340A\001\"\353\001\n\013EventD" - + "etail\022\020\n\003uri\030\001 \001(\tB\003\340A\001\022\031\n\014referrer_uri\030" - + "\006 \001(\tB\003\340A\001\022\031\n\014page_view_id\030\002 \001(\tB\003\340A\001\022\033\n" - + "\016experiment_ids\030\003 \003(\tB\003\340A\001\022!\n\024recommenda" - + "tion_token\030\004 \001(\tB\003\340A\001\022T\n\020event_attribute" - + "s\030\005 \001(\01325.google.cloud.recommendationeng" - + "ine.v1beta1.FeatureMapB\003\340A\001\"\352\002\n\022ProductE" - + "ventDetail\022\024\n\014search_query\030\001 \001(\t\022a\n\017page" - + "_categories\030\002 \003(\0132H.google.cloud.recomme" - + "ndationengine.v1beta1.CatalogItem.Catego" - + "ryHierarchy\022Q\n\017product_details\030\003 \003(\01328.g" - + "oogle.cloud.recommendationengine.v1beta1" - + ".ProductDetail\022\017\n\007list_id\030\004 \001(\t\022\024\n\007cart_" - + "id\030\005 \001(\tB\003\340A\001\022a\n\024purchase_transaction\030\006 " - + "\001(\0132>.google.cloud.recommendationengine." - + "v1beta1.PurchaseTransactionB\003\340A\001\"\362\002\n\023Pur" - + "chaseTransaction\022\017\n\002id\030\001 \001(\tB\003\340A\001\022\024\n\007rev" - + "enue\030\002 \001(\002B\003\340A\002\022]\n\005taxes\030\003 \003(\0132I.google." - + "cloud.recommendationengine.v1beta1.Purch" - + "aseTransaction.TaxesEntryB\003\340A\001\022]\n\005costs\030" - + "\004 \003(\0132I.google.cloud.recommendationengin" - + "e.v1beta1.PurchaseTransaction.CostsEntry" - + "B\003\340A\001\022\032\n\rcurrency_code\030\006 \001(\tB\003\340A\002\032,\n\nTax" - + "esEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\002:\0028\001\032" - + ",\n\nCostsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\002:\0028\001\"\346\002\n\rProductDetail\022\017\n\002id\030\001 \001(\tB\003\340A\002" - + "\022\032\n\rcurrency_code\030\002 \001(\tB\003\340A\001\022\033\n\016original" - + "_price\030\003 \001(\002B\003\340A\001\022\032\n\rdisplay_price\030\004 \001(\002" - + "B\003\340A\001\022b\n\013stock_state\030\005 \001(\0162H.google.clou" - + "d.recommendationengine.v1beta1.ProductCa" - + "talogItem.StockStateB\003\340A\001\022\025\n\010quantity\030\006 " - + "\001(\005B\003\340A\001\022\037\n\022available_quantity\030\007 \001(\005B\003\340A" - + "\001\022S\n\017item_attributes\030\010 \001(\01325.google.clou" - + "d.recommendationengine.v1beta1.FeatureMa" - + "pB\003\340A\001B\237\002\n-com.google.cloud.recommendati" - + "onengine.v1beta1P\001Z]google.golang.org/ge" - + "nproto/googleapis/cloud/recommendationen" - + "gine/v1beta1;recommendationengine\242\002\005RECA" - + "I\252\002)Google.Cloud.RecommendationEngine.V1" - + "Beta1\312\002)Google\\Cloud\\RecommendationEngin" - + "e\\V1beta1\352\002,Google::Cloud::Recommendatio" - + "nEngine::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.Common.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor, - new java.lang.String[] { - "EventType", - "UserInfo", - "EventDetail", - "ProductEventDetail", - "EventTime", - "EventSource", - }); - internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor, - new java.lang.String[] { - "VisitorId", "UserId", "IpAddress", "UserAgent", "DirectUserRequest", - }); - internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor, - new java.lang.String[] { - "Uri", - "ReferrerUri", - "PageViewId", - "ExperimentIds", - "RecommendationToken", - "EventAttributes", - }); - internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor, - new java.lang.String[] { - "SearchQuery", - "PageCategories", - "ProductDetails", - "ListId", - "CartId", - "PurchaseTransaction", - }); - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor, - new java.lang.String[] { - "Id", "Revenue", "Taxes", "Costs", "CurrencyCode", - }); - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor, - new java.lang.String[] { - "Id", - "CurrencyCode", - "OriginalPrice", - "DisplayPrice", - "StockState", - "Quantity", - "AvailableQuantity", - "ItemAttributes", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.Common.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceOuterClass.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceOuterClass.java deleted file mode 100644 index 0240228f..00000000 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceOuterClass.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/user_event_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public final class UserEventServiceOuterClass { - private UserEventServiceOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nBgoogle/cloud/recommendationengine/v1be" - + "ta1/user_event_service.proto\022)google.clo" - + "ud.recommendationengine.v1beta1\032\034google/" - + "api/annotations.proto\032\037google/api/field_" - + "behavior.proto\032\031google/api/httpbody.prot" - + "o\032\031google/api/resource.proto\0326google/clo" - + "ud/recommendationengine/v1beta1/import.p" - + "roto\032:google/cloud/recommendationengine/" - + "v1beta1/user_event.proto\032#google/longrun" - + "ning/operations.proto\032\037google/protobuf/t" - + "imestamp.proto\032\026google/type/date.proto\032\027" - + "google/api/client.proto\"\211\001\n\026PurgeUserEve" - + "ntsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.reco" - + "mmendationengine.googleapis.com/EventSto" - + "re\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\022\n\005force\030\003 \001(\010B\003" - + "\340A\001\"b\n\027PurgeUserEventsMetadata\022\026\n\016operat" - + "ion_name\030\001 \001(\t\022/\n\013create_time\030\002 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\"\210\001\n\027PurgeUserEve" - + "ntsResponse\022\033\n\023purged_events_count\030\001 \001(\003" - + "\022P\n\022user_events_sample\030\002 \003(\01324.google.cl" - + "oud.recommendationengine.v1beta1.UserEve" - + "nt\"\256\001\n\025WriteUserEventRequest\022F\n\006parent\030\001" - + " \001(\tB6\340A\002\372A0\n.recommendationengine.googl" - + "eapis.com/EventStore\022M\n\nuser_event\030\002 \001(\013" - + "24.google.cloud.recommendationengine.v1b" - + "eta1.UserEventB\003\340A\002\"\236\001\n\027CollectUserEvent" - + "Request\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.recomme" - + "ndationengine.googleapis.com/EventStore\022" - + "\027\n\nuser_event\030\002 \001(\tB\003\340A\002\022\020\n\003uri\030\003 \001(\tB\003\340" - + "A\001\022\020\n\003ets\030\004 \001(\003B\003\340A\001\"\245\001\n\025ListUserEventsR" - + "equest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.recommen" - + "dationengine.googleapis.com/EventStore\022\026" - + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" - + "(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\"|\n\026ListUser" - + "EventsResponse\022I\n\013user_events\030\001 \003(\01324.go" - + "ogle.cloud.recommendationengine.v1beta1." - + "UserEvent\022\027\n\017next_page_token\030\002 \001(\t2\330\014\n\020U" - + "serEventService\022\204\002\n\016WriteUserEvent\022@.goo" - + "gle.cloud.recommendationengine.v1beta1.W" - + "riteUserEventRequest\0324.google.cloud.reco" - + "mmendationengine.v1beta1.UserEvent\"z\202\323\344\223" - + "\002`\"R/v1beta1/{parent=projects/*/location" - + "s/*/catalogs/*/eventStores/*}/userEvents" - + ":write:\nuser_event\332A\021parent,user_event\022\346" - + "\001\n\020CollectUserEvent\022B.google.cloud.recom" - + "mendationengine.v1beta1.CollectUserEvent" - + "Request\032\024.google.api.HttpBody\"x\202\323\344\223\002V\022T/" - + "v1beta1/{parent=projects/*/locations/*/c" - + "atalogs/*/eventStores/*}/userEvents:coll" - + "ect\332A\031parent,user_event,uri,ets\022\373\001\n\016List" - + "UserEvents\022@.google.cloud.recommendation" - + "engine.v1beta1.ListUserEventsRequest\032A.g" - + "oogle.cloud.recommendationengine.v1beta1" - + ".ListUserEventsResponse\"d\202\323\344\223\002N\022L/v1beta" - + "1/{parent=projects/*/locations/*/catalog" - + "s/*/eventStores/*}/userEvents\332A\rparent,f" - + "ilter\022\363\002\n\017PurgeUserEvents\022A.google.cloud" - + ".recommendationengine.v1beta1.PurgeUserE" - + "ventsRequest\032\035.google.longrunning.Operat" - + "ion\"\375\001\202\323\344\223\002W\"R/v1beta1/{parent=projects/" - + "*/locations/*/catalogs/*/eventStores/*}/" - + "userEvents:purge:\001*\312A\206\001\nAgoogle.cloud.re" - + "commendationengine.v1beta1.PurgeUserEven" - + "tsResponse\022Agoogle.cloud.recommendatione" - + "ngine.v1beta1.PurgeUserEventsMetadata\332A\023" - + "parent,filter,force\022\206\003\n\020ImportUserEvents" - + "\022B.google.cloud.recommendationengine.v1b" - + "eta1.ImportUserEventsRequest\032\035.google.lo" - + "ngrunning.Operation\"\216\002\202\323\344\223\002X\"S/v1beta1/{" - + "parent=projects/*/locations/*/catalogs/*" - + "/eventStores/*}/userEvents:import:\001*\312A~\n" - + "Bgoogle.cloud.recommendationengine.v1bet" - + "a1.ImportUserEventsResponse\0228google.clou" - + "d.recommendationengine.v1beta1.ImportMet" - + "adata\332A,parent,request_id,input_config,e" - + "rrors_config\032W\312A#recommendationengine.go" - + "ogleapis.com\322A.https://www.googleapis.co" - + "m/auth/cloud-platformB\237\002\n-com.google.clo" - + "ud.recommendationengine.v1beta1P\001Z]googl" - + "e.golang.org/genproto/googleapis/cloud/r" - + "ecommendationengine/v1beta1;recommendati" - + "onengine\242\002\005RECAI\252\002)Google.Cloud.Recommen" - + "dationEngine.V1Beta1\312\002)Google\\Cloud\\Reco" - + "mmendationEngine\\V1beta1\352\002,Google::Cloud" - + "::RecommendationEngine::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.HttpBodyProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.Import.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.type.DateProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }); - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "Force", - }); - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor, - new java.lang.String[] { - "OperationName", "CreateTime", - }); - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor, - new java.lang.String[] { - "PurgedEventsCount", "UserEventsSample", - }); - internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor, - new java.lang.String[] { - "Parent", "UserEvent", - }); - internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor, - new java.lang.String[] { - "Parent", "UserEvent", "Uri", "Ets", - }); - internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor, - new java.lang.String[] { - "UserEvents", "NextPageToken", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - 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.FieldBehaviorProto.getDescriptor(); - com.google.api.HttpBodyProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.Import.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.type.DateProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequestOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequestOrBuilder.java deleted file mode 100644 index ee85dcc2..00000000 --- a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/user_event_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public interface WriteUserEventRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
      -   * Required. The parent eventStore resource name, such as
      -   * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      -   * 
      - * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
      -   * Required. The parent eventStore resource name, such as
      -   * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
      -   * 
      - * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
      -   * Required. User event to write.
      -   * 
      - * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the userEvent field is set. - */ - boolean hasUserEvent(); - /** - * - * - *
      -   * Required. User event to write.
      -   * 
      - * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The userEvent. - */ - com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvent(); - /** - * - * - *
      -   * Required. User event to write.
      -   * 
      - * - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventOrBuilder(); -} From ab79e0285f229a5a5e606deb973cdb61def48015 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:13:41 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../v1beta1/CatalogServiceClient.java | 16 +- .../v1beta1/CatalogServiceSettings.java | 7 +- .../PredictionApiKeyRegistryClient.java | 36 +- .../PredictionApiKeyRegistrySettings.java | 13 +- .../v1beta1/PredictionServiceClient.java | 32 +- .../v1beta1/PredictionServiceSettings.java | 7 +- .../v1beta1/UserEventServiceClient.java | 36 +- .../v1beta1/UserEventServiceSettings.java | 7 +- .../v1beta1/gapic_metadata.json | 0 .../v1beta1/package-info.java | 0 .../v1beta1/stub/CatalogServiceStub.java | 0 .../stub/CatalogServiceStubSettings.java | 6 +- .../GrpcCatalogServiceCallableFactory.java | 0 .../v1beta1/stub/GrpcCatalogServiceStub.java | 1 - ...edictionApiKeyRegistryCallableFactory.java | 0 .../GrpcPredictionApiKeyRegistryStub.java | 1 - .../GrpcPredictionServiceCallableFactory.java | 0 .../stub/GrpcPredictionServiceStub.java | 1 - .../GrpcUserEventServiceCallableFactory.java | 0 .../stub/GrpcUserEventServiceStub.java | 1 - ...HttpJsonCatalogServiceCallableFactory.java | 0 .../stub/HttpJsonCatalogServiceStub.java | 1 - ...edictionApiKeyRegistryCallableFactory.java | 0 .../HttpJsonPredictionApiKeyRegistryStub.java | 0 ...pJsonPredictionServiceCallableFactory.java | 0 .../stub/HttpJsonPredictionServiceStub.java | 0 ...tpJsonUserEventServiceCallableFactory.java | 0 .../stub/HttpJsonUserEventServiceStub.java | 1 - .../stub/PredictionApiKeyRegistryStub.java | 0 .../PredictionApiKeyRegistryStubSettings.java | 33 +- .../v1beta1/stub/PredictionServiceStub.java | 0 .../stub/PredictionServiceStubSettings.java | 6 +- .../v1beta1/stub/UserEventServiceStub.java | 0 .../stub/UserEventServiceStubSettings.java | 6 +- .../CatalogServiceClientHttpJsonTest.java | 0 .../v1beta1/CatalogServiceClientTest.java | 0 .../v1beta1/MockCatalogService.java | 0 .../v1beta1/MockCatalogServiceImpl.java | 0 .../v1beta1/MockPredictionApiKeyRegistry.java | 0 .../MockPredictionApiKeyRegistryImpl.java | 0 .../v1beta1/MockPredictionService.java | 0 .../v1beta1/MockPredictionServiceImpl.java | 0 .../v1beta1/MockUserEventService.java | 0 .../v1beta1/MockUserEventServiceImpl.java | 0 ...ctionApiKeyRegistryClientHttpJsonTest.java | 0 .../PredictionApiKeyRegistryClientTest.java | 0 .../PredictionServiceClientHttpJsonTest.java | 0 .../v1beta1/PredictionServiceClientTest.java | 0 .../UserEventServiceClientHttpJsonTest.java | 0 .../v1beta1/UserEventServiceClientTest.java | 0 .../v1beta1/CatalogServiceGrpc.java | 990 +++++++ .../v1beta1/PredictionApiKeyRegistryGrpc.java | 699 +++++ .../v1beta1/PredictionServiceGrpc.java | 223 +- .../v1beta1/UserEventServiceGrpc.java | 883 ++++++ .../v1beta1/CatalogServiceGrpc.java | 753 ----- .../v1beta1/PredictionApiKeyRegistryGrpc.java | 495 ---- .../v1beta1/UserEventServiceGrpc.java | 691 ----- .../recommendationengine/v1beta1/Catalog.java | 175 -- .../v1beta1/CatalogInlineSourceOrBuilder.java | 58 - .../v1beta1/CatalogServiceOuterClass.java | 217 -- .../recommendationengine/v1beta1/Common.java | 116 - .../CreateCatalogItemRequestOrBuilder.java | 58 - ...tePredictionApiKeyRegistrationRequest.java | 838 ------ ...ionApiKeyRegistrationRequestOrBuilder.java | 58 - .../DeleteCatalogItemRequestOrBuilder.java | 31 - .../GetCatalogItemRequestOrBuilder.java | 31 - .../recommendationengine/v1beta1/Import.java | 244 -- ...nApiKeyRegistrationsResponseOrBuilder.java | 75 - ...PredictionApiKeyRegistrationOrBuilder.java | 29 - .../PredictionApikeyRegistryService.java | 173 -- .../v1beta1/PredictionServiceOuterClass.java | 187 -- .../RecommendationengineResources.java | 72 - .../UserEventInlineSourceOrBuilder.java | 53 - .../v1beta1/UserEventOuterClass.java | 203 -- .../v1beta1/UserEventServiceOuterClass.java | 227 -- .../WriteUserEventRequestOrBuilder.java | 58 - .../recommendationengine/v1beta1/Catalog.java | 221 ++ .../v1beta1/CatalogInlineSource.java | 527 ++-- .../v1beta1/CatalogInlineSourceOrBuilder.java | 93 + .../v1beta1/CatalogItem.java | 1891 ++++++++----- .../v1beta1/CatalogItemOrBuilder.java | 170 +- .../v1beta1/CatalogItemPathName.java | 0 .../v1beta1/CatalogName.java | 0 .../v1beta1/CatalogServiceOuterClass.java | 238 ++ .../v1beta1/CollectUserEventRequest.java | 572 ++-- .../CollectUserEventRequestOrBuilder.java | 56 +- .../recommendationengine/v1beta1/Common.java | 143 + .../v1beta1/CreateCatalogItemRequest.java | 537 ++-- .../CreateCatalogItemRequestOrBuilder.java | 97 + ...tePredictionApiKeyRegistrationRequest.java | 1041 +++++++ ...ionApiKeyRegistrationRequestOrBuilder.java | 99 + .../v1beta1/DeleteCatalogItemRequest.java | 378 +-- .../DeleteCatalogItemRequestOrBuilder.java | 56 + ...tePredictionApiKeyRegistrationRequest.java | 480 ++-- ...ionApiKeyRegistrationRequestOrBuilder.java | 35 +- .../v1beta1/EventDetail.java | 826 +++--- .../v1beta1/EventDetailOrBuilder.java | 92 +- .../v1beta1/EventStoreName.java | 0 .../v1beta1/FeatureMap.java | 1656 ++++++----- .../v1beta1/FeatureMapOrBuilder.java | 127 +- .../v1beta1/GcsSource.java | 346 ++- .../v1beta1/GcsSourceOrBuilder.java | 36 +- .../v1beta1/GetCatalogItemRequest.java | 375 +-- .../GetCatalogItemRequestOrBuilder.java | 56 + .../recommendationengine/v1beta1/Image.java | 379 +-- .../v1beta1/ImageOrBuilder.java | 33 +- .../recommendationengine/v1beta1/Import.java | 275 ++ .../v1beta1/ImportCatalogItemsRequest.java | 787 ++++-- .../ImportCatalogItemsRequestOrBuilder.java | 87 +- .../v1beta1/ImportCatalogItemsResponse.java | 551 ++-- .../ImportCatalogItemsResponseOrBuilder.java | 48 +- .../v1beta1/ImportErrorsConfig.java | 392 +-- .../v1beta1/ImportErrorsConfigOrBuilder.java | 33 +- .../v1beta1/ImportMetadata.java | 662 +++-- .../v1beta1/ImportMetadataOrBuilder.java | 58 +- .../v1beta1/ImportUserEventsRequest.java | 777 ++++-- .../ImportUserEventsRequestOrBuilder.java | 87 +- .../v1beta1/ImportUserEventsResponse.java | 698 +++-- .../ImportUserEventsResponseOrBuilder.java | 68 +- .../v1beta1/InputConfig.java | 793 ++++-- .../v1beta1/InputConfigOrBuilder.java | 69 +- .../v1beta1/ListCatalogItemsRequest.java | 567 ++-- .../ListCatalogItemsRequestOrBuilder.java | 56 +- .../v1beta1/ListCatalogItemsResponse.java | 575 ++-- .../ListCatalogItemsResponseOrBuilder.java | 42 +- ...tPredictionApiKeyRegistrationsRequest.java | 592 ++-- ...onApiKeyRegistrationsRequestOrBuilder.java | 47 +- ...PredictionApiKeyRegistrationsResponse.java | 756 +++-- ...nApiKeyRegistrationsResponseOrBuilder.java | 119 + .../v1beta1/ListUserEventsRequest.java | 569 ++-- .../ListUserEventsRequestOrBuilder.java | 56 +- .../v1beta1/ListUserEventsResponse.java | 499 ++-- .../ListUserEventsResponseOrBuilder.java | 42 +- .../v1beta1/PlacementName.java | 0 .../v1beta1/PredictRequest.java | 1275 +++++---- .../v1beta1/PredictRequestOrBuilder.java | 161 +- .../v1beta1/PredictResponse.java | 1815 +++++++----- .../v1beta1/PredictResponseOrBuilder.java | 132 +- .../v1beta1/PredictionApiKeyRegistration.java | 410 +-- .../PredictionApiKeyRegistrationName.java | 0 ...PredictionApiKeyRegistrationOrBuilder.java | 50 + .../PredictionApikeyRegistryService.java | 193 ++ .../v1beta1/PredictionServiceOuterClass.java | 223 ++ .../v1beta1/ProductCatalogItem.java | 2429 ++++++++++------- .../v1beta1/ProductCatalogItemOrBuilder.java | 169 +- .../v1beta1/ProductDetail.java | 808 ++++-- .../v1beta1/ProductDetailOrBuilder.java | 82 +- .../v1beta1/ProductEventDetail.java | 1215 ++++++--- .../v1beta1/ProductEventDetailOrBuilder.java | 140 +- .../v1beta1/PurchaseTransaction.java | 963 ++++--- .../v1beta1/PurchaseTransactionOrBuilder.java | 103 +- .../v1beta1/PurgeUserEventsMetadata.java | 441 +-- .../PurgeUserEventsMetadataOrBuilder.java | 35 +- .../v1beta1/PurgeUserEventsRequest.java | 491 ++-- .../PurgeUserEventsRequestOrBuilder.java | 47 +- .../v1beta1/PurgeUserEventsResponse.java | 545 ++-- .../PurgeUserEventsResponseOrBuilder.java | 51 +- .../RecommendationengineResources.java | 85 + .../v1beta1/UpdateCatalogItemRequest.java | 631 +++-- .../UpdateCatalogItemRequestOrBuilder.java | 63 +- .../v1beta1/UserEvent.java | 1095 +++++--- .../v1beta1/UserEventImportSummary.java | 345 ++- .../UserEventImportSummaryOrBuilder.java | 24 +- .../v1beta1/UserEventInlineSource.java | 512 ++-- .../UserEventInlineSourceOrBuilder.java | 88 + .../v1beta1/UserEventOrBuilder.java | 121 +- .../v1beta1/UserEventOuterClass.java | 251 ++ .../v1beta1/UserEventServiceOuterClass.java | 248 ++ .../v1beta1/UserInfo.java | 590 ++-- .../v1beta1/UserInfoOrBuilder.java | 57 +- .../v1beta1/WriteUserEventRequest.java | 525 ++-- .../WriteUserEventRequestOrBuilder.java | 97 + .../v1beta1/catalog.proto | 0 .../v1beta1/catalog_service.proto | 0 .../recommendationengine/v1beta1/common.proto | 0 .../recommendationengine/v1beta1/import.proto | 0 .../prediction_apikey_registry_service.proto | 0 .../v1beta1/prediction_service.proto | 0 .../recommendationengine_resources.proto | 0 .../v1beta1/user_event.proto | 0 .../v1beta1/user_event_service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 6 +- .../SyncCreateSetCredentialsProvider1.java | 6 +- .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateCatalogItem.java | 0 .../SyncCreateCatalogItem.java | 0 ...eateCatalogItemCatalognameCatalogitem.java | 6 +- ...yncCreateCatalogItemStringCatalogitem.java | 6 +- .../AsyncDeleteCatalogItem.java | 0 .../SyncDeleteCatalogItem.java | 1 - ...cDeleteCatalogItemCatalogitempathname.java | 7 +- .../SyncDeleteCatalogItemString.java | 1 - .../getcatalogitem/AsyncGetCatalogItem.java | 0 .../getcatalogitem/SyncGetCatalogItem.java | 0 ...SyncGetCatalogItemCatalogitempathname.java | 6 +- .../SyncGetCatalogItemString.java | 0 .../AsyncImportCatalogItems.java | 0 .../AsyncImportCatalogItemsLRO.java | 0 .../SyncImportCatalogItems.java | 0 ...meStringInputconfigImporterrorsconfig.java | 6 +- ...ngStringInputconfigImporterrorsconfig.java | 6 +- .../AsyncListCatalogItems.java | 0 .../AsyncListCatalogItemsPaged.java | 0 .../SyncListCatalogItems.java | 0 ...SyncListCatalogItemsCatalognameString.java | 6 +- .../SyncListCatalogItemsStringString.java | 6 +- .../AsyncUpdateCatalogItem.java | 0 .../SyncUpdateCatalogItem.java | 0 ...talogitempathnameCatalogitemFieldmask.java | 6 +- ...CatalogItemStringCatalogitemFieldmask.java | 6 +- .../SyncCreateCatalogItem.java | 0 .../SyncCreateSetCredentialsProvider.java | 6 +- .../SyncCreateSetCredentialsProvider1.java | 6 +- .../create/SyncCreateSetEndpoint.java | 6 +- ...yncCreatePredictionApiKeyRegistration.java | 6 +- ...yncCreatePredictionApiKeyRegistration.java | 6 +- ...storenamePredictionapikeyregistration.java | 6 +- ...ionStringPredictionapikeyregistration.java | 6 +- ...yncDeletePredictionApiKeyRegistration.java | 6 +- ...yncDeletePredictionApiKeyRegistration.java | 7 +- ...ationPredictionapikeyregistrationname.java | 7 +- ...etePredictionApiKeyRegistrationString.java | 7 +- ...syncListPredictionApiKeyRegistrations.java | 6 +- ...istPredictionApiKeyRegistrationsPaged.java | 6 +- ...SyncListPredictionApiKeyRegistrations.java | 6 +- ...tionApiKeyRegistrationsEventstorename.java | 6 +- ...stPredictionApiKeyRegistrationsString.java | 6 +- ...yncCreatePredictionApiKeyRegistration.java | 6 +- .../SyncCreateSetCredentialsProvider.java | 6 +- .../SyncCreateSetCredentialsProvider1.java | 6 +- .../create/SyncCreateSetEndpoint.java | 0 .../predict/AsyncPredict.java | 0 .../predict/AsyncPredictPaged.java | 0 .../predict/SyncPredict.java | 0 .../SyncPredictPlacementnameUserevent.java | 6 +- .../predict/SyncPredictStringUserevent.java | 3 +- .../predict/SyncPredict.java | 0 .../SyncCreateCatalogItem.java | 0 ...yncCreatePredictionApiKeyRegistration.java | 6 +- .../predict/SyncPredict.java | 0 .../writeuserevent/SyncWriteUserEvent.java | 0 .../AsyncCollectUserEvent.java | 0 .../SyncCollectUserEvent.java | 0 ...erEventEventstorenameStringStringLong.java | 6 +- ...ollectUserEventStringStringStringLong.java | 6 +- .../SyncCreateSetCredentialsProvider.java | 6 +- .../SyncCreateSetCredentialsProvider1.java | 6 +- .../create/SyncCreateSetEndpoint.java | 0 .../AsyncImportUserEvents.java | 0 .../AsyncImportUserEventsLRO.java | 0 .../SyncImportUserEvents.java | 0 ...meStringInputconfigImporterrorsconfig.java | 6 +- ...ngStringInputconfigImporterrorsconfig.java | 6 +- .../listuserevents/AsyncListUserEvents.java | 0 .../AsyncListUserEventsPaged.java | 0 .../listuserevents/SyncListUserEvents.java | 0 ...yncListUserEventsEventstorenameString.java | 6 +- .../SyncListUserEventsStringString.java | 6 +- .../purgeuserevents/AsyncPurgeUserEvents.java | 0 .../AsyncPurgeUserEventsLRO.java | 0 .../purgeuserevents/SyncPurgeUserEvents.java | 0 ...UserEventsEventstorenameStringBoolean.java | 6 +- ...yncPurgeUserEventsStringStringBoolean.java | 6 +- .../writeuserevent/AsyncWriteUserEvent.java | 0 .../writeuserevent/SyncWriteUserEvent.java | 0 ...WriteUserEventEventstorenameUserevent.java | 6 +- .../SyncWriteUserEventStringUserevent.java | 6 +- .../writeuserevent/SyncWriteUserEvent.java | 0 268 files changed, 27370 insertions(+), 17132 deletions(-) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java (98%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java (97%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java (95%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java (95%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java (94%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java (96%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java (97%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java (97%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/package-info.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java (98%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceStub.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryStub.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceStub.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceStub.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceStub.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryStub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceStub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceStub.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java (94%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java (98%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java (98%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockCatalogService.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockCatalogServiceImpl.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionApiKeyRegistry.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionApiKeyRegistryImpl.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionService.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionServiceImpl.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockUserEventService.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockUserEventServiceImpl.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClientTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-recommendations-ai => google-cloud-recommendations-ai}/src/test/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClientTest.java (100%) create mode 100644 grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceGrpc.java create mode 100644 grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryGrpc.java rename {owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1 => grpc-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceGrpc.java (53%) create mode 100644 grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceGrpc.java delete mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceGrpc.java delete mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryGrpc.java delete mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceGrpc.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Catalog.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSourceOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Common.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequest.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Import.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApikeyRegistryService.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/RecommendationengineResources.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSourceOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequestOrBuilder.java create mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Catalog.java rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSource.java (62%) create mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSourceOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItem.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemOrBuilder.java (76%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemPathName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogName.java (100%) create mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequest.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequestOrBuilder.java (67%) create mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Common.java rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequest.java (60%) create mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequestOrBuilder.java create mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequest.java create mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequest.java (62%) create mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequest.java (50%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequestOrBuilder.java (52%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetail.java (77%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetailOrBuilder.java (83%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventStoreName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMap.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMapOrBuilder.java (56%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSource.java (76%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSourceOrBuilder.java (79%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequest.java (63%) create mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/Image.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImageOrBuilder.java (61%) create mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Import.java rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequest.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequestOrBuilder.java (56%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponse.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponseOrBuilder.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfig.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfigOrBuilder.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadata.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadataOrBuilder.java (76%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequest.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequestOrBuilder.java (59%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponse.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponseOrBuilder.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfig.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfigOrBuilder.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequest.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequestOrBuilder.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponse.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponseOrBuilder.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequest.java (56%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequestOrBuilder.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponse.java (53%) create mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponseOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequest.java (75%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequestOrBuilder.java (81%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponse.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponseOrBuilder.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PlacementName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequest.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequestOrBuilder.java (82%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponse.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponseOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistration.java (57%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationName.java (100%) create mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationOrBuilder.java create mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApikeyRegistryService.java create mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItem.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItemOrBuilder.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetail.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetailOrBuilder.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetail.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetailOrBuilder.java (78%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransaction.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransactionOrBuilder.java (79%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadata.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadataOrBuilder.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequest.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequestOrBuilder.java (76%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponse.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponseOrBuilder.java (68%) create mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/RecommendationengineResources.java rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequest.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequestOrBuilder.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEvent.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummary.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummaryOrBuilder.java (55%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSource.java (62%) create mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSourceOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOrBuilder.java (73%) create mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOuterClass.java create mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfo.java (77%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfoOrBuilder.java (81%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequest.java (61%) create mode 100644 proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/proto/google/cloud/recommendationengine/v1beta1/catalog.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/proto/google/cloud/recommendationengine/v1beta1/catalog_service.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/proto/google/cloud/recommendationengine/v1beta1/common.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/proto/google/cloud/recommendationengine/v1beta1/import.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/proto/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/proto/google/cloud/recommendationengine/v1beta1/prediction_service.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/proto/google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/proto/google/cloud/recommendationengine/v1beta1/user_event.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1 => proto-google-cloud-recommendations-ai-v1beta1}/src/main/proto/google/cloud/recommendationengine/v1beta1/user_event_service.proto (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider1.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/AsyncCreateCatalogItem.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItem.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemCatalognameCatalogitem.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemStringCatalogitem.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/AsyncDeleteCatalogItem.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItem.java (98%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemCatalogitempathname.java (85%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemString.java (98%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/AsyncGetCatalogItem.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItem.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemCatalogitempathname.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemString.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItems.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItemsLRO.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItems.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsCatalognameStringInputconfigImporterrorsconfig.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsStringStringInputconfigImporterrorsconfig.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItems.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItemsPaged.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItems.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsCatalognameString.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsStringString.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/AsyncUpdateCatalogItem.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItem.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemCatalogitempathnameCatalogitemFieldmask.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemStringCatalogitemFieldmask.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogservicesettings/createcatalogitem/SyncCreateCatalogItem.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider1.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetEndpoint.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/AsyncCreatePredictionApiKeyRegistration.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java (89%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationEventstorenamePredictionapikeyregistration.java (85%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationStringPredictionapikeyregistration.java (86%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/AsyncDeletePredictionApiKeyRegistration.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistration.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationPredictionapikeyregistrationname.java (84%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationString.java (85%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrations.java (90%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrationsPaged.java (91%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrations.java (89%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsEventstorename.java (86%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsString.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistrysettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider1.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredict.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredictPaged.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredict.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictPlacementnameUserevent.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictStringUserevent.java (94%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionservicesettings/predict/SyncPredict.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/catalogservicestubsettings/createcatalogitem/SyncCreateCatalogItem.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionapikeyregistrystubsettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionservicestubsettings/predict/SyncPredict.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/AsyncCollectUserEvent.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEvent.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventEventstorenameStringStringLong.java (86%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventStringStringStringLong.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider1.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEvents.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEventsLRO.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEvents.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsEventstorenameStringInputconfigImporterrorsconfig.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsStringStringInputconfigImporterrorsconfig.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEvents.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEventsPaged.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEvents.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsEventstorenameString.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsStringString.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEvents.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEventsLRO.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEvents.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsEventstorenameStringBoolean.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsStringStringBoolean.java (88%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/AsyncWriteUserEvent.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEvent.java (100%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventEventstorenameUserevent.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventStringUserevent.java (87%) rename {owl-bot-staging/v1beta1/samples => samples}/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java (100%) diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java similarity index 98% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java index dd298236..5ca96977 100644 --- a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java @@ -63,13 +63,13 @@ * methods: * *
        - *
      1. A "flattened" method. With this type of method, the fields of the request type have been + *
      2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
      3. A "request object" method. This type of method only takes one parameter, a request object, + *
      4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
      5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
      6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
      * @@ -1046,7 +1046,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListCatalogItemsPagedResponse extends AbstractPagedListResponse< - ListCatalogItemsRequest, ListCatalogItemsResponse, CatalogItem, ListCatalogItemsPage, + ListCatalogItemsRequest, + ListCatalogItemsResponse, + CatalogItem, + ListCatalogItemsPage, ListCatalogItemsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1096,7 +1099,10 @@ public ApiFuture createPageAsync( public static class ListCatalogItemsFixedSizeCollection extends AbstractFixedSizeCollection< - ListCatalogItemsRequest, ListCatalogItemsResponse, CatalogItem, ListCatalogItemsPage, + ListCatalogItemsRequest, + ListCatalogItemsResponse, + CatalogItem, + ListCatalogItemsPage, ListCatalogItemsFixedSizeCollection> { private ListCatalogItemsFixedSizeCollection( diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java similarity index 97% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java index 233a2f7f..22f31b84 100644 --- a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.recommendationengine.v1beta1.stub.CatalogServiceStubSettings; @@ -46,10 +45,10 @@ *

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

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

      The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java similarity index 95% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java index c8f13fce..ce1a01b1 100644 --- a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java @@ -67,13 +67,13 @@ * methods: * *

        - *
      1. A "flattened" method. With this type of method, the fields of the request type have been + *
      2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
      3. A "request object" method. This type of method only takes one parameter, a request object, + *
      4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
      5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
      6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
      * @@ -663,13 +663,16 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListPredictionApiKeyRegistrationsPagedResponse extends AbstractPagedListResponse< - ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, - PredictionApiKeyRegistration, ListPredictionApiKeyRegistrationsPage, + ListPredictionApiKeyRegistrationsRequest, + ListPredictionApiKeyRegistrationsResponse, + PredictionApiKeyRegistration, + ListPredictionApiKeyRegistrationsPage, ListPredictionApiKeyRegistrationsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< - ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, + ListPredictionApiKeyRegistrationsResponse, PredictionApiKeyRegistration> context, ApiFuture futureResponse) { @@ -690,12 +693,15 @@ private ListPredictionApiKeyRegistrationsPagedResponse( public static class ListPredictionApiKeyRegistrationsPage extends AbstractPage< - ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, - PredictionApiKeyRegistration, ListPredictionApiKeyRegistrationsPage> { + ListPredictionApiKeyRegistrationsRequest, + ListPredictionApiKeyRegistrationsResponse, + PredictionApiKeyRegistration, + ListPredictionApiKeyRegistrationsPage> { private ListPredictionApiKeyRegistrationsPage( PageContext< - ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, + ListPredictionApiKeyRegistrationsResponse, PredictionApiKeyRegistration> context, ListPredictionApiKeyRegistrationsResponse response) { @@ -709,7 +715,8 @@ private static ListPredictionApiKeyRegistrationsPage createEmptyPage() { @Override protected ListPredictionApiKeyRegistrationsPage createPage( PageContext< - ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, + ListPredictionApiKeyRegistrationsResponse, PredictionApiKeyRegistration> context, ListPredictionApiKeyRegistrationsResponse response) { @@ -719,7 +726,8 @@ protected ListPredictionApiKeyRegistrationsPage createPage( @Override public ApiFuture createPageAsync( PageContext< - ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, + ListPredictionApiKeyRegistrationsResponse, PredictionApiKeyRegistration> context, ApiFuture futureResponse) { @@ -729,8 +737,10 @@ public ApiFuture createPageAsync( public static class ListPredictionApiKeyRegistrationsFixedSizeCollection extends AbstractFixedSizeCollection< - ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, - PredictionApiKeyRegistration, ListPredictionApiKeyRegistrationsPage, + ListPredictionApiKeyRegistrationsRequest, + ListPredictionApiKeyRegistrationsResponse, + PredictionApiKeyRegistration, + ListPredictionApiKeyRegistrationsPage, ListPredictionApiKeyRegistrationsFixedSizeCollection> { private ListPredictionApiKeyRegistrationsFixedSizeCollection( diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java similarity index 95% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java index 7b96b961..568cb6fa 100644 --- a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.recommendationengine.v1beta1.stub.PredictionApiKeyRegistryStubSettings; @@ -44,10 +43,10 @@ *

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

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

      The builder of this class is recursive, so contained classes are themselves builders. When @@ -87,7 +86,8 @@ public class PredictionApiKeyRegistrySettings /** Returns the object with the settings used for calls to listPredictionApiKeyRegistrations. */ public PagedCallSettings< - ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, + ListPredictionApiKeyRegistrationsResponse, ListPredictionApiKeyRegistrationsPagedResponse> listPredictionApiKeyRegistrationsSettings() { return ((PredictionApiKeyRegistryStubSettings) getStubSettings()) @@ -228,7 +228,8 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listPredictionApiKeyRegistrations. */ public PagedCallSettings.Builder< - ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, + ListPredictionApiKeyRegistrationsResponse, ListPredictionApiKeyRegistrationsPagedResponse> listPredictionApiKeyRegistrationsSettings() { return getStubSettingsBuilder().listPredictionApiKeyRegistrationsSettings(); diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java similarity index 94% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java index 324372dc..b171c8e2 100644 --- a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClient.java @@ -64,13 +64,13 @@ * methods: * *

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

      We currently support three placements with the following IDs by default: *

        - *
      • `shopping_cart`: Predicts items frequently bought together with one or more catalog + *
      • `shopping_cart`: Predicts items frequently bought together with one or more catalog * items in the same shopping session. Commonly displayed after `add-to-cart` events, on * product detail pages, or on the shopping cart page. *
      *
        - *
      • `home_page`: Predicts the next product that a user will most likely engage with or + *
      • `home_page`: Predicts the next product that a user will most likely engage with or * purchase based on the shopping or viewing history of the specified `userId` or * `visitorId`. For example - Recommendations for you. *
      *
        - *
      • `product_detail`: Predicts the next product that a user will most likely engage with + *
      • `product_detail`: Predicts the next product that a user will most likely engage with * or purchase. The prediction is based on the shopping or viewing history of the * specified `userId` or `visitorId` and its relevance to a specified `CatalogItem`. * Typically used on product detail pages. For example - More items like this. *
      *
        - *
      • `recently_viewed_default`: Returns up to 75 items recently viewed by the specified + *
      • `recently_viewed_default`: Returns up to 75 items recently viewed by the specified * `userId` or `visitorId`, most recent ones first. Returns nothing if neither of them * has viewed any items yet. For example - Recently viewed. *
      @@ -271,23 +271,23 @@ public final PredictPagedResponse predict(PlacementName name, UserEvent userEven * models that will be used to make the prediction. *

      We currently support three placements with the following IDs by default: *

        - *
      • `shopping_cart`: Predicts items frequently bought together with one or more catalog + *
      • `shopping_cart`: Predicts items frequently bought together with one or more catalog * items in the same shopping session. Commonly displayed after `add-to-cart` events, on * product detail pages, or on the shopping cart page. *
      *
        - *
      • `home_page`: Predicts the next product that a user will most likely engage with or + *
      • `home_page`: Predicts the next product that a user will most likely engage with or * purchase based on the shopping or viewing history of the specified `userId` or * `visitorId`. For example - Recommendations for you. *
      *
        - *
      • `product_detail`: Predicts the next product that a user will most likely engage with + *
      • `product_detail`: Predicts the next product that a user will most likely engage with * or purchase. The prediction is based on the shopping or viewing history of the * specified `userId` or `visitorId` and its relevance to a specified `CatalogItem`. * Typically used on product detail pages. For example - More items like this. *
      *
        - *
      • `recently_viewed_default`: Returns up to 75 items recently viewed by the specified + *
      • `recently_viewed_default`: Returns up to 75 items recently viewed by the specified * `userId` or `visitorId`, most recent ones first. Returns nothing if neither of them * has viewed any items yet. For example - Recently viewed. *
      @@ -464,7 +464,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class PredictPagedResponse extends AbstractPagedListResponse< - PredictRequest, PredictResponse, Map.Entry, PredictPage, + PredictRequest, + PredictResponse, + Map.Entry, + PredictPage, PredictFixedSizeCollection> { public static ApiFuture createAsync( @@ -511,7 +514,10 @@ public ApiFuture createPageAsync( public static class PredictFixedSizeCollection extends AbstractFixedSizeCollection< - PredictRequest, PredictResponse, Map.Entry, PredictPage, + PredictRequest, + PredictResponse, + Map.Entry, + PredictPage, PredictFixedSizeCollection> { private PredictFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java similarity index 96% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java index 4b12cd78..069b74af 100644 --- a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.recommendationengine.v1beta1.stub.PredictionServiceStubSettings; @@ -43,10 +42,10 @@ *

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

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

      The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java similarity index 97% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java index 8656b5d8..525a2f58 100644 --- a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClient.java @@ -64,13 +64,13 @@ * methods: * *

        - *
      1. A "flattened" method. With this type of method, the fields of the request type have been + *
      2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
      3. A "request object" method. This type of method only takes one parameter, a request object, + *
      4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
      5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
      6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
      * @@ -707,12 +707,12 @@ public final ListUserEventsPagedResponse listUserEvents(ListUserEventsRequest re * filter is not allowed. This filter can also be used with ListUserEvents API to list events * that will be deleted. The eligible fields for filtering are: *
        - *
      • eventType - UserEvent.eventType field of type string. - *
      • eventTime - in ISO 8601 "zulu" format. - *
      • visitorId - field of type string. Specifying this will delete all events associated + *
      • eventType - UserEvent.eventType field of type string. + *
      • eventTime - in ISO 8601 "zulu" format. + *
      • visitorId - field of type string. Specifying this will delete all events associated * with a visitor. - *
      • userId - field of type string. Specifying this will delete all events associated - * with a user. Example 1: Deleting all events in a time range. `eventTime > + *
      • userId - field of type string. Specifying this will delete all events associated with + * a user. Example 1: Deleting all events in a time range. `eventTime > * "2012-04-23T18:25:43.511Z" eventTime < "2012-04-23T18:30:43.511Z"` Example 2: * Deleting specific eventType in time range. `eventTime > "2012-04-23T18:25:43.511Z" * eventType = "detail-page-view"` Example 3: Deleting all events for a specific visitor @@ -763,12 +763,12 @@ public final ListUserEventsPagedResponse listUserEvents(ListUserEventsRequest re * filter is not allowed. This filter can also be used with ListUserEvents API to list events * that will be deleted. The eligible fields for filtering are: *
          - *
        • eventType - UserEvent.eventType field of type string. - *
        • eventTime - in ISO 8601 "zulu" format. - *
        • visitorId - field of type string. Specifying this will delete all events associated + *
        • eventType - UserEvent.eventType field of type string. + *
        • eventTime - in ISO 8601 "zulu" format. + *
        • visitorId - field of type string. Specifying this will delete all events associated * with a visitor. - *
        • userId - field of type string. Specifying this will delete all events associated - * with a user. Example 1: Deleting all events in a time range. `eventTime > + *
        • userId - field of type string. Specifying this will delete all events associated with + * a user. Example 1: Deleting all events in a time range. `eventTime > * "2012-04-23T18:25:43.511Z" eventTime < "2012-04-23T18:30:43.511Z"` Example 2: * Deleting specific eventType in time range. `eventTime > "2012-04-23T18:25:43.511Z" * eventType = "detail-page-view"` Example 3: Deleting all events for a specific visitor @@ -1125,7 +1125,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListUserEventsPagedResponse extends AbstractPagedListResponse< - ListUserEventsRequest, ListUserEventsResponse, UserEvent, ListUserEventsPage, + ListUserEventsRequest, + ListUserEventsResponse, + UserEvent, + ListUserEventsPage, ListUserEventsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1175,7 +1178,10 @@ public ApiFuture createPageAsync( public static class ListUserEventsFixedSizeCollection extends AbstractFixedSizeCollection< - ListUserEventsRequest, ListUserEventsResponse, UserEvent, ListUserEventsPage, + ListUserEventsRequest, + ListUserEventsResponse, + UserEvent, + ListUserEventsPage, ListUserEventsFixedSizeCollection> { private ListUserEventsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java similarity index 97% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java index 0ddcfd68..7a7787fd 100644 --- a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceSettings.java @@ -30,7 +30,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.recommendationengine.v1beta1.stub.UserEventServiceStubSettings; @@ -46,10 +45,10 @@ *

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

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

          The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/gapic_metadata.json b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/gapic_metadata.json rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/package-info.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/package-info.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/package-info.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/package-info.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStub.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStub.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java similarity index 98% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java index 7825ec78..460ed0a3 100644 --- a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/CatalogServiceStubSettings.java @@ -75,10 +75,10 @@ *

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

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

          The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceCallableFactory.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceCallableFactory.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceStub.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceStub.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceStub.java index 03bf09fd..f403a4b7 100644 --- a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceStub.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcCatalogServiceStub.java @@ -43,7 +43,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryCallableFactory.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryCallableFactory.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryStub.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryStub.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryStub.java index 18e91feb..8d2b192e 100644 --- a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryStub.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionApiKeyRegistryStub.java @@ -36,7 +36,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceCallableFactory.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceCallableFactory.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceStub.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceStub.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceStub.java index 5d4a7354..3ab7305c 100644 --- a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceStub.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcPredictionServiceStub.java @@ -32,7 +32,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceCallableFactory.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceCallableFactory.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceStub.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceStub.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceStub.java index fac9e949..345feaf6 100644 --- a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceStub.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/GrpcUserEventServiceStub.java @@ -44,7 +44,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceCallableFactory.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceCallableFactory.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceStub.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceStub.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceStub.java index be62fc23..2062005d 100644 --- a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceStub.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonCatalogServiceStub.java @@ -30,7 +30,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryCallableFactory.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryCallableFactory.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryStub.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryStub.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionApiKeyRegistryStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceCallableFactory.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceCallableFactory.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceStub.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceStub.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonPredictionServiceStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceCallableFactory.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceCallableFactory.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceStub.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceStub.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceStub.java index e4e9c879..e29d2030 100644 --- a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceStub.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/HttpJsonUserEventServiceStub.java @@ -31,7 +31,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStub.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStub.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java similarity index 94% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java index 13f6db8a..4d03c9d3 100644 --- a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionApiKeyRegistryStubSettings.java @@ -65,10 +65,10 @@ *

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

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

          The builder of this class is recursive, so contained classes are themselves builders. When @@ -106,18 +106,21 @@ public class PredictionApiKeyRegistryStubSettings CreatePredictionApiKeyRegistrationRequest, PredictionApiKeyRegistration> createPredictionApiKeyRegistrationSettings; private final PagedCallSettings< - ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, + ListPredictionApiKeyRegistrationsResponse, ListPredictionApiKeyRegistrationsPagedResponse> listPredictionApiKeyRegistrationsSettings; private final UnaryCallSettings deletePredictionApiKeyRegistrationSettings; private static final PagedListDescriptor< - ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, + ListPredictionApiKeyRegistrationsResponse, PredictionApiKeyRegistration> LIST_PREDICTION_API_KEY_REGISTRATIONS_PAGE_STR_DESC = new PagedListDescriptor< - ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, + ListPredictionApiKeyRegistrationsResponse, PredictionApiKeyRegistration>() { @Override public String emptyToken() { @@ -160,11 +163,13 @@ public Iterable extractResources( }; private static final PagedListResponseFactory< - ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, + ListPredictionApiKeyRegistrationsResponse, ListPredictionApiKeyRegistrationsPagedResponse> LIST_PREDICTION_API_KEY_REGISTRATIONS_PAGE_STR_FACT = new PagedListResponseFactory< - ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, + ListPredictionApiKeyRegistrationsResponse, ListPredictionApiKeyRegistrationsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -177,7 +182,8 @@ public ApiFuture getFuturePagedR ApiFuture futureResponse) { PageContext< ListPredictionApiKeyRegistrationsRequest, - ListPredictionApiKeyRegistrationsResponse, PredictionApiKeyRegistration> + ListPredictionApiKeyRegistrationsResponse, + PredictionApiKeyRegistration> pageContext = PageContext.create( callable, @@ -197,7 +203,8 @@ public ApiFuture getFuturePagedR /** Returns the object with the settings used for calls to listPredictionApiKeyRegistrations. */ public PagedCallSettings< - ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, + ListPredictionApiKeyRegistrationsResponse, ListPredictionApiKeyRegistrationsPagedResponse> listPredictionApiKeyRegistrationsSettings() { return listPredictionApiKeyRegistrationsSettings; @@ -331,7 +338,8 @@ public static class Builder CreatePredictionApiKeyRegistrationRequest, PredictionApiKeyRegistration> createPredictionApiKeyRegistrationSettings; private final PagedCallSettings.Builder< - ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, + ListPredictionApiKeyRegistrationsResponse, ListPredictionApiKeyRegistrationsPagedResponse> listPredictionApiKeyRegistrationsSettings; private final UnaryCallSettings.Builder @@ -477,7 +485,8 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listPredictionApiKeyRegistrations. */ public PagedCallSettings.Builder< - ListPredictionApiKeyRegistrationsRequest, ListPredictionApiKeyRegistrationsResponse, + ListPredictionApiKeyRegistrationsRequest, + ListPredictionApiKeyRegistrationsResponse, ListPredictionApiKeyRegistrationsPagedResponse> listPredictionApiKeyRegistrationsSettings() { return listPredictionApiKeyRegistrationsSettings; diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStub.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStub.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java similarity index 98% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java index 64f185ab..d9791326 100644 --- a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/PredictionServiceStubSettings.java @@ -64,10 +64,10 @@ *

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

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

          The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStub.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStub.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java similarity index 98% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java rename to google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java index 13122023..d5aef443 100644 --- a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java +++ b/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/UserEventServiceStubSettings.java @@ -76,10 +76,10 @@ *

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

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

          The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientHttpJsonTest.java b/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientHttpJsonTest.java rename to google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientTest.java b/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientTest.java rename to google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClientTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockCatalogService.java b/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockCatalogService.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockCatalogService.java rename to google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockCatalogService.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockCatalogServiceImpl.java b/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockCatalogServiceImpl.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockCatalogServiceImpl.java rename to google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockCatalogServiceImpl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionApiKeyRegistry.java b/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionApiKeyRegistry.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionApiKeyRegistry.java rename to google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionApiKeyRegistry.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionApiKeyRegistryImpl.java b/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionApiKeyRegistryImpl.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionApiKeyRegistryImpl.java rename to google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionApiKeyRegistryImpl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionService.java b/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionService.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionService.java rename to google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionService.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionServiceImpl.java b/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionServiceImpl.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionServiceImpl.java rename to google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockPredictionServiceImpl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockUserEventService.java b/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockUserEventService.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockUserEventService.java rename to google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockUserEventService.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockUserEventServiceImpl.java b/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockUserEventServiceImpl.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockUserEventServiceImpl.java rename to google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/MockUserEventServiceImpl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientHttpJsonTest.java b/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientHttpJsonTest.java rename to google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientHttpJsonTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientTest.java b/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientTest.java rename to google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClientTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClientHttpJsonTest.java b/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClientHttpJsonTest.java rename to google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClientTest.java b/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClientTest.java rename to google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceClientTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClientHttpJsonTest.java b/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClientHttpJsonTest.java rename to google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClientTest.java b/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClientTest.java rename to google-cloud-recommendations-ai/src/test/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceClientTest.java diff --git a/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceGrpc.java b/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceGrpc.java new file mode 100644 index 00000000..2080d5b1 --- /dev/null +++ b/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceGrpc.java @@ -0,0 +1,990 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.recommendationengine.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

          + * Service for ingesting catalog information of the customer's website.
          + * 
          + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/recommendationengine/v1beta1/catalog_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CatalogServiceGrpc { + + private CatalogServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.recommendationengine.v1beta1.CatalogService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest, + com.google.cloud.recommendationengine.v1beta1.CatalogItem> + getCreateCatalogItemMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCatalogItem", + requestType = com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.class, + responseType = com.google.cloud.recommendationengine.v1beta1.CatalogItem.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest, + com.google.cloud.recommendationengine.v1beta1.CatalogItem> + getCreateCatalogItemMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest, + com.google.cloud.recommendationengine.v1beta1.CatalogItem> + getCreateCatalogItemMethod; + if ((getCreateCatalogItemMethod = CatalogServiceGrpc.getCreateCatalogItemMethod) == null) { + synchronized (CatalogServiceGrpc.class) { + if ((getCreateCatalogItemMethod = CatalogServiceGrpc.getCreateCatalogItemMethod) == null) { + CatalogServiceGrpc.getCreateCatalogItemMethod = + getCreateCatalogItemMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCatalogItem")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.CatalogItem + .getDefaultInstance())) + .setSchemaDescriptor( + new CatalogServiceMethodDescriptorSupplier("CreateCatalogItem")) + .build(); + } + } + } + return getCreateCatalogItemMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest, + com.google.cloud.recommendationengine.v1beta1.CatalogItem> + getGetCatalogItemMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCatalogItem", + requestType = com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.class, + responseType = com.google.cloud.recommendationengine.v1beta1.CatalogItem.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest, + com.google.cloud.recommendationengine.v1beta1.CatalogItem> + getGetCatalogItemMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest, + com.google.cloud.recommendationengine.v1beta1.CatalogItem> + getGetCatalogItemMethod; + if ((getGetCatalogItemMethod = CatalogServiceGrpc.getGetCatalogItemMethod) == null) { + synchronized (CatalogServiceGrpc.class) { + if ((getGetCatalogItemMethod = CatalogServiceGrpc.getGetCatalogItemMethod) == null) { + CatalogServiceGrpc.getGetCatalogItemMethod = + getGetCatalogItemMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCatalogItem")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.CatalogItem + .getDefaultInstance())) + .setSchemaDescriptor( + new CatalogServiceMethodDescriptorSupplier("GetCatalogItem")) + .build(); + } + } + } + return getGetCatalogItemMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest, + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse> + getListCatalogItemsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCatalogItems", + requestType = com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.class, + responseType = com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest, + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse> + getListCatalogItemsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest, + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse> + getListCatalogItemsMethod; + if ((getListCatalogItemsMethod = CatalogServiceGrpc.getListCatalogItemsMethod) == null) { + synchronized (CatalogServiceGrpc.class) { + if ((getListCatalogItemsMethod = CatalogServiceGrpc.getListCatalogItemsMethod) == null) { + CatalogServiceGrpc.getListCatalogItemsMethod = + getListCatalogItemsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCatalogItems")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CatalogServiceMethodDescriptorSupplier("ListCatalogItems")) + .build(); + } + } + } + return getListCatalogItemsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest, + com.google.cloud.recommendationengine.v1beta1.CatalogItem> + getUpdateCatalogItemMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCatalogItem", + requestType = com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.class, + responseType = com.google.cloud.recommendationengine.v1beta1.CatalogItem.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest, + com.google.cloud.recommendationengine.v1beta1.CatalogItem> + getUpdateCatalogItemMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest, + com.google.cloud.recommendationengine.v1beta1.CatalogItem> + getUpdateCatalogItemMethod; + if ((getUpdateCatalogItemMethod = CatalogServiceGrpc.getUpdateCatalogItemMethod) == null) { + synchronized (CatalogServiceGrpc.class) { + if ((getUpdateCatalogItemMethod = CatalogServiceGrpc.getUpdateCatalogItemMethod) == null) { + CatalogServiceGrpc.getUpdateCatalogItemMethod = + getUpdateCatalogItemMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCatalogItem")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.CatalogItem + .getDefaultInstance())) + .setSchemaDescriptor( + new CatalogServiceMethodDescriptorSupplier("UpdateCatalogItem")) + .build(); + } + } + } + return getUpdateCatalogItemMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest, + com.google.protobuf.Empty> + getDeleteCatalogItemMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCatalogItem", + requestType = com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest, + com.google.protobuf.Empty> + getDeleteCatalogItemMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest, + com.google.protobuf.Empty> + getDeleteCatalogItemMethod; + if ((getDeleteCatalogItemMethod = CatalogServiceGrpc.getDeleteCatalogItemMethod) == null) { + synchronized (CatalogServiceGrpc.class) { + if ((getDeleteCatalogItemMethod = CatalogServiceGrpc.getDeleteCatalogItemMethod) == null) { + CatalogServiceGrpc.getDeleteCatalogItemMethod = + getDeleteCatalogItemMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCatalogItem")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new CatalogServiceMethodDescriptorSupplier("DeleteCatalogItem")) + .build(); + } + } + } + return getDeleteCatalogItemMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest, + com.google.longrunning.Operation> + getImportCatalogItemsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportCatalogItems", + requestType = com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest, + com.google.longrunning.Operation> + getImportCatalogItemsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest, + com.google.longrunning.Operation> + getImportCatalogItemsMethod; + if ((getImportCatalogItemsMethod = CatalogServiceGrpc.getImportCatalogItemsMethod) == null) { + synchronized (CatalogServiceGrpc.class) { + if ((getImportCatalogItemsMethod = CatalogServiceGrpc.getImportCatalogItemsMethod) + == null) { + CatalogServiceGrpc.getImportCatalogItemsMethod = + getImportCatalogItemsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportCatalogItems")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1 + .ImportCatalogItemsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CatalogServiceMethodDescriptorSupplier("ImportCatalogItems")) + .build(); + } + } + } + return getImportCatalogItemsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static CatalogServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CatalogServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CatalogServiceStub(channel, callOptions); + } + }; + return CatalogServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CatalogServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CatalogServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CatalogServiceBlockingStub(channel, callOptions); + } + }; + return CatalogServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static CatalogServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CatalogServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CatalogServiceFutureStub(channel, callOptions); + } + }; + return CatalogServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
          +   * Service for ingesting catalog information of the customer's website.
          +   * 
          + */ + public abstract static class CatalogServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
          +     * Creates a catalog item.
          +     * 
          + */ + public void createCatalogItem( + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCatalogItemMethod(), responseObserver); + } + + /** + * + * + *
          +     * Gets a specific catalog item.
          +     * 
          + */ + public void getCatalogItem( + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCatalogItemMethod(), responseObserver); + } + + /** + * + * + *
          +     * Gets a list of catalog items.
          +     * 
          + */ + public void listCatalogItems( + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCatalogItemsMethod(), responseObserver); + } + + /** + * + * + *
          +     * Updates a catalog item. Partial updating is supported. Non-existing
          +     * items will be created.
          +     * 
          + */ + public void updateCatalogItem( + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCatalogItemMethod(), responseObserver); + } + + /** + * + * + *
          +     * Deletes a catalog item.
          +     * 
          + */ + public void deleteCatalogItem( + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCatalogItemMethod(), responseObserver); + } + + /** + * + * + *
          +     * Bulk import of multiple catalog items. Request processing may be
          +     * synchronous. No partial updating supported. Non-existing items will be
          +     * created.
          +     * Operation.response is of type ImportResponse. Note that it is
          +     * possible for a subset of the items to be successfully updated.
          +     * 
          + */ + public void importCatalogItems( + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportCatalogItemsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateCatalogItemMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest, + com.google.cloud.recommendationengine.v1beta1.CatalogItem>( + this, METHODID_CREATE_CATALOG_ITEM))) + .addMethod( + getGetCatalogItemMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest, + com.google.cloud.recommendationengine.v1beta1.CatalogItem>( + this, METHODID_GET_CATALOG_ITEM))) + .addMethod( + getListCatalogItemsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest, + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse>( + this, METHODID_LIST_CATALOG_ITEMS))) + .addMethod( + getUpdateCatalogItemMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest, + com.google.cloud.recommendationengine.v1beta1.CatalogItem>( + this, METHODID_UPDATE_CATALOG_ITEM))) + .addMethod( + getDeleteCatalogItemMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_CATALOG_ITEM))) + .addMethod( + getImportCatalogItemsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest, + com.google.longrunning.Operation>(this, METHODID_IMPORT_CATALOG_ITEMS))) + .build(); + } + } + + /** + * + * + *
          +   * Service for ingesting catalog information of the customer's website.
          +   * 
          + */ + public static final class CatalogServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private CatalogServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CatalogServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CatalogServiceStub(channel, callOptions); + } + + /** + * + * + *
          +     * Creates a catalog item.
          +     * 
          + */ + public void createCatalogItem( + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCatalogItemMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Gets a specific catalog item.
          +     * 
          + */ + public void getCatalogItem( + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCatalogItemMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Gets a list of catalog items.
          +     * 
          + */ + public void listCatalogItems( + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCatalogItemsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Updates a catalog item. Partial updating is supported. Non-existing
          +     * items will be created.
          +     * 
          + */ + public void updateCatalogItem( + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCatalogItemMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Deletes a catalog item.
          +     * 
          + */ + public void deleteCatalogItem( + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCatalogItemMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Bulk import of multiple catalog items. Request processing may be
          +     * synchronous. No partial updating supported. Non-existing items will be
          +     * created.
          +     * Operation.response is of type ImportResponse. Note that it is
          +     * possible for a subset of the items to be successfully updated.
          +     * 
          + */ + public void importCatalogItems( + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportCatalogItemsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
          +   * Service for ingesting catalog information of the customer's website.
          +   * 
          + */ + public static final class CatalogServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private CatalogServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CatalogServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CatalogServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
          +     * Creates a catalog item.
          +     * 
          + */ + public com.google.cloud.recommendationengine.v1beta1.CatalogItem createCatalogItem( + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCatalogItemMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets a specific catalog item.
          +     * 
          + */ + public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItem( + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCatalogItemMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets a list of catalog items.
          +     * 
          + */ + public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse listCatalogItems( + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCatalogItemsMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Updates a catalog item. Partial updating is supported. Non-existing
          +     * items will be created.
          +     * 
          + */ + public com.google.cloud.recommendationengine.v1beta1.CatalogItem updateCatalogItem( + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCatalogItemMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Deletes a catalog item.
          +     * 
          + */ + public com.google.protobuf.Empty deleteCatalogItem( + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCatalogItemMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Bulk import of multiple catalog items. Request processing may be
          +     * synchronous. No partial updating supported. Non-existing items will be
          +     * created.
          +     * Operation.response is of type ImportResponse. Note that it is
          +     * possible for a subset of the items to be successfully updated.
          +     * 
          + */ + public com.google.longrunning.Operation importCatalogItems( + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportCatalogItemsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
          +   * Service for ingesting catalog information of the customer's website.
          +   * 
          + */ + public static final class CatalogServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private CatalogServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CatalogServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CatalogServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
          +     * Creates a catalog item.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.recommendationengine.v1beta1.CatalogItem> + createCatalogItem( + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCatalogItemMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Gets a specific catalog item.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.recommendationengine.v1beta1.CatalogItem> + getCatalogItem( + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCatalogItemMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Gets a list of catalog items.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse> + listCatalogItems( + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCatalogItemsMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Updates a catalog item. Partial updating is supported. Non-existing
          +     * items will be created.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.recommendationengine.v1beta1.CatalogItem> + updateCatalogItem( + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCatalogItemMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Deletes a catalog item.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + deleteCatalogItem( + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCatalogItemMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Bulk import of multiple catalog items. Request processing may be
          +     * synchronous. No partial updating supported. Non-existing items will be
          +     * created.
          +     * Operation.response is of type ImportResponse. Note that it is
          +     * possible for a subset of the items to be successfully updated.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + importCatalogItems( + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportCatalogItemsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CATALOG_ITEM = 0; + private static final int METHODID_GET_CATALOG_ITEM = 1; + private static final int METHODID_LIST_CATALOG_ITEMS = 2; + private static final int METHODID_UPDATE_CATALOG_ITEM = 3; + private static final int METHODID_DELETE_CATALOG_ITEM = 4; + private static final int METHODID_IMPORT_CATALOG_ITEMS = 5; + + 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 CatalogServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CatalogServiceImplBase 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_CATALOG_ITEM: + serviceImpl.createCatalogItem( + (com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.recommendationengine.v1beta1.CatalogItem>) + responseObserver); + break; + case METHODID_GET_CATALOG_ITEM: + serviceImpl.getCatalogItem( + (com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.recommendationengine.v1beta1.CatalogItem>) + responseObserver); + break; + case METHODID_LIST_CATALOG_ITEMS: + serviceImpl.listCatalogItems( + (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse>) + responseObserver); + break; + case METHODID_UPDATE_CATALOG_ITEM: + serviceImpl.updateCatalogItem( + (com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.recommendationengine.v1beta1.CatalogItem>) + responseObserver); + break; + case METHODID_DELETE_CATALOG_ITEM: + serviceImpl.deleteCatalogItem( + (com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_CATALOG_ITEMS: + serviceImpl.importCatalogItems( + (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class CatalogServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CatalogServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CatalogService"); + } + } + + private static final class CatalogServiceFileDescriptorSupplier + extends CatalogServiceBaseDescriptorSupplier { + CatalogServiceFileDescriptorSupplier() {} + } + + private static final class CatalogServiceMethodDescriptorSupplier + extends CatalogServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CatalogServiceMethodDescriptorSupplier(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 (CatalogServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CatalogServiceFileDescriptorSupplier()) + .addMethod(getCreateCatalogItemMethod()) + .addMethod(getGetCatalogItemMethod()) + .addMethod(getListCatalogItemsMethod()) + .addMethod(getUpdateCatalogItemMethod()) + .addMethod(getDeleteCatalogItemMethod()) + .addMethod(getImportCatalogItemsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryGrpc.java b/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryGrpc.java new file mode 100644 index 00000000..6e0954af --- /dev/null +++ b/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryGrpc.java @@ -0,0 +1,699 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.recommendationengine.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
          + * Service for registering API keys for use with the `predict` method. If you
          + * use an API key to request predictions, you must first register the API key.
          + * Otherwise, your prediction request is rejected. If you use OAuth to
          + * authenticate your `predict` method call, you do not need to register an API
          + * key. You can register up to 20 API keys per project.
          + * 
          + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = + "Source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class PredictionApiKeyRegistryGrpc { + + private PredictionApiKeyRegistryGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration> + getCreatePredictionApiKeyRegistrationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePredictionApiKeyRegistration", + requestType = + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest + .class, + responseType = + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration> + getCreatePredictionApiKeyRegistrationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration> + getCreatePredictionApiKeyRegistrationMethod; + if ((getCreatePredictionApiKeyRegistrationMethod = + PredictionApiKeyRegistryGrpc.getCreatePredictionApiKeyRegistrationMethod) + == null) { + synchronized (PredictionApiKeyRegistryGrpc.class) { + if ((getCreatePredictionApiKeyRegistrationMethod = + PredictionApiKeyRegistryGrpc.getCreatePredictionApiKeyRegistrationMethod) + == null) { + PredictionApiKeyRegistryGrpc.getCreatePredictionApiKeyRegistrationMethod = + getCreatePredictionApiKeyRegistrationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "CreatePredictionApiKeyRegistration")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1 + .PredictionApiKeyRegistration.getDefaultInstance())) + .setSchemaDescriptor( + new PredictionApiKeyRegistryMethodDescriptorSupplier( + "CreatePredictionApiKeyRegistration")) + .build(); + } + } + } + return getCreatePredictionApiKeyRegistrationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest, + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse> + getListPredictionApiKeyRegistrationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPredictionApiKeyRegistrations", + requestType = + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest + .class, + responseType = + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse + .class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest, + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse> + getListPredictionApiKeyRegistrationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest, + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse> + getListPredictionApiKeyRegistrationsMethod; + if ((getListPredictionApiKeyRegistrationsMethod = + PredictionApiKeyRegistryGrpc.getListPredictionApiKeyRegistrationsMethod) + == null) { + synchronized (PredictionApiKeyRegistryGrpc.class) { + if ((getListPredictionApiKeyRegistrationsMethod = + PredictionApiKeyRegistryGrpc.getListPredictionApiKeyRegistrationsMethod) + == null) { + PredictionApiKeyRegistryGrpc.getListPredictionApiKeyRegistrationsMethod = + getListPredictionApiKeyRegistrationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListPredictionApiKeyRegistrations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new PredictionApiKeyRegistryMethodDescriptorSupplier( + "ListPredictionApiKeyRegistrations")) + .build(); + } + } + } + return getListPredictionApiKeyRegistrationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest, + com.google.protobuf.Empty> + getDeletePredictionApiKeyRegistrationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePredictionApiKeyRegistration", + requestType = + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest + .class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest, + com.google.protobuf.Empty> + getDeletePredictionApiKeyRegistrationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest, + com.google.protobuf.Empty> + getDeletePredictionApiKeyRegistrationMethod; + if ((getDeletePredictionApiKeyRegistrationMethod = + PredictionApiKeyRegistryGrpc.getDeletePredictionApiKeyRegistrationMethod) + == null) { + synchronized (PredictionApiKeyRegistryGrpc.class) { + if ((getDeletePredictionApiKeyRegistrationMethod = + PredictionApiKeyRegistryGrpc.getDeletePredictionApiKeyRegistrationMethod) + == null) { + PredictionApiKeyRegistryGrpc.getDeletePredictionApiKeyRegistrationMethod = + getDeletePredictionApiKeyRegistrationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "DeletePredictionApiKeyRegistration")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new PredictionApiKeyRegistryMethodDescriptorSupplier( + "DeletePredictionApiKeyRegistration")) + .build(); + } + } + } + return getDeletePredictionApiKeyRegistrationMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static PredictionApiKeyRegistryStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PredictionApiKeyRegistryStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictionApiKeyRegistryStub(channel, callOptions); + } + }; + return PredictionApiKeyRegistryStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static PredictionApiKeyRegistryBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PredictionApiKeyRegistryBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictionApiKeyRegistryBlockingStub(channel, callOptions); + } + }; + return PredictionApiKeyRegistryBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static PredictionApiKeyRegistryFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PredictionApiKeyRegistryFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictionApiKeyRegistryFutureStub(channel, callOptions); + } + }; + return PredictionApiKeyRegistryFutureStub.newStub(factory, channel); + } + + /** + * + * + *
          +   * Service for registering API keys for use with the `predict` method. If you
          +   * use an API key to request predictions, you must first register the API key.
          +   * Otherwise, your prediction request is rejected. If you use OAuth to
          +   * authenticate your `predict` method call, you do not need to register an API
          +   * key. You can register up to 20 API keys per project.
          +   * 
          + */ + public abstract static class PredictionApiKeyRegistryImplBase implements io.grpc.BindableService { + + /** + * + * + *
          +     * Register an API key for use with predict method.
          +     * 
          + */ + public void createPredictionApiKeyRegistration( + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePredictionApiKeyRegistrationMethod(), responseObserver); + } + + /** + * + * + *
          +     * List the registered apiKeys for use with predict method.
          +     * 
          + */ + public void listPredictionApiKeyRegistrations( + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPredictionApiKeyRegistrationsMethod(), responseObserver); + } + + /** + * + * + *
          +     * Unregister an apiKey from using for predict method.
          +     * 
          + */ + public void deletePredictionApiKeyRegistration( + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest + request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePredictionApiKeyRegistrationMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreatePredictionApiKeyRegistrationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration>( + this, METHODID_CREATE_PREDICTION_API_KEY_REGISTRATION))) + .addMethod( + getListPredictionApiKeyRegistrationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsRequest, + com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse>( + this, METHODID_LIST_PREDICTION_API_KEY_REGISTRATIONS))) + .addMethod( + getDeletePredictionApiKeyRegistrationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_PREDICTION_API_KEY_REGISTRATION))) + .build(); + } + } + + /** + * + * + *
          +   * Service for registering API keys for use with the `predict` method. If you
          +   * use an API key to request predictions, you must first register the API key.
          +   * Otherwise, your prediction request is rejected. If you use OAuth to
          +   * authenticate your `predict` method call, you do not need to register an API
          +   * key. You can register up to 20 API keys per project.
          +   * 
          + */ + public static final class PredictionApiKeyRegistryStub + extends io.grpc.stub.AbstractAsyncStub { + private PredictionApiKeyRegistryStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PredictionApiKeyRegistryStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictionApiKeyRegistryStub(channel, callOptions); + } + + /** + * + * + *
          +     * Register an API key for use with predict method.
          +     * 
          + */ + public void createPredictionApiKeyRegistration( + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePredictionApiKeyRegistrationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * List the registered apiKeys for use with predict method.
          +     * 
          + */ + public void listPredictionApiKeyRegistrations( + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPredictionApiKeyRegistrationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Unregister an apiKey from using for predict method.
          +     * 
          + */ + public void deletePredictionApiKeyRegistration( + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest + request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePredictionApiKeyRegistrationMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
          +   * Service for registering API keys for use with the `predict` method. If you
          +   * use an API key to request predictions, you must first register the API key.
          +   * Otherwise, your prediction request is rejected. If you use OAuth to
          +   * authenticate your `predict` method call, you do not need to register an API
          +   * key. You can register up to 20 API keys per project.
          +   * 
          + */ + public static final class PredictionApiKeyRegistryBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private PredictionApiKeyRegistryBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PredictionApiKeyRegistryBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictionApiKeyRegistryBlockingStub(channel, callOptions); + } + + /** + * + * + *
          +     * Register an API key for use with predict method.
          +     * 
          + */ + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + createPredictionApiKeyRegistration( + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePredictionApiKeyRegistrationMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * List the registered apiKeys for use with predict method.
          +     * 
          + */ + public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse + listPredictionApiKeyRegistrations( + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPredictionApiKeyRegistrationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Unregister an apiKey from using for predict method.
          +     * 
          + */ + public com.google.protobuf.Empty deletePredictionApiKeyRegistration( + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePredictionApiKeyRegistrationMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
          +   * Service for registering API keys for use with the `predict` method. If you
          +   * use an API key to request predictions, you must first register the API key.
          +   * Otherwise, your prediction request is rejected. If you use OAuth to
          +   * authenticate your `predict` method call, you do not need to register an API
          +   * key. You can register up to 20 API keys per project.
          +   * 
          + */ + public static final class PredictionApiKeyRegistryFutureStub + extends io.grpc.stub.AbstractFutureStub { + private PredictionApiKeyRegistryFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PredictionApiKeyRegistryFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictionApiKeyRegistryFutureStub(channel, callOptions); + } + + /** + * + * + *
          +     * Register an API key for use with predict method.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration> + createPredictionApiKeyRegistration( + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePredictionApiKeyRegistrationMethod(), getCallOptions()), + request); + } + + /** + * + * + *
          +     * List the registered apiKeys for use with predict method.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse> + listPredictionApiKeyRegistrations( + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPredictionApiKeyRegistrationsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
          +     * Unregister an apiKey from using for predict method.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + deletePredictionApiKeyRegistration( + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePredictionApiKeyRegistrationMethod(), getCallOptions()), + request); + } + } + + private static final int METHODID_CREATE_PREDICTION_API_KEY_REGISTRATION = 0; + private static final int METHODID_LIST_PREDICTION_API_KEY_REGISTRATIONS = 1; + private static final int METHODID_DELETE_PREDICTION_API_KEY_REGISTRATION = 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 PredictionApiKeyRegistryImplBase serviceImpl; + private final int methodId; + + MethodHandlers(PredictionApiKeyRegistryImplBase 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_PREDICTION_API_KEY_REGISTRATION: + serviceImpl.createPredictionApiKeyRegistration( + (com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration>) + responseObserver); + break; + case METHODID_LIST_PREDICTION_API_KEY_REGISTRATIONS: + serviceImpl.listPredictionApiKeyRegistrations( + (com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse>) + responseObserver); + break; + case METHODID_DELETE_PREDICTION_API_KEY_REGISTRATION: + serviceImpl.deletePredictionApiKeyRegistration( + (com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class PredictionApiKeyRegistryBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + PredictionApiKeyRegistryBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("PredictionApiKeyRegistry"); + } + } + + private static final class PredictionApiKeyRegistryFileDescriptorSupplier + extends PredictionApiKeyRegistryBaseDescriptorSupplier { + PredictionApiKeyRegistryFileDescriptorSupplier() {} + } + + private static final class PredictionApiKeyRegistryMethodDescriptorSupplier + extends PredictionApiKeyRegistryBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + PredictionApiKeyRegistryMethodDescriptorSupplier(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 (PredictionApiKeyRegistryGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PredictionApiKeyRegistryFileDescriptorSupplier()) + .addMethod(getCreatePredictionApiKeyRegistrationMethod()) + .addMethod(getListPredictionApiKeyRegistrationsMethod()) + .addMethod(getDeletePredictionApiKeyRegistrationMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceGrpc.java b/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceGrpc.java similarity index 53% rename from owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceGrpc.java rename to grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceGrpc.java index 725afec3..2127279f 100644 --- a/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceGrpc.java +++ b/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.recommendationengine.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
            * Service for making recommendation prediction.
            * 
          @@ -15,92 +32,109 @@ public final class PredictionServiceGrpc { private PredictionServiceGrpc() {} - public static final String SERVICE_NAME = "google.cloud.recommendationengine.v1beta1.PredictionService"; + public static final String SERVICE_NAME = + "google.cloud.recommendationengine.v1beta1.PredictionService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getPredictMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.PredictRequest, + com.google.cloud.recommendationengine.v1beta1.PredictResponse> + getPredictMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Predict", requestType = com.google.cloud.recommendationengine.v1beta1.PredictRequest.class, responseType = com.google.cloud.recommendationengine.v1beta1.PredictResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPredictMethod() { - io.grpc.MethodDescriptor getPredictMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.PredictRequest, + com.google.cloud.recommendationengine.v1beta1.PredictResponse> + getPredictMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.PredictRequest, + com.google.cloud.recommendationengine.v1beta1.PredictResponse> + getPredictMethod; if ((getPredictMethod = PredictionServiceGrpc.getPredictMethod) == null) { synchronized (PredictionServiceGrpc.class) { if ((getPredictMethod = PredictionServiceGrpc.getPredictMethod) == null) { - PredictionServiceGrpc.getPredictMethod = getPredictMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Predict")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.PredictRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.PredictResponse.getDefaultInstance())) - .setSchemaDescriptor(new PredictionServiceMethodDescriptorSupplier("Predict")) - .build(); + PredictionServiceGrpc.getPredictMethod = + getPredictMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Predict")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.PredictRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.PredictResponse + .getDefaultInstance())) + .setSchemaDescriptor(new PredictionServiceMethodDescriptorSupplier("Predict")) + .build(); } } } return getPredictMethod; } - /** - * Creates a new async stub that supports all call types for the service - */ + /** Creates a new async stub that supports all call types for the service */ public static PredictionServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PredictionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PredictionServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PredictionServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictionServiceStub(channel, callOptions); + } + }; return PredictionServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static PredictionServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { + public static PredictionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PredictionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PredictionServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PredictionServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictionServiceBlockingStub(channel, callOptions); + } + }; return PredictionServiceBlockingStub.newStub(factory, channel); } - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static PredictionServiceFutureStub newFutureStub( - io.grpc.Channel channel) { + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static PredictionServiceFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PredictionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PredictionServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PredictionServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PredictionServiceFutureStub(channel, callOptions); + } + }; return PredictionServiceFutureStub.newStub(factory, channel); } /** + * + * *
              * Service for making recommendation prediction.
              * 
          */ - public static abstract class PredictionServiceImplBase implements io.grpc.BindableService { + public abstract static class PredictionServiceImplBase implements io.grpc.BindableService { /** + * + * *
                * Makes a recommendation prediction. If using API Key based authentication,
                * the API Key must be registered using the
          @@ -108,32 +142,37 @@ public static abstract class PredictionServiceImplBase implements io.grpc.Bindab
                * service. [Learn more](/recommendations-ai/docs/setting-up#register-key).
                * 
          */ - public void predict(com.google.cloud.recommendationengine.v1beta1.PredictRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void predict( + com.google.cloud.recommendationengine.v1beta1.PredictRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPredictMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getPredictMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.PredictRequest, - com.google.cloud.recommendationengine.v1beta1.PredictResponse>( - this, METHODID_PREDICT))) + getPredictMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.PredictRequest, + com.google.cloud.recommendationengine.v1beta1.PredictResponse>( + this, METHODID_PREDICT))) .build(); } } /** + * + * *
              * Service for making recommendation prediction.
              * 
          */ - public static final class PredictionServiceStub extends io.grpc.stub.AbstractAsyncStub { - private PredictionServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PredictionServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private PredictionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -144,6 +183,8 @@ protected PredictionServiceStub build( } /** + * + * *
                * Makes a recommendation prediction. If using API Key based authentication,
                * the API Key must be registered using the
          @@ -151,19 +192,24 @@ protected PredictionServiceStub build(
                * service. [Learn more](/recommendations-ai/docs/setting-up#register-key).
                * 
          */ - public void predict(com.google.cloud.recommendationengine.v1beta1.PredictRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void predict( + com.google.cloud.recommendationengine.v1beta1.PredictRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPredictMethod(), getCallOptions()), request, responseObserver); } } /** + * + * *
              * Service for making recommendation prediction.
              * 
          */ - public static final class PredictionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + public static final class PredictionServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { private PredictionServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -176,6 +222,8 @@ protected PredictionServiceBlockingStub build( } /** + * + * *
                * Makes a recommendation prediction. If using API Key based authentication,
                * the API Key must be registered using the
          @@ -183,20 +231,23 @@ protected PredictionServiceBlockingStub build(
                * service. [Learn more](/recommendations-ai/docs/setting-up#register-key).
                * 
          */ - public com.google.cloud.recommendationengine.v1beta1.PredictResponse predict(com.google.cloud.recommendationengine.v1beta1.PredictRequest request) { + public com.google.cloud.recommendationengine.v1beta1.PredictResponse predict( + com.google.cloud.recommendationengine.v1beta1.PredictRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPredictMethod(), getCallOptions(), request); } } /** + * + * *
              * Service for making recommendation prediction.
              * 
          */ - public static final class PredictionServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private PredictionServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PredictionServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private PredictionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -207,6 +258,8 @@ protected PredictionServiceFutureStub build( } /** + * + * *
                * Makes a recommendation prediction. If using API Key based authentication,
                * the API Key must be registered using the
          @@ -214,8 +267,9 @@ protected PredictionServiceFutureStub build(
                * service. [Learn more](/recommendations-ai/docs/setting-up#register-key).
                * 
          */ - public com.google.common.util.concurrent.ListenableFuture predict( - com.google.cloud.recommendationengine.v1beta1.PredictRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.recommendationengine.v1beta1.PredictResponse> + predict(com.google.cloud.recommendationengine.v1beta1.PredictRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPredictMethod(), getCallOptions()), request); } @@ -223,11 +277,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final PredictionServiceImplBase serviceImpl; private final int methodId; @@ -241,8 +295,11 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_PREDICT: - serviceImpl.predict((com.google.cloud.recommendationengine.v1beta1.PredictRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.predict( + (com.google.cloud.recommendationengine.v1beta1.PredictRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.recommendationengine.v1beta1.PredictResponse>) + responseObserver); break; default: throw new AssertionError(); @@ -260,13 +317,15 @@ public io.grpc.stub.StreamObserver invoke( } } - private static abstract class PredictionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class PredictionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { PredictionServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.getDescriptor(); + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass + .getDescriptor(); } @java.lang.Override @@ -303,10 +362,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (PredictionServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PredictionServiceFileDescriptorSupplier()) - .addMethod(getPredictMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PredictionServiceFileDescriptorSupplier()) + .addMethod(getPredictMethod()) + .build(); } } } diff --git a/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceGrpc.java b/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceGrpc.java new file mode 100644 index 00000000..2594be65 --- /dev/null +++ b/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceGrpc.java @@ -0,0 +1,883 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.recommendationengine.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
          + * Service for ingesting end user actions on the customer website.
          + * 
          + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/recommendationengine/v1beta1/user_event_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class UserEventServiceGrpc { + + private UserEventServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.recommendationengine.v1beta1.UserEventService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest, + com.google.cloud.recommendationengine.v1beta1.UserEvent> + getWriteUserEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "WriteUserEvent", + requestType = com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.class, + responseType = com.google.cloud.recommendationengine.v1beta1.UserEvent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest, + com.google.cloud.recommendationengine.v1beta1.UserEvent> + getWriteUserEventMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest, + com.google.cloud.recommendationengine.v1beta1.UserEvent> + getWriteUserEventMethod; + if ((getWriteUserEventMethod = UserEventServiceGrpc.getWriteUserEventMethod) == null) { + synchronized (UserEventServiceGrpc.class) { + if ((getWriteUserEventMethod = UserEventServiceGrpc.getWriteUserEventMethod) == null) { + UserEventServiceGrpc.getWriteUserEventMethod = + getWriteUserEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WriteUserEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.UserEvent + .getDefaultInstance())) + .setSchemaDescriptor( + new UserEventServiceMethodDescriptorSupplier("WriteUserEvent")) + .build(); + } + } + } + return getWriteUserEventMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest, + com.google.api.HttpBody> + getCollectUserEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CollectUserEvent", + requestType = com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.class, + responseType = com.google.api.HttpBody.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest, + com.google.api.HttpBody> + getCollectUserEventMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest, + com.google.api.HttpBody> + getCollectUserEventMethod; + if ((getCollectUserEventMethod = UserEventServiceGrpc.getCollectUserEventMethod) == null) { + synchronized (UserEventServiceGrpc.class) { + if ((getCollectUserEventMethod = UserEventServiceGrpc.getCollectUserEventMethod) == null) { + UserEventServiceGrpc.getCollectUserEventMethod = + getCollectUserEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CollectUserEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.api.HttpBody.getDefaultInstance())) + .setSchemaDescriptor( + new UserEventServiceMethodDescriptorSupplier("CollectUserEvent")) + .build(); + } + } + } + return getCollectUserEventMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest, + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse> + getListUserEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUserEvents", + requestType = com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.class, + responseType = com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest, + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse> + getListUserEventsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest, + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse> + getListUserEventsMethod; + if ((getListUserEventsMethod = UserEventServiceGrpc.getListUserEventsMethod) == null) { + synchronized (UserEventServiceGrpc.class) { + if ((getListUserEventsMethod = UserEventServiceGrpc.getListUserEventsMethod) == null) { + UserEventServiceGrpc.getListUserEventsMethod = + getListUserEventsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUserEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new UserEventServiceMethodDescriptorSupplier("ListUserEvents")) + .build(); + } + } + } + return getListUserEventsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest, + com.google.longrunning.Operation> + getPurgeUserEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PurgeUserEvents", + requestType = com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest, + com.google.longrunning.Operation> + getPurgeUserEventsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest, + com.google.longrunning.Operation> + getPurgeUserEventsMethod; + if ((getPurgeUserEventsMethod = UserEventServiceGrpc.getPurgeUserEventsMethod) == null) { + synchronized (UserEventServiceGrpc.class) { + if ((getPurgeUserEventsMethod = UserEventServiceGrpc.getPurgeUserEventsMethod) == null) { + UserEventServiceGrpc.getPurgeUserEventsMethod = + getPurgeUserEventsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeUserEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new UserEventServiceMethodDescriptorSupplier("PurgeUserEvents")) + .build(); + } + } + } + return getPurgeUserEventsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest, + com.google.longrunning.Operation> + getImportUserEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportUserEvents", + requestType = com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest, + com.google.longrunning.Operation> + getImportUserEventsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest, + com.google.longrunning.Operation> + getImportUserEventsMethod; + if ((getImportUserEventsMethod = UserEventServiceGrpc.getImportUserEventsMethod) == null) { + synchronized (UserEventServiceGrpc.class) { + if ((getImportUserEventsMethod = UserEventServiceGrpc.getImportUserEventsMethod) == null) { + UserEventServiceGrpc.getImportUserEventsMethod = + getImportUserEventsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportUserEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new UserEventServiceMethodDescriptorSupplier("ImportUserEvents")) + .build(); + } + } + } + return getImportUserEventsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static UserEventServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UserEventServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserEventServiceStub(channel, callOptions); + } + }; + return UserEventServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static UserEventServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UserEventServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserEventServiceBlockingStub(channel, callOptions); + } + }; + return UserEventServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static UserEventServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UserEventServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserEventServiceFutureStub(channel, callOptions); + } + }; + return UserEventServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
          +   * Service for ingesting end user actions on the customer website.
          +   * 
          + */ + public abstract static class UserEventServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
          +     * Writes a single user event.
          +     * 
          + */ + public void writeUserEvent( + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getWriteUserEventMethod(), responseObserver); + } + + /** + * + * + *
          +     * Writes a single user event from the browser. This uses a GET request to
          +     * due to browser restriction of POST-ing to a 3rd party domain.
          +     * This method is used only by the Recommendations AI JavaScript pixel.
          +     * Users should not call this method directly.
          +     * 
          + */ + public void collectUserEvent( + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCollectUserEventMethod(), responseObserver); + } + + /** + * + * + *
          +     * Gets a list of user events within a time range, with potential filtering.
          +     * 
          + */ + public void listUserEvents( + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListUserEventsMethod(), responseObserver); + } + + /** + * + * + *
          +     * Deletes permanently all user events specified by the filter provided.
          +     * Depending on the number of events specified by the filter, this operation
          +     * could take hours or days to complete. To test a filter, use the list
          +     * command first.
          +     * 
          + */ + public void purgeUserEvents( + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPurgeUserEventsMethod(), responseObserver); + } + + /** + * + * + *
          +     * Bulk import of User events. Request processing might be
          +     * synchronous. Events that already exist are skipped.
          +     * Use this method for backfilling historical user events.
          +     * Operation.response is of type ImportResponse. Note that it is
          +     * possible for a subset of the items to be successfully inserted.
          +     * Operation.metadata is of type ImportMetadata.
          +     * 
          + */ + public void importUserEvents( + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportUserEventsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getWriteUserEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest, + com.google.cloud.recommendationengine.v1beta1.UserEvent>( + this, METHODID_WRITE_USER_EVENT))) + .addMethod( + getCollectUserEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest, + com.google.api.HttpBody>(this, METHODID_COLLECT_USER_EVENT))) + .addMethod( + getListUserEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest, + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse>( + this, METHODID_LIST_USER_EVENTS))) + .addMethod( + getPurgeUserEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest, + com.google.longrunning.Operation>(this, METHODID_PURGE_USER_EVENTS))) + .addMethod( + getImportUserEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest, + com.google.longrunning.Operation>(this, METHODID_IMPORT_USER_EVENTS))) + .build(); + } + } + + /** + * + * + *
          +   * Service for ingesting end user actions on the customer website.
          +   * 
          + */ + public static final class UserEventServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private UserEventServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UserEventServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserEventServiceStub(channel, callOptions); + } + + /** + * + * + *
          +     * Writes a single user event.
          +     * 
          + */ + public void writeUserEvent( + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getWriteUserEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Writes a single user event from the browser. This uses a GET request to
          +     * due to browser restriction of POST-ing to a 3rd party domain.
          +     * This method is used only by the Recommendations AI JavaScript pixel.
          +     * Users should not call this method directly.
          +     * 
          + */ + public void collectUserEvent( + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCollectUserEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Gets a list of user events within a time range, with potential filtering.
          +     * 
          + */ + public void listUserEvents( + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUserEventsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Deletes permanently all user events specified by the filter provided.
          +     * Depending on the number of events specified by the filter, this operation
          +     * could take hours or days to complete. To test a filter, use the list
          +     * command first.
          +     * 
          + */ + public void purgeUserEvents( + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPurgeUserEventsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Bulk import of User events. Request processing might be
          +     * synchronous. Events that already exist are skipped.
          +     * Use this method for backfilling historical user events.
          +     * Operation.response is of type ImportResponse. Note that it is
          +     * possible for a subset of the items to be successfully inserted.
          +     * Operation.metadata is of type ImportMetadata.
          +     * 
          + */ + public void importUserEvents( + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportUserEventsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
          +   * Service for ingesting end user actions on the customer website.
          +   * 
          + */ + public static final class UserEventServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private UserEventServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UserEventServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserEventServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
          +     * Writes a single user event.
          +     * 
          + */ + public com.google.cloud.recommendationengine.v1beta1.UserEvent writeUserEvent( + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getWriteUserEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Writes a single user event from the browser. This uses a GET request to
          +     * due to browser restriction of POST-ing to a 3rd party domain.
          +     * This method is used only by the Recommendations AI JavaScript pixel.
          +     * Users should not call this method directly.
          +     * 
          + */ + public com.google.api.HttpBody collectUserEvent( + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCollectUserEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets a list of user events within a time range, with potential filtering.
          +     * 
          + */ + public com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse listUserEvents( + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUserEventsMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Deletes permanently all user events specified by the filter provided.
          +     * Depending on the number of events specified by the filter, this operation
          +     * could take hours or days to complete. To test a filter, use the list
          +     * command first.
          +     * 
          + */ + public com.google.longrunning.Operation purgeUserEvents( + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPurgeUserEventsMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Bulk import of User events. Request processing might be
          +     * synchronous. Events that already exist are skipped.
          +     * Use this method for backfilling historical user events.
          +     * Operation.response is of type ImportResponse. Note that it is
          +     * possible for a subset of the items to be successfully inserted.
          +     * Operation.metadata is of type ImportMetadata.
          +     * 
          + */ + public com.google.longrunning.Operation importUserEvents( + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportUserEventsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
          +   * Service for ingesting end user actions on the customer website.
          +   * 
          + */ + public static final class UserEventServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private UserEventServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UserEventServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserEventServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
          +     * Writes a single user event.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.recommendationengine.v1beta1.UserEvent> + writeUserEvent( + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getWriteUserEventMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Writes a single user event from the browser. This uses a GET request to
          +     * due to browser restriction of POST-ing to a 3rd party domain.
          +     * This method is used only by the Recommendations AI JavaScript pixel.
          +     * Users should not call this method directly.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + collectUserEvent( + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCollectUserEventMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Gets a list of user events within a time range, with potential filtering.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse> + listUserEvents( + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUserEventsMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Deletes permanently all user events specified by the filter provided.
          +     * Depending on the number of events specified by the filter, this operation
          +     * could take hours or days to complete. To test a filter, use the list
          +     * command first.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + purgeUserEvents( + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPurgeUserEventsMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Bulk import of User events. Request processing might be
          +     * synchronous. Events that already exist are skipped.
          +     * Use this method for backfilling historical user events.
          +     * Operation.response is of type ImportResponse. Note that it is
          +     * possible for a subset of the items to be successfully inserted.
          +     * Operation.metadata is of type ImportMetadata.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + importUserEvents( + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportUserEventsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_WRITE_USER_EVENT = 0; + private static final int METHODID_COLLECT_USER_EVENT = 1; + private static final int METHODID_LIST_USER_EVENTS = 2; + private static final int METHODID_PURGE_USER_EVENTS = 3; + private static final int METHODID_IMPORT_USER_EVENTS = 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 UserEventServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(UserEventServiceImplBase 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_WRITE_USER_EVENT: + serviceImpl.writeUserEvent( + (com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_COLLECT_USER_EVENT: + serviceImpl.collectUserEvent( + (com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_USER_EVENTS: + serviceImpl.listUserEvents( + (com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse>) + responseObserver); + break; + case METHODID_PURGE_USER_EVENTS: + serviceImpl.purgeUserEvents( + (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_USER_EVENTS: + serviceImpl.importUserEvents( + (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class UserEventServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + UserEventServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("UserEventService"); + } + } + + private static final class UserEventServiceFileDescriptorSupplier + extends UserEventServiceBaseDescriptorSupplier { + UserEventServiceFileDescriptorSupplier() {} + } + + private static final class UserEventServiceMethodDescriptorSupplier + extends UserEventServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + UserEventServiceMethodDescriptorSupplier(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 (UserEventServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new UserEventServiceFileDescriptorSupplier()) + .addMethod(getWriteUserEventMethod()) + .addMethod(getCollectUserEventMethod()) + .addMethod(getListUserEventsMethod()) + .addMethod(getPurgeUserEventsMethod()) + .addMethod(getImportUserEventsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceGrpc.java deleted file mode 100644 index ae0fe8f6..00000000 --- a/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceGrpc.java +++ /dev/null @@ -1,753 +0,0 @@ -package com.google.cloud.recommendationengine.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
          - * Service for ingesting catalog information of the customer's website.
          - * 
          - */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/recommendationengine/v1beta1/catalog_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CatalogServiceGrpc { - - private CatalogServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.recommendationengine.v1beta1.CatalogService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateCatalogItemMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCatalogItem", - requestType = com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.class, - responseType = com.google.cloud.recommendationengine.v1beta1.CatalogItem.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateCatalogItemMethod() { - io.grpc.MethodDescriptor getCreateCatalogItemMethod; - if ((getCreateCatalogItemMethod = CatalogServiceGrpc.getCreateCatalogItemMethod) == null) { - synchronized (CatalogServiceGrpc.class) { - if ((getCreateCatalogItemMethod = CatalogServiceGrpc.getCreateCatalogItemMethod) == null) { - CatalogServiceGrpc.getCreateCatalogItemMethod = getCreateCatalogItemMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCatalogItem")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance())) - .setSchemaDescriptor(new CatalogServiceMethodDescriptorSupplier("CreateCatalogItem")) - .build(); - } - } - } - return getCreateCatalogItemMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCatalogItemMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCatalogItem", - requestType = com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.class, - responseType = com.google.cloud.recommendationengine.v1beta1.CatalogItem.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCatalogItemMethod() { - io.grpc.MethodDescriptor getGetCatalogItemMethod; - if ((getGetCatalogItemMethod = CatalogServiceGrpc.getGetCatalogItemMethod) == null) { - synchronized (CatalogServiceGrpc.class) { - if ((getGetCatalogItemMethod = CatalogServiceGrpc.getGetCatalogItemMethod) == null) { - CatalogServiceGrpc.getGetCatalogItemMethod = getGetCatalogItemMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCatalogItem")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance())) - .setSchemaDescriptor(new CatalogServiceMethodDescriptorSupplier("GetCatalogItem")) - .build(); - } - } - } - return getGetCatalogItemMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCatalogItemsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCatalogItems", - requestType = com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.class, - responseType = com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCatalogItemsMethod() { - io.grpc.MethodDescriptor getListCatalogItemsMethod; - if ((getListCatalogItemsMethod = CatalogServiceGrpc.getListCatalogItemsMethod) == null) { - synchronized (CatalogServiceGrpc.class) { - if ((getListCatalogItemsMethod = CatalogServiceGrpc.getListCatalogItemsMethod) == null) { - CatalogServiceGrpc.getListCatalogItemsMethod = getListCatalogItemsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCatalogItems")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.getDefaultInstance())) - .setSchemaDescriptor(new CatalogServiceMethodDescriptorSupplier("ListCatalogItems")) - .build(); - } - } - } - return getListCatalogItemsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateCatalogItemMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCatalogItem", - requestType = com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.class, - responseType = com.google.cloud.recommendationengine.v1beta1.CatalogItem.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateCatalogItemMethod() { - io.grpc.MethodDescriptor getUpdateCatalogItemMethod; - if ((getUpdateCatalogItemMethod = CatalogServiceGrpc.getUpdateCatalogItemMethod) == null) { - synchronized (CatalogServiceGrpc.class) { - if ((getUpdateCatalogItemMethod = CatalogServiceGrpc.getUpdateCatalogItemMethod) == null) { - CatalogServiceGrpc.getUpdateCatalogItemMethod = getUpdateCatalogItemMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCatalogItem")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance())) - .setSchemaDescriptor(new CatalogServiceMethodDescriptorSupplier("UpdateCatalogItem")) - .build(); - } - } - } - return getUpdateCatalogItemMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteCatalogItemMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCatalogItem", - requestType = com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteCatalogItemMethod() { - io.grpc.MethodDescriptor getDeleteCatalogItemMethod; - if ((getDeleteCatalogItemMethod = CatalogServiceGrpc.getDeleteCatalogItemMethod) == null) { - synchronized (CatalogServiceGrpc.class) { - if ((getDeleteCatalogItemMethod = CatalogServiceGrpc.getDeleteCatalogItemMethod) == null) { - CatalogServiceGrpc.getDeleteCatalogItemMethod = getDeleteCatalogItemMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCatalogItem")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new CatalogServiceMethodDescriptorSupplier("DeleteCatalogItem")) - .build(); - } - } - } - return getDeleteCatalogItemMethod; - } - - private static volatile io.grpc.MethodDescriptor getImportCatalogItemsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ImportCatalogItems", - requestType = com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getImportCatalogItemsMethod() { - io.grpc.MethodDescriptor getImportCatalogItemsMethod; - if ((getImportCatalogItemsMethod = CatalogServiceGrpc.getImportCatalogItemsMethod) == null) { - synchronized (CatalogServiceGrpc.class) { - if ((getImportCatalogItemsMethod = CatalogServiceGrpc.getImportCatalogItemsMethod) == null) { - CatalogServiceGrpc.getImportCatalogItemsMethod = getImportCatalogItemsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportCatalogItems")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CatalogServiceMethodDescriptorSupplier("ImportCatalogItems")) - .build(); - } - } - } - return getImportCatalogItemsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static CatalogServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CatalogServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CatalogServiceStub(channel, callOptions); - } - }; - return CatalogServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CatalogServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CatalogServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CatalogServiceBlockingStub(channel, callOptions); - } - }; - return CatalogServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static CatalogServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CatalogServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CatalogServiceFutureStub(channel, callOptions); - } - }; - return CatalogServiceFutureStub.newStub(factory, channel); - } - - /** - *
          -   * Service for ingesting catalog information of the customer's website.
          -   * 
          - */ - public static abstract class CatalogServiceImplBase implements io.grpc.BindableService { - - /** - *
          -     * Creates a catalog item.
          -     * 
          - */ - public void createCatalogItem(com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCatalogItemMethod(), responseObserver); - } - - /** - *
          -     * Gets a specific catalog item.
          -     * 
          - */ - public void getCatalogItem(com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCatalogItemMethod(), responseObserver); - } - - /** - *
          -     * Gets a list of catalog items.
          -     * 
          - */ - public void listCatalogItems(com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCatalogItemsMethod(), responseObserver); - } - - /** - *
          -     * Updates a catalog item. Partial updating is supported. Non-existing
          -     * items will be created.
          -     * 
          - */ - public void updateCatalogItem(com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCatalogItemMethod(), responseObserver); - } - - /** - *
          -     * Deletes a catalog item.
          -     * 
          - */ - public void deleteCatalogItem(com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCatalogItemMethod(), responseObserver); - } - - /** - *
          -     * Bulk import of multiple catalog items. Request processing may be
          -     * synchronous. No partial updating supported. Non-existing items will be
          -     * created.
          -     * Operation.response is of type ImportResponse. Note that it is
          -     * possible for a subset of the items to be successfully updated.
          -     * 
          - */ - public void importCatalogItems(com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportCatalogItemsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateCatalogItemMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest, - com.google.cloud.recommendationengine.v1beta1.CatalogItem>( - this, METHODID_CREATE_CATALOG_ITEM))) - .addMethod( - getGetCatalogItemMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest, - com.google.cloud.recommendationengine.v1beta1.CatalogItem>( - this, METHODID_GET_CATALOG_ITEM))) - .addMethod( - getListCatalogItemsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest, - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse>( - this, METHODID_LIST_CATALOG_ITEMS))) - .addMethod( - getUpdateCatalogItemMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest, - com.google.cloud.recommendationengine.v1beta1.CatalogItem>( - this, METHODID_UPDATE_CATALOG_ITEM))) - .addMethod( - getDeleteCatalogItemMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_CATALOG_ITEM))) - .addMethod( - getImportCatalogItemsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest, - com.google.longrunning.Operation>( - this, METHODID_IMPORT_CATALOG_ITEMS))) - .build(); - } - } - - /** - *
          -   * Service for ingesting catalog information of the customer's website.
          -   * 
          - */ - public static final class CatalogServiceStub extends io.grpc.stub.AbstractAsyncStub { - private CatalogServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CatalogServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CatalogServiceStub(channel, callOptions); - } - - /** - *
          -     * Creates a catalog item.
          -     * 
          - */ - public void createCatalogItem(com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCatalogItemMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
          -     * Gets a specific catalog item.
          -     * 
          - */ - public void getCatalogItem(com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCatalogItemMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
          -     * Gets a list of catalog items.
          -     * 
          - */ - public void listCatalogItems(com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCatalogItemsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
          -     * Updates a catalog item. Partial updating is supported. Non-existing
          -     * items will be created.
          -     * 
          - */ - public void updateCatalogItem(com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCatalogItemMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
          -     * Deletes a catalog item.
          -     * 
          - */ - public void deleteCatalogItem(com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCatalogItemMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
          -     * Bulk import of multiple catalog items. Request processing may be
          -     * synchronous. No partial updating supported. Non-existing items will be
          -     * created.
          -     * Operation.response is of type ImportResponse. Note that it is
          -     * possible for a subset of the items to be successfully updated.
          -     * 
          - */ - public void importCatalogItems(com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportCatalogItemsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
          -   * Service for ingesting catalog information of the customer's website.
          -   * 
          - */ - public static final class CatalogServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private CatalogServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CatalogServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CatalogServiceBlockingStub(channel, callOptions); - } - - /** - *
          -     * Creates a catalog item.
          -     * 
          - */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem createCatalogItem(com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCatalogItemMethod(), getCallOptions(), request); - } - - /** - *
          -     * Gets a specific catalog item.
          -     * 
          - */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItem(com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCatalogItemMethod(), getCallOptions(), request); - } - - /** - *
          -     * Gets a list of catalog items.
          -     * 
          - */ - public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse listCatalogItems(com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCatalogItemsMethod(), getCallOptions(), request); - } - - /** - *
          -     * Updates a catalog item. Partial updating is supported. Non-existing
          -     * items will be created.
          -     * 
          - */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem updateCatalogItem(com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCatalogItemMethod(), getCallOptions(), request); - } - - /** - *
          -     * Deletes a catalog item.
          -     * 
          - */ - public com.google.protobuf.Empty deleteCatalogItem(com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCatalogItemMethod(), getCallOptions(), request); - } - - /** - *
          -     * Bulk import of multiple catalog items. Request processing may be
          -     * synchronous. No partial updating supported. Non-existing items will be
          -     * created.
          -     * Operation.response is of type ImportResponse. Note that it is
          -     * possible for a subset of the items to be successfully updated.
          -     * 
          - */ - public com.google.longrunning.Operation importCatalogItems(com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getImportCatalogItemsMethod(), getCallOptions(), request); - } - } - - /** - *
          -   * Service for ingesting catalog information of the customer's website.
          -   * 
          - */ - public static final class CatalogServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private CatalogServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CatalogServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CatalogServiceFutureStub(channel, callOptions); - } - - /** - *
          -     * Creates a catalog item.
          -     * 
          - */ - public com.google.common.util.concurrent.ListenableFuture createCatalogItem( - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCatalogItemMethod(), getCallOptions()), request); - } - - /** - *
          -     * Gets a specific catalog item.
          -     * 
          - */ - public com.google.common.util.concurrent.ListenableFuture getCatalogItem( - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCatalogItemMethod(), getCallOptions()), request); - } - - /** - *
          -     * Gets a list of catalog items.
          -     * 
          - */ - public com.google.common.util.concurrent.ListenableFuture listCatalogItems( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCatalogItemsMethod(), getCallOptions()), request); - } - - /** - *
          -     * Updates a catalog item. Partial updating is supported. Non-existing
          -     * items will be created.
          -     * 
          - */ - public com.google.common.util.concurrent.ListenableFuture updateCatalogItem( - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCatalogItemMethod(), getCallOptions()), request); - } - - /** - *
          -     * Deletes a catalog item.
          -     * 
          - */ - public com.google.common.util.concurrent.ListenableFuture deleteCatalogItem( - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCatalogItemMethod(), getCallOptions()), request); - } - - /** - *
          -     * Bulk import of multiple catalog items. Request processing may be
          -     * synchronous. No partial updating supported. Non-existing items will be
          -     * created.
          -     * Operation.response is of type ImportResponse. Note that it is
          -     * possible for a subset of the items to be successfully updated.
          -     * 
          - */ - public com.google.common.util.concurrent.ListenableFuture importCatalogItems( - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getImportCatalogItemsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CATALOG_ITEM = 0; - private static final int METHODID_GET_CATALOG_ITEM = 1; - private static final int METHODID_LIST_CATALOG_ITEMS = 2; - private static final int METHODID_UPDATE_CATALOG_ITEM = 3; - private static final int METHODID_DELETE_CATALOG_ITEM = 4; - private static final int METHODID_IMPORT_CATALOG_ITEMS = 5; - - 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 CatalogServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CatalogServiceImplBase 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_CATALOG_ITEM: - serviceImpl.createCatalogItem((com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CATALOG_ITEM: - serviceImpl.getCatalogItem((com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CATALOG_ITEMS: - serviceImpl.listCatalogItems((com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CATALOG_ITEM: - serviceImpl.updateCatalogItem((com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CATALOG_ITEM: - serviceImpl.deleteCatalogItem((com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_IMPORT_CATALOG_ITEMS: - serviceImpl.importCatalogItems((com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) 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 CatalogServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CatalogServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CatalogService"); - } - } - - private static final class CatalogServiceFileDescriptorSupplier - extends CatalogServiceBaseDescriptorSupplier { - CatalogServiceFileDescriptorSupplier() {} - } - - private static final class CatalogServiceMethodDescriptorSupplier - extends CatalogServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CatalogServiceMethodDescriptorSupplier(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 (CatalogServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CatalogServiceFileDescriptorSupplier()) - .addMethod(getCreateCatalogItemMethod()) - .addMethod(getGetCatalogItemMethod()) - .addMethod(getListCatalogItemsMethod()) - .addMethod(getUpdateCatalogItemMethod()) - .addMethod(getDeleteCatalogItemMethod()) - .addMethod(getImportCatalogItemsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryGrpc.java deleted file mode 100644 index f6b5a339..00000000 --- a/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryGrpc.java +++ /dev/null @@ -1,495 +0,0 @@ -package com.google.cloud.recommendationengine.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
          - * Service for registering API keys for use with the `predict` method. If you
          - * use an API key to request predictions, you must first register the API key.
          - * Otherwise, your prediction request is rejected. If you use OAuth to
          - * authenticate your `predict` method call, you do not need to register an API
          - * key. You can register up to 20 API keys per project.
          - * 
          - */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class PredictionApiKeyRegistryGrpc { - - private PredictionApiKeyRegistryGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreatePredictionApiKeyRegistrationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePredictionApiKeyRegistration", - requestType = com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest.class, - responseType = com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreatePredictionApiKeyRegistrationMethod() { - io.grpc.MethodDescriptor getCreatePredictionApiKeyRegistrationMethod; - if ((getCreatePredictionApiKeyRegistrationMethod = PredictionApiKeyRegistryGrpc.getCreatePredictionApiKeyRegistrationMethod) == null) { - synchronized (PredictionApiKeyRegistryGrpc.class) { - if ((getCreatePredictionApiKeyRegistrationMethod = PredictionApiKeyRegistryGrpc.getCreatePredictionApiKeyRegistrationMethod) == null) { - PredictionApiKeyRegistryGrpc.getCreatePredictionApiKeyRegistrationMethod = getCreatePredictionApiKeyRegistrationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePredictionApiKeyRegistration")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.getDefaultInstance())) - .setSchemaDescriptor(new PredictionApiKeyRegistryMethodDescriptorSupplier("CreatePredictionApiKeyRegistration")) - .build(); - } - } - } - return getCreatePredictionApiKeyRegistrationMethod; - } - - private static volatile io.grpc.MethodDescriptor getListPredictionApiKeyRegistrationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPredictionApiKeyRegistrations", - requestType = com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest.class, - responseType = com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListPredictionApiKeyRegistrationsMethod() { - io.grpc.MethodDescriptor getListPredictionApiKeyRegistrationsMethod; - if ((getListPredictionApiKeyRegistrationsMethod = PredictionApiKeyRegistryGrpc.getListPredictionApiKeyRegistrationsMethod) == null) { - synchronized (PredictionApiKeyRegistryGrpc.class) { - if ((getListPredictionApiKeyRegistrationsMethod = PredictionApiKeyRegistryGrpc.getListPredictionApiKeyRegistrationsMethod) == null) { - PredictionApiKeyRegistryGrpc.getListPredictionApiKeyRegistrationsMethod = getListPredictionApiKeyRegistrationsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPredictionApiKeyRegistrations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new PredictionApiKeyRegistryMethodDescriptorSupplier("ListPredictionApiKeyRegistrations")) - .build(); - } - } - } - return getListPredictionApiKeyRegistrationsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeletePredictionApiKeyRegistrationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePredictionApiKeyRegistration", - requestType = com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeletePredictionApiKeyRegistrationMethod() { - io.grpc.MethodDescriptor getDeletePredictionApiKeyRegistrationMethod; - if ((getDeletePredictionApiKeyRegistrationMethod = PredictionApiKeyRegistryGrpc.getDeletePredictionApiKeyRegistrationMethod) == null) { - synchronized (PredictionApiKeyRegistryGrpc.class) { - if ((getDeletePredictionApiKeyRegistrationMethod = PredictionApiKeyRegistryGrpc.getDeletePredictionApiKeyRegistrationMethod) == null) { - PredictionApiKeyRegistryGrpc.getDeletePredictionApiKeyRegistrationMethod = getDeletePredictionApiKeyRegistrationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePredictionApiKeyRegistration")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new PredictionApiKeyRegistryMethodDescriptorSupplier("DeletePredictionApiKeyRegistration")) - .build(); - } - } - } - return getDeletePredictionApiKeyRegistrationMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static PredictionApiKeyRegistryStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PredictionApiKeyRegistryStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PredictionApiKeyRegistryStub(channel, callOptions); - } - }; - return PredictionApiKeyRegistryStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static PredictionApiKeyRegistryBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PredictionApiKeyRegistryBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PredictionApiKeyRegistryBlockingStub(channel, callOptions); - } - }; - return PredictionApiKeyRegistryBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static PredictionApiKeyRegistryFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PredictionApiKeyRegistryFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PredictionApiKeyRegistryFutureStub(channel, callOptions); - } - }; - return PredictionApiKeyRegistryFutureStub.newStub(factory, channel); - } - - /** - *
          -   * Service for registering API keys for use with the `predict` method. If you
          -   * use an API key to request predictions, you must first register the API key.
          -   * Otherwise, your prediction request is rejected. If you use OAuth to
          -   * authenticate your `predict` method call, you do not need to register an API
          -   * key. You can register up to 20 API keys per project.
          -   * 
          - */ - public static abstract class PredictionApiKeyRegistryImplBase implements io.grpc.BindableService { - - /** - *
          -     * Register an API key for use with predict method.
          -     * 
          - */ - public void createPredictionApiKeyRegistration(com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePredictionApiKeyRegistrationMethod(), responseObserver); - } - - /** - *
          -     * List the registered apiKeys for use with predict method.
          -     * 
          - */ - public void listPredictionApiKeyRegistrations(com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPredictionApiKeyRegistrationsMethod(), responseObserver); - } - - /** - *
          -     * Unregister an apiKey from using for predict method.
          -     * 
          - */ - public void deletePredictionApiKeyRegistration(com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePredictionApiKeyRegistrationMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreatePredictionApiKeyRegistrationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest, - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration>( - this, METHODID_CREATE_PREDICTION_API_KEY_REGISTRATION))) - .addMethod( - getListPredictionApiKeyRegistrationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest, - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse>( - this, METHODID_LIST_PREDICTION_API_KEY_REGISTRATIONS))) - .addMethod( - getDeletePredictionApiKeyRegistrationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_PREDICTION_API_KEY_REGISTRATION))) - .build(); - } - } - - /** - *
          -   * Service for registering API keys for use with the `predict` method. If you
          -   * use an API key to request predictions, you must first register the API key.
          -   * Otherwise, your prediction request is rejected. If you use OAuth to
          -   * authenticate your `predict` method call, you do not need to register an API
          -   * key. You can register up to 20 API keys per project.
          -   * 
          - */ - public static final class PredictionApiKeyRegistryStub extends io.grpc.stub.AbstractAsyncStub { - private PredictionApiKeyRegistryStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PredictionApiKeyRegistryStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PredictionApiKeyRegistryStub(channel, callOptions); - } - - /** - *
          -     * Register an API key for use with predict method.
          -     * 
          - */ - public void createPredictionApiKeyRegistration(com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePredictionApiKeyRegistrationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
          -     * List the registered apiKeys for use with predict method.
          -     * 
          - */ - public void listPredictionApiKeyRegistrations(com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPredictionApiKeyRegistrationsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
          -     * Unregister an apiKey from using for predict method.
          -     * 
          - */ - public void deletePredictionApiKeyRegistration(com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePredictionApiKeyRegistrationMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
          -   * Service for registering API keys for use with the `predict` method. If you
          -   * use an API key to request predictions, you must first register the API key.
          -   * Otherwise, your prediction request is rejected. If you use OAuth to
          -   * authenticate your `predict` method call, you do not need to register an API
          -   * key. You can register up to 20 API keys per project.
          -   * 
          - */ - public static final class PredictionApiKeyRegistryBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private PredictionApiKeyRegistryBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PredictionApiKeyRegistryBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PredictionApiKeyRegistryBlockingStub(channel, callOptions); - } - - /** - *
          -     * Register an API key for use with predict method.
          -     * 
          - */ - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration createPredictionApiKeyRegistration(com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePredictionApiKeyRegistrationMethod(), getCallOptions(), request); - } - - /** - *
          -     * List the registered apiKeys for use with predict method.
          -     * 
          - */ - public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse listPredictionApiKeyRegistrations(com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPredictionApiKeyRegistrationsMethod(), getCallOptions(), request); - } - - /** - *
          -     * Unregister an apiKey from using for predict method.
          -     * 
          - */ - public com.google.protobuf.Empty deletePredictionApiKeyRegistration(com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePredictionApiKeyRegistrationMethod(), getCallOptions(), request); - } - } - - /** - *
          -   * Service for registering API keys for use with the `predict` method. If you
          -   * use an API key to request predictions, you must first register the API key.
          -   * Otherwise, your prediction request is rejected. If you use OAuth to
          -   * authenticate your `predict` method call, you do not need to register an API
          -   * key. You can register up to 20 API keys per project.
          -   * 
          - */ - public static final class PredictionApiKeyRegistryFutureStub extends io.grpc.stub.AbstractFutureStub { - private PredictionApiKeyRegistryFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PredictionApiKeyRegistryFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PredictionApiKeyRegistryFutureStub(channel, callOptions); - } - - /** - *
          -     * Register an API key for use with predict method.
          -     * 
          - */ - public com.google.common.util.concurrent.ListenableFuture createPredictionApiKeyRegistration( - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePredictionApiKeyRegistrationMethod(), getCallOptions()), request); - } - - /** - *
          -     * List the registered apiKeys for use with predict method.
          -     * 
          - */ - public com.google.common.util.concurrent.ListenableFuture listPredictionApiKeyRegistrations( - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPredictionApiKeyRegistrationsMethod(), getCallOptions()), request); - } - - /** - *
          -     * Unregister an apiKey from using for predict method.
          -     * 
          - */ - public com.google.common.util.concurrent.ListenableFuture deletePredictionApiKeyRegistration( - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePredictionApiKeyRegistrationMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_PREDICTION_API_KEY_REGISTRATION = 0; - private static final int METHODID_LIST_PREDICTION_API_KEY_REGISTRATIONS = 1; - private static final int METHODID_DELETE_PREDICTION_API_KEY_REGISTRATION = 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 PredictionApiKeyRegistryImplBase serviceImpl; - private final int methodId; - - MethodHandlers(PredictionApiKeyRegistryImplBase 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_PREDICTION_API_KEY_REGISTRATION: - serviceImpl.createPredictionApiKeyRegistration((com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_PREDICTION_API_KEY_REGISTRATIONS: - serviceImpl.listPredictionApiKeyRegistrations((com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_PREDICTION_API_KEY_REGISTRATION: - serviceImpl.deletePredictionApiKeyRegistration((com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) 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 PredictionApiKeyRegistryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - PredictionApiKeyRegistryBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("PredictionApiKeyRegistry"); - } - } - - private static final class PredictionApiKeyRegistryFileDescriptorSupplier - extends PredictionApiKeyRegistryBaseDescriptorSupplier { - PredictionApiKeyRegistryFileDescriptorSupplier() {} - } - - private static final class PredictionApiKeyRegistryMethodDescriptorSupplier - extends PredictionApiKeyRegistryBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - PredictionApiKeyRegistryMethodDescriptorSupplier(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 (PredictionApiKeyRegistryGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PredictionApiKeyRegistryFileDescriptorSupplier()) - .addMethod(getCreatePredictionApiKeyRegistrationMethod()) - .addMethod(getListPredictionApiKeyRegistrationsMethod()) - .addMethod(getDeletePredictionApiKeyRegistrationMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceGrpc.java deleted file mode 100644 index 86d45a97..00000000 --- a/owl-bot-staging/v1beta1/grpc-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceGrpc.java +++ /dev/null @@ -1,691 +0,0 @@ -package com.google.cloud.recommendationengine.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
          - * Service for ingesting end user actions on the customer website.
          - * 
          - */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/recommendationengine/v1beta1/user_event_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class UserEventServiceGrpc { - - private UserEventServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.recommendationengine.v1beta1.UserEventService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getWriteUserEventMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "WriteUserEvent", - requestType = com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.class, - responseType = com.google.cloud.recommendationengine.v1beta1.UserEvent.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getWriteUserEventMethod() { - io.grpc.MethodDescriptor getWriteUserEventMethod; - if ((getWriteUserEventMethod = UserEventServiceGrpc.getWriteUserEventMethod) == null) { - synchronized (UserEventServiceGrpc.class) { - if ((getWriteUserEventMethod = UserEventServiceGrpc.getWriteUserEventMethod) == null) { - UserEventServiceGrpc.getWriteUserEventMethod = getWriteUserEventMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WriteUserEvent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance())) - .setSchemaDescriptor(new UserEventServiceMethodDescriptorSupplier("WriteUserEvent")) - .build(); - } - } - } - return getWriteUserEventMethod; - } - - private static volatile io.grpc.MethodDescriptor getCollectUserEventMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CollectUserEvent", - requestType = com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.class, - responseType = com.google.api.HttpBody.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCollectUserEventMethod() { - io.grpc.MethodDescriptor getCollectUserEventMethod; - if ((getCollectUserEventMethod = UserEventServiceGrpc.getCollectUserEventMethod) == null) { - synchronized (UserEventServiceGrpc.class) { - if ((getCollectUserEventMethod = UserEventServiceGrpc.getCollectUserEventMethod) == null) { - UserEventServiceGrpc.getCollectUserEventMethod = getCollectUserEventMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CollectUserEvent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.api.HttpBody.getDefaultInstance())) - .setSchemaDescriptor(new UserEventServiceMethodDescriptorSupplier("CollectUserEvent")) - .build(); - } - } - } - return getCollectUserEventMethod; - } - - private static volatile io.grpc.MethodDescriptor getListUserEventsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUserEvents", - requestType = com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.class, - responseType = com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListUserEventsMethod() { - io.grpc.MethodDescriptor getListUserEventsMethod; - if ((getListUserEventsMethod = UserEventServiceGrpc.getListUserEventsMethod) == null) { - synchronized (UserEventServiceGrpc.class) { - if ((getListUserEventsMethod = UserEventServiceGrpc.getListUserEventsMethod) == null) { - UserEventServiceGrpc.getListUserEventsMethod = getListUserEventsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUserEvents")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.getDefaultInstance())) - .setSchemaDescriptor(new UserEventServiceMethodDescriptorSupplier("ListUserEvents")) - .build(); - } - } - } - return getListUserEventsMethod; - } - - private static volatile io.grpc.MethodDescriptor getPurgeUserEventsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PurgeUserEvents", - requestType = com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPurgeUserEventsMethod() { - io.grpc.MethodDescriptor getPurgeUserEventsMethod; - if ((getPurgeUserEventsMethod = UserEventServiceGrpc.getPurgeUserEventsMethod) == null) { - synchronized (UserEventServiceGrpc.class) { - if ((getPurgeUserEventsMethod = UserEventServiceGrpc.getPurgeUserEventsMethod) == null) { - UserEventServiceGrpc.getPurgeUserEventsMethod = getPurgeUserEventsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeUserEvents")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new UserEventServiceMethodDescriptorSupplier("PurgeUserEvents")) - .build(); - } - } - } - return getPurgeUserEventsMethod; - } - - private static volatile io.grpc.MethodDescriptor getImportUserEventsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ImportUserEvents", - requestType = com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getImportUserEventsMethod() { - io.grpc.MethodDescriptor getImportUserEventsMethod; - if ((getImportUserEventsMethod = UserEventServiceGrpc.getImportUserEventsMethod) == null) { - synchronized (UserEventServiceGrpc.class) { - if ((getImportUserEventsMethod = UserEventServiceGrpc.getImportUserEventsMethod) == null) { - UserEventServiceGrpc.getImportUserEventsMethod = getImportUserEventsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportUserEvents")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new UserEventServiceMethodDescriptorSupplier("ImportUserEvents")) - .build(); - } - } - } - return getImportUserEventsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static UserEventServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public UserEventServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UserEventServiceStub(channel, callOptions); - } - }; - return UserEventServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static UserEventServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public UserEventServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UserEventServiceBlockingStub(channel, callOptions); - } - }; - return UserEventServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static UserEventServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public UserEventServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UserEventServiceFutureStub(channel, callOptions); - } - }; - return UserEventServiceFutureStub.newStub(factory, channel); - } - - /** - *
          -   * Service for ingesting end user actions on the customer website.
          -   * 
          - */ - public static abstract class UserEventServiceImplBase implements io.grpc.BindableService { - - /** - *
          -     * Writes a single user event.
          -     * 
          - */ - public void writeUserEvent(com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getWriteUserEventMethod(), responseObserver); - } - - /** - *
          -     * Writes a single user event from the browser. This uses a GET request to
          -     * due to browser restriction of POST-ing to a 3rd party domain.
          -     * This method is used only by the Recommendations AI JavaScript pixel.
          -     * Users should not call this method directly.
          -     * 
          - */ - public void collectUserEvent(com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCollectUserEventMethod(), responseObserver); - } - - /** - *
          -     * Gets a list of user events within a time range, with potential filtering.
          -     * 
          - */ - public void listUserEvents(com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUserEventsMethod(), responseObserver); - } - - /** - *
          -     * Deletes permanently all user events specified by the filter provided.
          -     * Depending on the number of events specified by the filter, this operation
          -     * could take hours or days to complete. To test a filter, use the list
          -     * command first.
          -     * 
          - */ - public void purgeUserEvents(com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPurgeUserEventsMethod(), responseObserver); - } - - /** - *
          -     * Bulk import of User events. Request processing might be
          -     * synchronous. Events that already exist are skipped.
          -     * Use this method for backfilling historical user events.
          -     * Operation.response is of type ImportResponse. Note that it is
          -     * possible for a subset of the items to be successfully inserted.
          -     * Operation.metadata is of type ImportMetadata.
          -     * 
          - */ - public void importUserEvents(com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportUserEventsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getWriteUserEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest, - com.google.cloud.recommendationengine.v1beta1.UserEvent>( - this, METHODID_WRITE_USER_EVENT))) - .addMethod( - getCollectUserEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest, - com.google.api.HttpBody>( - this, METHODID_COLLECT_USER_EVENT))) - .addMethod( - getListUserEventsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest, - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse>( - this, METHODID_LIST_USER_EVENTS))) - .addMethod( - getPurgeUserEventsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest, - com.google.longrunning.Operation>( - this, METHODID_PURGE_USER_EVENTS))) - .addMethod( - getImportUserEventsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest, - com.google.longrunning.Operation>( - this, METHODID_IMPORT_USER_EVENTS))) - .build(); - } - } - - /** - *
          -   * Service for ingesting end user actions on the customer website.
          -   * 
          - */ - public static final class UserEventServiceStub extends io.grpc.stub.AbstractAsyncStub { - private UserEventServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected UserEventServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UserEventServiceStub(channel, callOptions); - } - - /** - *
          -     * Writes a single user event.
          -     * 
          - */ - public void writeUserEvent(com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getWriteUserEventMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
          -     * Writes a single user event from the browser. This uses a GET request to
          -     * due to browser restriction of POST-ing to a 3rd party domain.
          -     * This method is used only by the Recommendations AI JavaScript pixel.
          -     * Users should not call this method directly.
          -     * 
          - */ - public void collectUserEvent(com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCollectUserEventMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
          -     * Gets a list of user events within a time range, with potential filtering.
          -     * 
          - */ - public void listUserEvents(com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUserEventsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
          -     * Deletes permanently all user events specified by the filter provided.
          -     * Depending on the number of events specified by the filter, this operation
          -     * could take hours or days to complete. To test a filter, use the list
          -     * command first.
          -     * 
          - */ - public void purgeUserEvents(com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPurgeUserEventsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
          -     * Bulk import of User events. Request processing might be
          -     * synchronous. Events that already exist are skipped.
          -     * Use this method for backfilling historical user events.
          -     * Operation.response is of type ImportResponse. Note that it is
          -     * possible for a subset of the items to be successfully inserted.
          -     * Operation.metadata is of type ImportMetadata.
          -     * 
          - */ - public void importUserEvents(com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportUserEventsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
          -   * Service for ingesting end user actions on the customer website.
          -   * 
          - */ - public static final class UserEventServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private UserEventServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected UserEventServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UserEventServiceBlockingStub(channel, callOptions); - } - - /** - *
          -     * Writes a single user event.
          -     * 
          - */ - public com.google.cloud.recommendationengine.v1beta1.UserEvent writeUserEvent(com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getWriteUserEventMethod(), getCallOptions(), request); - } - - /** - *
          -     * Writes a single user event from the browser. This uses a GET request to
          -     * due to browser restriction of POST-ing to a 3rd party domain.
          -     * This method is used only by the Recommendations AI JavaScript pixel.
          -     * Users should not call this method directly.
          -     * 
          - */ - public com.google.api.HttpBody collectUserEvent(com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCollectUserEventMethod(), getCallOptions(), request); - } - - /** - *
          -     * Gets a list of user events within a time range, with potential filtering.
          -     * 
          - */ - public com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse listUserEvents(com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUserEventsMethod(), getCallOptions(), request); - } - - /** - *
          -     * Deletes permanently all user events specified by the filter provided.
          -     * Depending on the number of events specified by the filter, this operation
          -     * could take hours or days to complete. To test a filter, use the list
          -     * command first.
          -     * 
          - */ - public com.google.longrunning.Operation purgeUserEvents(com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPurgeUserEventsMethod(), getCallOptions(), request); - } - - /** - *
          -     * Bulk import of User events. Request processing might be
          -     * synchronous. Events that already exist are skipped.
          -     * Use this method for backfilling historical user events.
          -     * Operation.response is of type ImportResponse. Note that it is
          -     * possible for a subset of the items to be successfully inserted.
          -     * Operation.metadata is of type ImportMetadata.
          -     * 
          - */ - public com.google.longrunning.Operation importUserEvents(com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getImportUserEventsMethod(), getCallOptions(), request); - } - } - - /** - *
          -   * Service for ingesting end user actions on the customer website.
          -   * 
          - */ - public static final class UserEventServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private UserEventServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected UserEventServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new UserEventServiceFutureStub(channel, callOptions); - } - - /** - *
          -     * Writes a single user event.
          -     * 
          - */ - public com.google.common.util.concurrent.ListenableFuture writeUserEvent( - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getWriteUserEventMethod(), getCallOptions()), request); - } - - /** - *
          -     * Writes a single user event from the browser. This uses a GET request to
          -     * due to browser restriction of POST-ing to a 3rd party domain.
          -     * This method is used only by the Recommendations AI JavaScript pixel.
          -     * Users should not call this method directly.
          -     * 
          - */ - public com.google.common.util.concurrent.ListenableFuture collectUserEvent( - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCollectUserEventMethod(), getCallOptions()), request); - } - - /** - *
          -     * Gets a list of user events within a time range, with potential filtering.
          -     * 
          - */ - public com.google.common.util.concurrent.ListenableFuture listUserEvents( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUserEventsMethod(), getCallOptions()), request); - } - - /** - *
          -     * Deletes permanently all user events specified by the filter provided.
          -     * Depending on the number of events specified by the filter, this operation
          -     * could take hours or days to complete. To test a filter, use the list
          -     * command first.
          -     * 
          - */ - public com.google.common.util.concurrent.ListenableFuture purgeUserEvents( - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPurgeUserEventsMethod(), getCallOptions()), request); - } - - /** - *
          -     * Bulk import of User events. Request processing might be
          -     * synchronous. Events that already exist are skipped.
          -     * Use this method for backfilling historical user events.
          -     * Operation.response is of type ImportResponse. Note that it is
          -     * possible for a subset of the items to be successfully inserted.
          -     * Operation.metadata is of type ImportMetadata.
          -     * 
          - */ - public com.google.common.util.concurrent.ListenableFuture importUserEvents( - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getImportUserEventsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_WRITE_USER_EVENT = 0; - private static final int METHODID_COLLECT_USER_EVENT = 1; - private static final int METHODID_LIST_USER_EVENTS = 2; - private static final int METHODID_PURGE_USER_EVENTS = 3; - private static final int METHODID_IMPORT_USER_EVENTS = 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 UserEventServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(UserEventServiceImplBase 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_WRITE_USER_EVENT: - serviceImpl.writeUserEvent((com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_COLLECT_USER_EVENT: - serviceImpl.collectUserEvent((com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_USER_EVENTS: - serviceImpl.listUserEvents((com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PURGE_USER_EVENTS: - serviceImpl.purgeUserEvents((com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_IMPORT_USER_EVENTS: - serviceImpl.importUserEvents((com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) 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 UserEventServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - UserEventServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("UserEventService"); - } - } - - private static final class UserEventServiceFileDescriptorSupplier - extends UserEventServiceBaseDescriptorSupplier { - UserEventServiceFileDescriptorSupplier() {} - } - - private static final class UserEventServiceMethodDescriptorSupplier - extends UserEventServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - UserEventServiceMethodDescriptorSupplier(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 (UserEventServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new UserEventServiceFileDescriptorSupplier()) - .addMethod(getWriteUserEventMethod()) - .addMethod(getCollectUserEventMethod()) - .addMethod(getListUserEventsMethod()) - .addMethod(getPurgeUserEventsMethod()) - .addMethod(getImportUserEventsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Catalog.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Catalog.java deleted file mode 100644 index 1948ed96..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Catalog.java +++ /dev/null @@ -1,175 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/catalog.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public final class Catalog { - private Catalog() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_Image_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n7google/cloud/recommendationengine/v1be" + - "ta1/catalog.proto\022)google.cloud.recommen" + - "dationengine.v1beta1\032\037google/api/field_b" + - "ehavior.proto\0326google/cloud/recommendati" + - "onengine/v1beta1/common.proto\032\034google/pr" + - "otobuf/struct.proto\032\034google/api/annotati" + - "ons.proto\"\376\003\n\013CatalogItem\022\017\n\002id\030\001 \001(\tB\003\340" + - "A\002\022k\n\024category_hierarchies\030\002 \003(\0132H.googl" + - "e.cloud.recommendationengine.v1beta1.Cat" + - "alogItem.CategoryHierarchyB\003\340A\002\022\022\n\005title" + - "\030\003 \001(\tB\003\340A\002\022\030\n\013description\030\004 \001(\tB\003\340A\001\022S\n" + - "\017item_attributes\030\005 \001(\01325.google.cloud.re" + - "commendationengine.v1beta1.FeatureMapB\003\340" + - "A\001\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A\001\022\021\n\004tags\030\010" + - " \003(\tB\003\340A\001\022\032\n\ritem_group_id\030\t \001(\tB\003\340A\001\022^\n" + - "\020product_metadata\030\n \001(\0132=.google.cloud.r" + - "ecommendationengine.v1beta1.ProductCatal" + - "ogItemB\003\340A\001H\000\032,\n\021CategoryHierarchy\022\027\n\nca" + - "tegories\030\001 \003(\tB\003\340A\002B\025\n\023recommendation_ty" + - "pe\"\346\006\n\022ProductCatalogItem\022d\n\013exact_price" + - "\030\001 \001(\0132H.google.cloud.recommendationengi" + - "ne.v1beta1.ProductCatalogItem.ExactPrice" + - "B\003\340A\001H\000\022d\n\013price_range\030\002 \001(\0132H.google.cl" + - "oud.recommendationengine.v1beta1.Product" + - "CatalogItem.PriceRangeB\003\340A\001H\000\022\\\n\005costs\030\003" + - " \003(\0132H.google.cloud.recommendationengine" + - ".v1beta1.ProductCatalogItem.CostsEntryB\003" + - "\340A\001\022\032\n\rcurrency_code\030\004 \001(\tB\003\340A\001\022b\n\013stock" + - "_state\030\005 \001(\0162H.google.cloud.recommendati" + - "onengine.v1beta1.ProductCatalogItem.Stoc" + - "kStateB\003\340A\001\022\037\n\022available_quantity\030\006 \001(\003B" + - "\003\340A\001\022\"\n\025canonical_product_uri\030\007 \001(\tB\003\340A\001" + - "\022E\n\006images\030\010 \003(\01320.google.cloud.recommen" + - "dationengine.v1beta1.ImageB\003\340A\001\032E\n\nExact" + - "Price\022\032\n\rdisplay_price\030\001 \001(\002B\003\340A\001\022\033\n\016ori" + - "ginal_price\030\002 \001(\002B\003\340A\001\0320\n\nPriceRange\022\020\n\003" + - "min\030\001 \001(\002B\003\340A\002\022\020\n\003max\030\002 \001(\002B\003\340A\002\032,\n\nCost" + - "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\002:\0028\001\"j" + - "\n\nStockState\022\033\n\027STOCK_STATE_UNSPECIFIED\020" + - "\000\022\014\n\010IN_STOCK\020\000\022\020\n\014OUT_OF_STOCK\020\001\022\014\n\010PRE" + - "ORDER\020\002\022\r\n\tBACKORDER\020\003\032\002\020\001B\007\n\005price\"B\n\005I" + - "mage\022\020\n\003uri\030\001 \001(\tB\003\340A\002\022\023\n\006height\030\002 \001(\005B\003" + - "\340A\001\022\022\n\005width\030\003 \001(\005B\003\340A\001B\237\002\n-com.google.c" + - "loud.recommendationengine.v1beta1P\001Z]goo" + - "gle.golang.org/genproto/googleapis/cloud" + - "/recommendationengine/v1beta1;recommenda" + - "tionengine\242\002\005RECAI\252\002)Google.Cloud.Recomm" + - "endationEngine.V1Beta1\312\002)Google\\Cloud\\Re" + - "commendationEngine\\V1beta1\352\002,Google::Clo" + - "ud::RecommendationEngine::V1beta1b\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.Common.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor, - new java.lang.String[] { "Id", "CategoryHierarchies", "Title", "Description", "ItemAttributes", "LanguageCode", "Tags", "ItemGroupId", "ProductMetadata", "RecommendationType", }); - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor, - new java.lang.String[] { "Categories", }); - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor, - new java.lang.String[] { "ExactPrice", "PriceRange", "Costs", "CurrencyCode", "StockState", "AvailableQuantity", "CanonicalProductUri", "Images", "Price", }); - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor, - new java.lang.String[] { "DisplayPrice", "OriginalPrice", }); - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor, - new java.lang.String[] { "Min", "Max", }); - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_recommendationengine_v1beta1_Image_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor, - new java.lang.String[] { "Uri", "Height", "Width", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.Common.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSourceOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSourceOrBuilder.java deleted file mode 100644 index 25269a49..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSourceOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/import.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public interface CatalogInlineSourceOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.CatalogInlineSource) - com.google.protobuf.MessageOrBuilder { - - /** - *
          -   * Optional. A list of catalog items to update/create. Recommended max of 10k
          -   * items.
          -   * 
          - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.List - getCatalogItemsList(); - /** - *
          -   * Optional. A list of catalog items to update/create. Recommended max of 10k
          -   * items.
          -   * 
          - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItems(int index); - /** - *
          -   * Optional. A list of catalog items to update/create. Recommended max of 10k
          -   * items.
          -   * 
          - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - int getCatalogItemsCount(); - /** - *
          -   * Optional. A list of catalog items to update/create. Recommended max of 10k
          -   * items.
          -   * 
          - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.List - getCatalogItemsOrBuilderList(); - /** - *
          -   * Optional. A list of catalog items to update/create. Recommended max of 10k
          -   * items.
          -   * 
          - * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemsOrBuilder( - int index); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceOuterClass.java deleted file mode 100644 index 936a05b6..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceOuterClass.java +++ /dev/null @@ -1,217 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/catalog_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public final class CatalogServiceOuterClass { - private CatalogServiceOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n?google/cloud/recommendationengine/v1be" + - "ta1/catalog_service.proto\022)google.cloud." + - "recommendationengine.v1beta1\032\034google/api" + - "/annotations.proto\032\027google/api/client.pr" + - "oto\032\037google/api/field_behavior.proto\032\031go" + - "ogle/api/resource.proto\0327google/cloud/re" + - "commendationengine/v1beta1/catalog.proto" + - "\0326google/cloud/recommendationengine/v1be" + - "ta1/import.proto\032Ngoogle/cloud/recommend" + - "ationengine/v1beta1/recommendationengine" + - "_resources.proto\032#google/longrunning/ope" + - "rations.proto\032\033google/protobuf/empty.pro" + - "to\032 google/protobuf/field_mask.proto\"\262\001\n" + - "\030CreateCatalogItemRequest\022C\n\006parent\030\001 \001(" + - "\tB3\340A\002\372A-\n+recommendationengine.googleap" + - "is.com/Catalog\022Q\n\014catalog_item\030\002 \001(\01326.g" + - "oogle.cloud.recommendationengine.v1beta1" + - ".CatalogItemB\003\340A\002\"b\n\025GetCatalogItemReque" + - "st\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3recommendation" + - "engine.googleapis.com/CatalogItemPath\"\244\001" + - "\n\027ListCatalogItemsRequest\022C\n\006parent\030\001 \001(" + - "\tB3\340A\002\372A-\n+recommendationengine.googleap" + - "is.com/Catalog\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027" + - "\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB" + - "\003\340A\001\"\202\001\n\030ListCatalogItemsResponse\022M\n\rcat" + - "alog_items\030\001 \003(\01326.google.cloud.recommen" + - "dationengine.v1beta1.CatalogItem\022\027\n\017next" + - "_page_token\030\002 \001(\t\"\351\001\n\030UpdateCatalogItemR" + - "equest\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3recommenda" + - "tionengine.googleapis.com/CatalogItemPat" + - "h\022Q\n\014catalog_item\030\002 \001(\01326.google.cloud.r" + - "ecommendationengine.v1beta1.CatalogItemB" + - "\003\340A\002\022/\n\013update_mask\030\003 \001(\0132\032.google.proto" + - "buf.FieldMask\"e\n\030DeleteCatalogItemReques" + - "t\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3recommendatione" + - "ngine.googleapis.com/CatalogItemPath2\226\r\n" + - "\016CatalogService\022\376\001\n\021CreateCatalogItem\022C." + - "google.cloud.recommendationengine.v1beta" + - "1.CreateCatalogItemRequest\0326.google.clou" + - "d.recommendationengine.v1beta1.CatalogIt" + - "em\"l\202\323\344\223\002P\"@/v1beta1/{parent=projects/*/" + - "locations/*/catalogs/*}/catalogItems:\014ca" + - "talog_item\332A\023parent,catalog_item\022\334\001\n\016Get" + - "CatalogItem\022@.google.cloud.recommendatio" + - "nengine.v1beta1.GetCatalogItemRequest\0326." + - "google.cloud.recommendationengine.v1beta" + - "1.CatalogItem\"P\202\323\344\223\002C\022A/v1beta1/{name=pr" + - "ojects/*/locations/*/catalogs/*/catalogI" + - "tems/**}\332A\004name\022\365\001\n\020ListCatalogItems\022B.g" + - "oogle.cloud.recommendationengine.v1beta1" + - ".ListCatalogItemsRequest\032C.google.cloud." + - "recommendationengine.v1beta1.ListCatalog" + - "ItemsResponse\"X\202\323\344\223\002B\022@/v1beta1/{parent=" + - "projects/*/locations/*/catalogs/*}/catal" + - "ogItems\332A\rparent,filter\022\211\002\n\021UpdateCatalo" + - "gItem\022C.google.cloud.recommendationengin" + - "e.v1beta1.UpdateCatalogItemRequest\0326.goo" + - "gle.cloud.recommendationengine.v1beta1.C" + - "atalogItem\"w\202\323\344\223\002Q2A/v1beta1/{name=proje" + - "cts/*/locations/*/catalogs/*/catalogItem" + - "s/**}:\014catalog_item\332A\035name,catalog_item," + - "update_mask\022\302\001\n\021DeleteCatalogItem\022C.goog" + - "le.cloud.recommendationengine.v1beta1.De" + - "leteCatalogItemRequest\032\026.google.protobuf" + - ".Empty\"P\202\323\344\223\002C*A/v1beta1/{name=projects/" + - "*/locations/*/catalogs/*/catalogItems/**" + - "}\332A\004name\022\201\003\n\022ImportCatalogItems\022D.google" + - ".cloud.recommendationengine.v1beta1.Impo" + - "rtCatalogItemsRequest\032\035.google.longrunni" + - "ng.Operation\"\205\002\202\323\344\223\002L\"G/v1beta1/{parent=" + - "projects/*/locations/*/catalogs/*}/catal" + - "ogItems:import:\001*\312A\200\001\nDgoogle.cloud.reco" + - "mmendationengine.v1beta1.ImportCatalogIt" + - "emsResponse\0228google.cloud.recommendation" + - "engine.v1beta1.ImportMetadata\332A,parent,r" + - "equest_id,input_config,errors_config\032W\312A" + - "#recommendationengine.googleapis.com\322A.h" + - "ttps://www.googleapis.com/auth/cloud-pla" + - "tformB\237\002\n-com.google.cloud.recommendatio" + - "nengine.v1beta1P\001Z]google.golang.org/gen" + - "proto/googleapis/cloud/recommendationeng" + - "ine/v1beta1;recommendationengine\242\002\005RECAI" + - "\252\002)Google.Cloud.RecommendationEngine.V1B" + - "eta1\312\002)Google\\Cloud\\RecommendationEngine" + - "\\V1beta1\352\002,Google::Cloud::Recommendation" + - "Engine::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.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.Import.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor, - new java.lang.String[] { "Parent", "CatalogItem", }); - internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor, - new java.lang.String[] { "CatalogItems", "NextPageToken", }); - internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor, - new java.lang.String[] { "Name", "CatalogItem", "UpdateMask", }); - internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor, - new java.lang.String[] { "Name", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.Import.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Common.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Common.java deleted file mode 100644 index 5b98ad99..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Common.java +++ /dev/null @@ -1,116 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/common.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public final class Common { - private Common() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/recommendationengine/v1be" + - "ta1/common.proto\022)google.cloud.recommend" + - "ationengine.v1beta1\032\034google/api/annotati" + - "ons.proto\"\226\004\n\nFeatureMap\022l\n\024categorical_" + - "features\030\001 \003(\0132N.google.cloud.recommenda" + - "tionengine.v1beta1.FeatureMap.Categorica" + - "lFeaturesEntry\022h\n\022numerical_features\030\002 \003" + - "(\0132L.google.cloud.recommendationengine.v" + - "1beta1.FeatureMap.NumericalFeaturesEntry" + - "\032\033\n\nStringList\022\r\n\005value\030\001 \003(\t\032\032\n\tFloatLi" + - "st\022\r\n\005value\030\001 \003(\002\032|\n\030CategoricalFeatures" + - "Entry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132@.goog" + - "le.cloud.recommendationengine.v1beta1.Fe" + - "atureMap.StringList:\0028\001\032y\n\026NumericalFeat" + - "uresEntry\022\013\n\003key\030\001 \001(\t\022N\n\005value\030\002 \001(\0132?." + - "google.cloud.recommendationengine.v1beta" + - "1.FeatureMap.FloatList:\0028\001B\237\002\n-com.googl" + - "e.cloud.recommendationengine.v1beta1P\001Z]" + - "google.golang.org/genproto/googleapis/cl" + - "oud/recommendationengine/v1beta1;recomme" + - "ndationengine\242\002\005RECAI\252\002)Google.Cloud.Rec" + - "ommendationEngine.V1Beta1\312\002)Google\\Cloud" + - "\\RecommendationEngine\\V1beta1\352\002,Google::" + - "Cloud::RecommendationEngine::V1beta1b\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor, - new java.lang.String[] { "CategoricalFeatures", "NumericalFeatures", }); - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor, - new java.lang.String[] { "Value", }); - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor, - new java.lang.String[] { "Value", }); - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequestOrBuilder.java deleted file mode 100644 index 0e1671b7..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/catalog_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public interface CreateCatalogItemRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
          -   * Required. The parent catalog resource name, such as
          -   * `projects/*/locations/global/catalogs/default_catalog`.
          -   * 
          - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
          -   * Required. The parent catalog resource name, such as
          -   * `projects/*/locations/global/catalogs/default_catalog`.
          -   * 
          - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
          -   * Required. The catalog item to create.
          -   * 
          - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the catalogItem field is set. - */ - boolean hasCatalogItem(); - /** - *
          -   * Required. The catalog item to create.
          -   * 
          - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The catalogItem. - */ - com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItem(); - /** - *
          -   * Required. The catalog item to create.
          -   * 
          - * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemOrBuilder(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequest.java deleted file mode 100644 index bdcedc65..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequest.java +++ /dev/null @@ -1,838 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -/** - *
          - * Request message for the `CreatePredictionApiKeyRegistration` method.
          - * 
          - * - * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest} - */ -public final class CreatePredictionApiKeyRegistrationRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) - CreatePredictionApiKeyRegistrationRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreatePredictionApiKeyRegistrationRequest.newBuilder() to construct. - private CreatePredictionApiKeyRegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreatePredictionApiKeyRegistrationRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreatePredictionApiKeyRegistrationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreatePredictionApiKeyRegistrationRequest( - 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.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder subBuilder = null; - if (predictionApiKeyRegistration_ != null) { - subBuilder = predictionApiKeyRegistration_.toBuilder(); - } - predictionApiKeyRegistration_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(predictionApiKeyRegistration_); - predictionApiKeyRegistration_ = 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.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest.class, com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - *
          -   * Required. The parent resource path.
          -   * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          -   * 
          - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
          -   * Required. The parent resource path.
          -   * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          -   * 
          - * - * 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 PREDICTION_API_KEY_REGISTRATION_FIELD_NUMBER = 2; - private com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration predictionApiKeyRegistration_; - /** - *
          -   * Required. The prediction API key registration.
          -   * 
          - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the predictionApiKeyRegistration field is set. - */ - @java.lang.Override - public boolean hasPredictionApiKeyRegistration() { - return predictionApiKeyRegistration_ != null; - } - /** - *
          -   * Required. The prediction API key registration.
          -   * 
          - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The predictionApiKeyRegistration. - */ - @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration getPredictionApiKeyRegistration() { - return predictionApiKeyRegistration_ == null ? com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.getDefaultInstance() : predictionApiKeyRegistration_; - } - /** - *
          -   * Required. The prediction API key registration.
          -   * 
          - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder getPredictionApiKeyRegistrationOrBuilder() { - return getPredictionApiKeyRegistration(); - } - - 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 (predictionApiKeyRegistration_ != null) { - output.writeMessage(2, getPredictionApiKeyRegistration()); - } - 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 (predictionApiKeyRegistration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPredictionApiKeyRegistration()); - } - 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.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest)) { - return super.equals(obj); - } - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest other = (com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasPredictionApiKeyRegistration() != other.hasPredictionApiKeyRegistration()) return false; - if (hasPredictionApiKeyRegistration()) { - if (!getPredictionApiKeyRegistration() - .equals(other.getPredictionApiKeyRegistration())) 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 (hasPredictionApiKeyRegistration()) { - hash = (37 * hash) + PREDICTION_API_KEY_REGISTRATION_FIELD_NUMBER; - hash = (53 * hash) + getPredictionApiKeyRegistration().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest 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 the `CreatePredictionApiKeyRegistration` method.
          -   * 
          - * - * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest.class, com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest.Builder.class); - } - - // Construct using com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest.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 (predictionApiKeyRegistrationBuilder_ == null) { - predictionApiKeyRegistration_ = null; - } else { - predictionApiKeyRegistration_ = null; - predictionApiKeyRegistrationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest build() { - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest result = new com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest(this); - result.parent_ = parent_; - if (predictionApiKeyRegistrationBuilder_ == null) { - result.predictionApiKeyRegistration_ = predictionApiKeyRegistration_; - } else { - result.predictionApiKeyRegistration_ = predictionApiKeyRegistrationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest other) { - if (other == com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasPredictionApiKeyRegistration()) { - mergePredictionApiKeyRegistration(other.getPredictionApiKeyRegistration()); - } - 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.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - *
          -     * Required. The parent resource path.
          -     * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          -     * 
          - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
          -     * Required. The parent resource path.
          -     * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          -     * 
          - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
          -     * Required. The parent resource path.
          -     * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          -     * 
          - * - * 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; - } - /** - *
          -     * Required. The parent resource path.
          -     * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          -     * 
          - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - *
          -     * Required. The parent resource path.
          -     * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          -     * 
          - * - * 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.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration predictionApiKeyRegistration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> predictionApiKeyRegistrationBuilder_; - /** - *
          -     * Required. The prediction API key registration.
          -     * 
          - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the predictionApiKeyRegistration field is set. - */ - public boolean hasPredictionApiKeyRegistration() { - return predictionApiKeyRegistrationBuilder_ != null || predictionApiKeyRegistration_ != null; - } - /** - *
          -     * Required. The prediction API key registration.
          -     * 
          - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The predictionApiKeyRegistration. - */ - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration getPredictionApiKeyRegistration() { - if (predictionApiKeyRegistrationBuilder_ == null) { - return predictionApiKeyRegistration_ == null ? com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.getDefaultInstance() : predictionApiKeyRegistration_; - } else { - return predictionApiKeyRegistrationBuilder_.getMessage(); - } - } - /** - *
          -     * Required. The prediction API key registration.
          -     * 
          - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setPredictionApiKeyRegistration(com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration value) { - if (predictionApiKeyRegistrationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - predictionApiKeyRegistration_ = value; - onChanged(); - } else { - predictionApiKeyRegistrationBuilder_.setMessage(value); - } - - return this; - } - /** - *
          -     * Required. The prediction API key registration.
          -     * 
          - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setPredictionApiKeyRegistration( - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder builderForValue) { - if (predictionApiKeyRegistrationBuilder_ == null) { - predictionApiKeyRegistration_ = builderForValue.build(); - onChanged(); - } else { - predictionApiKeyRegistrationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
          -     * Required. The prediction API key registration.
          -     * 
          - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergePredictionApiKeyRegistration(com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration value) { - if (predictionApiKeyRegistrationBuilder_ == null) { - if (predictionApiKeyRegistration_ != null) { - predictionApiKeyRegistration_ = - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.newBuilder(predictionApiKeyRegistration_).mergeFrom(value).buildPartial(); - } else { - predictionApiKeyRegistration_ = value; - } - onChanged(); - } else { - predictionApiKeyRegistrationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
          -     * Required. The prediction API key registration.
          -     * 
          - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearPredictionApiKeyRegistration() { - if (predictionApiKeyRegistrationBuilder_ == null) { - predictionApiKeyRegistration_ = null; - onChanged(); - } else { - predictionApiKeyRegistration_ = null; - predictionApiKeyRegistrationBuilder_ = null; - } - - return this; - } - /** - *
          -     * Required. The prediction API key registration.
          -     * 
          - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder getPredictionApiKeyRegistrationBuilder() { - - onChanged(); - return getPredictionApiKeyRegistrationFieldBuilder().getBuilder(); - } - /** - *
          -     * Required. The prediction API key registration.
          -     * 
          - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder getPredictionApiKeyRegistrationOrBuilder() { - if (predictionApiKeyRegistrationBuilder_ != null) { - return predictionApiKeyRegistrationBuilder_.getMessageOrBuilder(); - } else { - return predictionApiKeyRegistration_ == null ? - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.getDefaultInstance() : predictionApiKeyRegistration_; - } - } - /** - *
          -     * Required. The prediction API key registration.
          -     * 
          - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> - getPredictionApiKeyRegistrationFieldBuilder() { - if (predictionApiKeyRegistrationBuilder_ == null) { - predictionApiKeyRegistrationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder>( - getPredictionApiKeyRegistration(), - getParentForChildren(), - isClean()); - predictionApiKeyRegistration_ = null; - } - return predictionApiKeyRegistrationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) - private static final com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest(); - } - - public static com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePredictionApiKeyRegistrationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreatePredictionApiKeyRegistrationRequest(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.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequestOrBuilder.java deleted file mode 100644 index a056c751..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public interface CreatePredictionApiKeyRegistrationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
          -   * Required. The parent resource path.
          -   * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          -   * 
          - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
          -   * Required. The parent resource path.
          -   * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          -   * 
          - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
          -   * Required. The prediction API key registration.
          -   * 
          - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the predictionApiKeyRegistration field is set. - */ - boolean hasPredictionApiKeyRegistration(); - /** - *
          -   * Required. The prediction API key registration.
          -   * 
          - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The predictionApiKeyRegistration. - */ - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration getPredictionApiKeyRegistration(); - /** - *
          -   * Required. The prediction API key registration.
          -   * 
          - * - * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder getPredictionApiKeyRegistrationOrBuilder(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequestOrBuilder.java deleted file mode 100644 index e4a3bf57..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/catalog_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public interface DeleteCatalogItemRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
          -   * Required. Full resource name of catalog item, such as
          -   * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
          -   * 
          - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
          -   * Required. Full resource name of catalog item, such as
          -   * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
          -   * 
          - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequestOrBuilder.java deleted file mode 100644 index a40133e7..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/catalog_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public interface GetCatalogItemRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
          -   * Required. Full resource name of catalog item, such as
          -   * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
          -   * 
          - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
          -   * Required. Full resource name of catalog item, such as
          -   * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
          -   * 
          - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Import.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Import.java deleted file mode 100644 index 37f0297e..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Import.java +++ /dev/null @@ -1,244 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/import.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public final class Import { - private Import() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/recommendationengine/v1be" + - "ta1/import.proto\022)google.cloud.recommend" + - "ationengine.v1beta1\032\037google/api/field_be" + - "havior.proto\032\031google/api/resource.proto\032" + - "7google/cloud/recommendationengine/v1bet" + - "a1/catalog.proto\032:google/cloud/recommend" + - "ationengine/v1beta1/user_event.proto\032Ngo" + - "ogle/cloud/recommendationengine/v1beta1/" + - "recommendationengine_resources.proto\032\037go" + - "ogle/protobuf/timestamp.proto\032\027google/rp" + - "c/status.proto\032\034google/api/annotations.p" + - "roto\"$\n\tGcsSource\022\027\n\ninput_uris\030\001 \003(\tB\003\340" + - "A\002\"i\n\023CatalogInlineSource\022R\n\rcatalog_ite" + - "ms\030\001 \003(\01326.google.cloud.recommendationen" + - "gine.v1beta1.CatalogItemB\003\340A\001\"g\n\025UserEve" + - "ntInlineSource\022N\n\013user_events\030\001 \003(\01324.go" + - "ogle.cloud.recommendationengine.v1beta1." + - "UserEventB\003\340A\001\"9\n\022ImportErrorsConfig\022\024\n\n" + - "gcs_prefix\030\001 \001(\tH\000B\r\n\013destination\"\247\002\n\031Im" + - "portCatalogItemsRequest\022C\n\006parent\030\001 \001(\tB" + - "3\340A\002\372A-\n+recommendationengine.googleapis" + - ".com/Catalog\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022Q\n" + - "\014input_config\030\003 \001(\01326.google.cloud.recom" + - "mendationengine.v1beta1.InputConfigB\003\340A\002" + - "\022Y\n\rerrors_config\030\004 \001(\0132=.google.cloud.r" + - "ecommendationengine.v1beta1.ImportErrors" + - "ConfigB\003\340A\001\"\250\002\n\027ImportUserEventsRequest\022" + - "F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.recommendatione" + - "ngine.googleapis.com/EventStore\022\027\n\nreque" + - "st_id\030\002 \001(\tB\003\340A\001\022Q\n\014input_config\030\003 \001(\01326" + - ".google.cloud.recommendationengine.v1bet" + - "a1.InputConfigB\003\340A\002\022Y\n\rerrors_config\030\004 \001" + - "(\0132=.google.cloud.recommendationengine.v" + - "1beta1.ImportErrorsConfigB\003\340A\001\"\252\002\n\013Input" + - "Config\022_\n\025catalog_inline_source\030\001 \001(\0132>." + - "google.cloud.recommendationengine.v1beta" + - "1.CatalogInlineSourceH\000\022J\n\ngcs_source\030\002 " + - "\001(\01324.google.cloud.recommendationengine." + - "v1beta1.GcsSourceH\000\022d\n\030user_event_inline" + - "_source\030\003 \001(\0132@.google.cloud.recommendat" + - "ionengine.v1beta1.UserEventInlineSourceH" + - "\000B\010\n\006source\"\314\001\n\016ImportMetadata\022\026\n\016operat" + - "ion_name\030\005 \001(\t\022\022\n\nrequest_id\030\003 \001(\t\022/\n\013cr" + - "eate_time\030\004 \001(\0132\032.google.protobuf.Timest" + - "amp\022\025\n\rsuccess_count\030\001 \001(\003\022\025\n\rfailure_co" + - "unt\030\002 \001(\003\022/\n\013update_time\030\006 \001(\0132\032.google." + - "protobuf.Timestamp\"\235\001\n\032ImportCatalogItem" + - "sResponse\022)\n\rerror_samples\030\001 \003(\0132\022.googl" + - "e.rpc.Status\022T\n\rerrors_config\030\002 \001(\0132=.go" + - "ogle.cloud.recommendationengine.v1beta1." + - "ImportErrorsConfig\"\366\001\n\030ImportUserEventsR" + - "esponse\022)\n\rerror_samples\030\001 \003(\0132\022.google." + - "rpc.Status\022T\n\rerrors_config\030\002 \001(\0132=.goog" + - "le.cloud.recommendationengine.v1beta1.Im" + - "portErrorsConfig\022Y\n\016import_summary\030\003 \001(\013" + - "2A.google.cloud.recommendationengine.v1b" + - "eta1.UserEventImportSummary\"T\n\026UserEvent" + - "ImportSummary\022\033\n\023joined_events_count\030\001 \001" + - "(\003\022\035\n\025unjoined_events_count\030\002 \001(\003B\237\002\n-co" + - "m.google.cloud.recommendationengine.v1be" + - "ta1P\001Z]google.golang.org/genproto/google" + - "apis/cloud/recommendationengine/v1beta1;" + - "recommendationengine\242\002\005RECAI\252\002)Google.Cl" + - "oud.RecommendationEngine.V1Beta1\312\002)Googl" + - "e\\Cloud\\RecommendationEngine\\V1beta1\352\002,G" + - "oogle::Cloud::RecommendationEngine::V1be" + - "ta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor, - new java.lang.String[] { "InputUris", }); - internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor, - new java.lang.String[] { "CatalogItems", }); - internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor, - new java.lang.String[] { "UserEvents", }); - internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor, - new java.lang.String[] { "GcsPrefix", "Destination", }); - internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor, - new java.lang.String[] { "Parent", "RequestId", "InputConfig", "ErrorsConfig", }); - internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor, - new java.lang.String[] { "Parent", "RequestId", "InputConfig", "ErrorsConfig", }); - internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor, - new java.lang.String[] { "CatalogInlineSource", "GcsSource", "UserEventInlineSource", "Source", }); - internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor, - new java.lang.String[] { "OperationName", "RequestId", "CreateTime", "SuccessCount", "FailureCount", "UpdateTime", }); - internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor, - new java.lang.String[] { "ErrorSamples", "ErrorsConfig", }); - internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor, - new java.lang.String[] { "ErrorSamples", "ErrorsConfig", "ImportSummary", }); - internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor, - new java.lang.String[] { "JoinedEventsCount", "UnjoinedEventsCount", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponseOrBuilder.java deleted file mode 100644 index 8f22a5b7..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public interface ListPredictionApiKeyRegistrationsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
          -   * The list of registered API keys.
          -   * 
          - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - */ - java.util.List - getPredictionApiKeyRegistrationsList(); - /** - *
          -   * The list of registered API keys.
          -   * 
          - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - */ - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration getPredictionApiKeyRegistrations(int index); - /** - *
          -   * The list of registered API keys.
          -   * 
          - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - */ - int getPredictionApiKeyRegistrationsCount(); - /** - *
          -   * The list of registered API keys.
          -   * 
          - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - */ - java.util.List - getPredictionApiKeyRegistrationsOrBuilderList(); - /** - *
          -   * The list of registered API keys.
          -   * 
          - * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; - */ - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder getPredictionApiKeyRegistrationsOrBuilder( - int index); - - /** - *
          -   * If empty, the list is complete. If nonempty, pass the token to the next
          -   * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
          -   * 
          - * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
          -   * If empty, the list is complete. If nonempty, pass the token to the next
          -   * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
          -   * 
          - * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationOrBuilder.java deleted file mode 100644 index a9b801ff..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public interface PredictionApiKeyRegistrationOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) - com.google.protobuf.MessageOrBuilder { - - /** - *
          -   * The API key.
          -   * 
          - * - * string api_key = 1; - * @return The apiKey. - */ - java.lang.String getApiKey(); - /** - *
          -   * The API key.
          -   * 
          - * - * string api_key = 1; - * @return The bytes for apiKey. - */ - com.google.protobuf.ByteString - getApiKeyBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApikeyRegistryService.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApikeyRegistryService.java deleted file mode 100644 index 7a1b7c60..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApikeyRegistryService.java +++ /dev/null @@ -1,173 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public final class PredictionApikeyRegistryService { - private PredictionApikeyRegistryService() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nRgoogle/cloud/recommendationengine/v1be" + - "ta1/prediction_apikey_registry_service.p" + - "roto\022)google.cloud.recommendationengine." + - "v1beta1\032\034google/api/annotations.proto\032\037g" + - "oogle/api/field_behavior.proto\032\031google/a" + - "pi/resource.proto\032\033google/protobuf/empty" + - ".proto\032\027google/api/client.proto\032Ngoogle/" + - "cloud/recommendationengine/v1beta1/recom" + - "mendationengine_resources.proto\"/\n\034Predi" + - "ctionApiKeyRegistration\022\017\n\007api_key\030\001 \001(\t" + - "\"\352\001\n)CreatePredictionApiKeyRegistrationR" + - "equest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.recommen" + - "dationengine.googleapis.com/EventStore\022u" + - "\n\037prediction_api_key_registration\030\002 \001(\0132" + - "G.google.cloud.recommendationengine.v1be" + - "ta1.PredictionApiKeyRegistrationB\003\340A\002\"\243\001" + - "\n(ListPredictionApiKeyRegistrationsReque" + - "st\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.recommendati" + - "onengine.googleapis.com/EventStore\022\026\n\tpa" + - "ge_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003" + - "\340A\001\"\267\001\n)ListPredictionApiKeyRegistration" + - "sResponse\022q\n prediction_api_key_registra" + - "tions\030\001 \003(\0132G.google.cloud.recommendatio" + - "nengine.v1beta1.PredictionApiKeyRegistra" + - "tion\022\027\n\017next_page_token\030\002 \001(\t\"\203\001\n)Delete" + - "PredictionApiKeyRegistrationRequest\022V\n\004n" + - "ame\030\001 \001(\tBH\340A\002\372AB\n@recommendationengine." + - "googleapis.com/PredictionApiKeyRegistrat" + - "ion2\227\010\n\030PredictionApiKeyRegistry\022\331\002\n\"Cre" + - "atePredictionApiKeyRegistration\022T.google" + - ".cloud.recommendationengine.v1beta1.Crea" + - "tePredictionApiKeyRegistrationRequest\032G." + - "google.cloud.recommendationengine.v1beta" + - "1.PredictionApiKeyRegistration\"\223\001\202\323\344\223\002d\"" + - "_/v1beta1/{parent=projects/*/locations/*" + - "/catalogs/*/eventStores/*}/predictionApi" + - "KeyRegistrations:\001*\332A&parent,prediction_" + - "api_key_registration\022\300\002\n!ListPredictionA" + - "piKeyRegistrations\022S.google.cloud.recomm" + - "endationengine.v1beta1.ListPredictionApi" + - "KeyRegistrationsRequest\032T.google.cloud.r" + - "ecommendationengine.v1beta1.ListPredicti" + - "onApiKeyRegistrationsResponse\"p\202\323\344\223\002a\022_/" + - "v1beta1/{parent=projects/*/locations/*/c" + - "atalogs/*/eventStores/*}/predictionApiKe" + - "yRegistrations\332A\006parent\022\202\002\n\"DeletePredic" + - "tionApiKeyRegistration\022T.google.cloud.re" + - "commendationengine.v1beta1.DeletePredict" + - "ionApiKeyRegistrationRequest\032\026.google.pr" + - "otobuf.Empty\"n\202\323\344\223\002a*_/v1beta1/{name=pro" + - "jects/*/locations/*/catalogs/*/eventStor" + - "es/*/predictionApiKeyRegistrations/*}\332A\004" + - "name\032W\312A#recommendationengine.googleapis" + - ".com\322A.https://www.googleapis.com/auth/c" + - "loud-platformB\237\002\n-com.google.cloud.recom" + - "mendationengine.v1beta1P\001Z]google.golang" + - ".org/genproto/googleapis/cloud/recommend" + - "ationengine/v1beta1;recommendationengine" + - "\242\002\005RECAI\252\002)Google.Cloud.RecommendationEn" + - "gine.V1Beta1\312\002)Google\\Cloud\\Recommendati" + - "onEngine\\V1beta1\352\002,Google::Cloud::Recomm" + - "endationEngine::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources.getDescriptor(), - }); - internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor, - new java.lang.String[] { "ApiKey", }); - internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor, - new java.lang.String[] { "Parent", "PredictionApiKeyRegistration", }); - internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor, - new java.lang.String[] { "PredictionApiKeyRegistrations", "NextPageToken", }); - internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor, - new java.lang.String[] { "Name", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceOuterClass.java deleted file mode 100644 index 54a93772..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceOuterClass.java +++ /dev/null @@ -1,187 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/prediction_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public final class PredictionServiceOuterClass { - private PredictionServiceOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nBgoogle/cloud/recommendationengine/v1be" + - "ta1/prediction_service.proto\022)google.clo" + - "ud.recommendationengine.v1beta1\032\034google/" + - "api/annotations.proto\032\037google/api/field_" + - "behavior.proto\032\031google/api/resource.prot" + - "o\032:google/cloud/recommendationengine/v1b" + - "eta1/user_event.proto\032\034google/protobuf/s" + - "truct.proto\032\027google/api/client.proto\"\256\004\n" + - "\016PredictRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-r" + - "ecommendationengine.googleapis.com/Place" + - "ment\022M\n\nuser_event\030\002 \001(\01324.google.cloud." + - "recommendationengine.v1beta1.UserEventB\003" + - "\340A\002\022\026\n\tpage_size\030\007 \001(\005B\003\340A\001\022\027\n\npage_toke" + - "n\030\010 \001(\tB\003\340A\001\022\023\n\006filter\030\003 \001(\tB\003\340A\001\022\024\n\007dry" + - "_run\030\004 \001(\010B\003\340A\001\022Z\n\006params\030\006 \003(\0132E.google" + - ".cloud.recommendationengine.v1beta1.Pred" + - "ictRequest.ParamsEntryB\003\340A\001\022Z\n\006labels\030\t " + - "\003(\0132E.google.cloud.recommendationengine." + - "v1beta1.PredictRequest.LabelsEntryB\003\340A\001\032" + - "E\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001" + - "(\0132\026.google.protobuf.Value:\0028\001\032-\n\013Labels" + - "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\342\004" + - "\n\017PredictResponse\022\\\n\007results\030\001 \003(\0132K.goo" + - "gle.cloud.recommendationengine.v1beta1.P" + - "redictResponse.PredictionResult\022\034\n\024recom" + - "mendation_token\030\002 \001(\t\022 \n\030items_missing_i" + - "n_catalog\030\003 \003(\t\022\017\n\007dry_run\030\004 \001(\010\022Z\n\010meta" + - "data\030\005 \003(\0132H.google.cloud.recommendation" + - "engine.v1beta1.PredictResponse.MetadataE" + - "ntry\022\027\n\017next_page_token\030\006 \001(\t\032\341\001\n\020Predic" + - "tionResult\022\n\n\002id\030\001 \001(\t\022t\n\ritem_metadata\030" + - "\002 \003(\0132].google.cloud.recommendationengin" + - "e.v1beta1.PredictResponse.PredictionResu" + - "lt.ItemMetadataEntry\032K\n\021ItemMetadataEntr" + - "y\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.p" + - "rotobuf.Value:\0028\001\032G\n\rMetadataEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf" + - ".Value:\0028\0012\342\002\n\021PredictionService\022\363\001\n\007Pre" + - "dict\0229.google.cloud.recommendationengine" + - ".v1beta1.PredictRequest\032:.google.cloud.r" + - "ecommendationengine.v1beta1.PredictRespo" + - "nse\"q\202\323\344\223\002Y\"T/v1beta1/{name=projects/*/l" + - "ocations/*/catalogs/*/eventStores/*/plac" + - "ements/*}:predict:\001*\332A\017name,user_event\032W" + - "\312A#recommendationengine.googleapis.com\322A" + - ".https://www.googleapis.com/auth/cloud-p" + - "latformB\237\002\n-com.google.cloud.recommendat" + - "ionengine.v1beta1P\001Z]google.golang.org/g" + - "enproto/googleapis/cloud/recommendatione" + - "ngine/v1beta1;recommendationengine\242\002\005REC" + - "AI\252\002)Google.Cloud.RecommendationEngine.V" + - "1Beta1\312\002)Google\\Cloud\\RecommendationEngi" + - "ne\\V1beta1\352\002,Google::Cloud::Recommendati" + - "onEngine::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }); - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor, - new java.lang.String[] { "Name", "UserEvent", "PageSize", "PageToken", "Filter", "DryRun", "Params", "Labels", }); - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor, - new java.lang.String[] { "Results", "RecommendationToken", "ItemsMissingInCatalog", "DryRun", "Metadata", "NextPageToken", }); - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor, - new java.lang.String[] { "Id", "ItemMetadata", }); - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/RecommendationengineResources.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/RecommendationengineResources.java deleted file mode 100644 index f754b7f8..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/RecommendationengineResources.java +++ /dev/null @@ -1,72 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public final class RecommendationengineResources { - private RecommendationengineResources() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nNgoogle/cloud/recommendationengine/v1be" + - "ta1/recommendationengine_resources.proto" + - "\022)google.cloud.recommendationengine.v1be" + - "ta1\032\031google/api/resource.protoB\253\010\n-com.g" + - "oogle.cloud.recommendationengine.v1beta1" + - "P\001Z]google.golang.org/genproto/googleapi" + - "s/cloud/recommendationengine/v1beta1;rec" + - "ommendationengine\242\002\005RECAI\252\002)Google.Cloud" + - ".RecommendationEngine.V1Beta1\312\002)Google\\C" + - "loud\\RecommendationEngine\\V1beta1\352\002,Goog" + - "le::Cloud::RecommendationEngine::V1beta1" + - "\352Ai\n+recommendationengine.googleapis.com" + - "/Catalog\022:projects/{project}/locations/{" + - "location}/catalogs/{catalog}\352A\225\001\n3recomm" + - "endationengine.googleapis.com/CatalogIte" + - "mPath\022^projects/{project}/locations/{loc" + - "ation}/catalogs/{catalog}/catalogItems/{" + - "catalog_item_path=**}\352A\206\001\n.recommendatio" + - "nengine.googleapis.com/EventStore\022Tproje" + - "cts/{project}/locations/{location}/catal" + - "ogs/{catalog}/eventStores/{event_store}\352" + - "A\331\001\n@recommendationengine.googleapis.com" + - "/PredictionApiKeyRegistration\022\224\001projects" + - "/{project}/locations/{location}/catalogs" + - "/{catalog}/eventStores/{event_store}/pre" + - "dictionApiKeyRegistrations/{prediction_a" + - "pi_key_registration}\352A\234\001\n-recommendation" + - "engine.googleapis.com/Placement\022kproject" + - "s/{project}/locations/{location}/catalog" + - "s/{catalog}/eventStores/{event_store}/pl" + - "acements/{placement}b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resourceDefinition); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSourceOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSourceOrBuilder.java deleted file mode 100644 index ecd18827..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSourceOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/import.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public interface UserEventInlineSourceOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.UserEventInlineSource) - com.google.protobuf.MessageOrBuilder { - - /** - *
          -   * Optional. A list of user events to import. Recommended max of 10k items.
          -   * 
          - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.List - getUserEventsList(); - /** - *
          -   * Optional. A list of user events to import. Recommended max of 10k items.
          -   * 
          - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvents(int index); - /** - *
          -   * Optional. A list of user events to import. Recommended max of 10k items.
          -   * 
          - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - int getUserEventsCount(); - /** - *
          -   * Optional. A list of user events to import. Recommended max of 10k items.
          -   * 
          - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.List - getUserEventsOrBuilderList(); - /** - *
          -   * Optional. A list of user events to import. Recommended max of 10k items.
          -   * 
          - * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventsOrBuilder( - int index); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOuterClass.java deleted file mode 100644 index 75c3f0cf..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOuterClass.java +++ /dev/null @@ -1,203 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/user_event.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public final class UserEventOuterClass { - private UserEventOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n:google/cloud/recommendationengine/v1be" + - "ta1/user_event.proto\022)google.cloud.recom" + - "mendationengine.v1beta1\032\037google/api/fiel" + - "d_behavior.proto\0327google/cloud/recommend" + - "ationengine/v1beta1/catalog.proto\0326googl" + - "e/cloud/recommendationengine/v1beta1/com" + - "mon.proto\032\037google/protobuf/timestamp.pro" + - "to\032\034google/api/annotations.proto\"\222\004\n\tUse" + - "rEvent\022\027\n\nevent_type\030\001 \001(\tB\003\340A\002\022K\n\tuser_" + - "info\030\002 \001(\01323.google.cloud.recommendation" + - "engine.v1beta1.UserInfoB\003\340A\002\022Q\n\014event_de" + - "tail\030\003 \001(\01326.google.cloud.recommendation" + - "engine.v1beta1.EventDetailB\003\340A\001\022`\n\024produ" + - "ct_event_detail\030\004 \001(\0132=.google.cloud.rec" + - "ommendationengine.v1beta1.ProductEventDe" + - "tailB\003\340A\001\0223\n\nevent_time\030\005 \001(\0132\032.google.p" + - "rotobuf.TimestampB\003\340A\001\022[\n\014event_source\030\006" + - " \001(\0162@.google.cloud.recommendationengine" + - ".v1beta1.UserEvent.EventSourceB\003\340A\001\"X\n\013E" + - "ventSource\022\034\n\030EVENT_SOURCE_UNSPECIFIED\020\000" + - "\022\n\n\006AUTOML\020\001\022\r\n\tECOMMERCE\020\002\022\020\n\014BATCH_UPL" + - "OAD\020\003\"\215\001\n\010UserInfo\022\027\n\nvisitor_id\030\001 \001(\tB\003" + - "\340A\002\022\024\n\007user_id\030\002 \001(\tB\003\340A\001\022\027\n\nip_address\030" + - "\003 \001(\tB\003\340A\001\022\027\n\nuser_agent\030\004 \001(\tB\003\340A\001\022 \n\023d" + - "irect_user_request\030\005 \001(\010B\003\340A\001\"\353\001\n\013EventD" + - "etail\022\020\n\003uri\030\001 \001(\tB\003\340A\001\022\031\n\014referrer_uri\030" + - "\006 \001(\tB\003\340A\001\022\031\n\014page_view_id\030\002 \001(\tB\003\340A\001\022\033\n" + - "\016experiment_ids\030\003 \003(\tB\003\340A\001\022!\n\024recommenda" + - "tion_token\030\004 \001(\tB\003\340A\001\022T\n\020event_attribute" + - "s\030\005 \001(\01325.google.cloud.recommendationeng" + - "ine.v1beta1.FeatureMapB\003\340A\001\"\352\002\n\022ProductE" + - "ventDetail\022\024\n\014search_query\030\001 \001(\t\022a\n\017page" + - "_categories\030\002 \003(\0132H.google.cloud.recomme" + - "ndationengine.v1beta1.CatalogItem.Catego" + - "ryHierarchy\022Q\n\017product_details\030\003 \003(\01328.g" + - "oogle.cloud.recommendationengine.v1beta1" + - ".ProductDetail\022\017\n\007list_id\030\004 \001(\t\022\024\n\007cart_" + - "id\030\005 \001(\tB\003\340A\001\022a\n\024purchase_transaction\030\006 " + - "\001(\0132>.google.cloud.recommendationengine." + - "v1beta1.PurchaseTransactionB\003\340A\001\"\362\002\n\023Pur" + - "chaseTransaction\022\017\n\002id\030\001 \001(\tB\003\340A\001\022\024\n\007rev" + - "enue\030\002 \001(\002B\003\340A\002\022]\n\005taxes\030\003 \003(\0132I.google." + - "cloud.recommendationengine.v1beta1.Purch" + - "aseTransaction.TaxesEntryB\003\340A\001\022]\n\005costs\030" + - "\004 \003(\0132I.google.cloud.recommendationengin" + - "e.v1beta1.PurchaseTransaction.CostsEntry" + - "B\003\340A\001\022\032\n\rcurrency_code\030\006 \001(\tB\003\340A\002\032,\n\nTax" + - "esEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\002:\0028\001\032" + - ",\n\nCostsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + - "\002:\0028\001\"\346\002\n\rProductDetail\022\017\n\002id\030\001 \001(\tB\003\340A\002" + - "\022\032\n\rcurrency_code\030\002 \001(\tB\003\340A\001\022\033\n\016original" + - "_price\030\003 \001(\002B\003\340A\001\022\032\n\rdisplay_price\030\004 \001(\002" + - "B\003\340A\001\022b\n\013stock_state\030\005 \001(\0162H.google.clou" + - "d.recommendationengine.v1beta1.ProductCa" + - "talogItem.StockStateB\003\340A\001\022\025\n\010quantity\030\006 " + - "\001(\005B\003\340A\001\022\037\n\022available_quantity\030\007 \001(\005B\003\340A" + - "\001\022S\n\017item_attributes\030\010 \001(\01325.google.clou" + - "d.recommendationengine.v1beta1.FeatureMa" + - "pB\003\340A\001B\237\002\n-com.google.cloud.recommendati" + - "onengine.v1beta1P\001Z]google.golang.org/ge" + - "nproto/googleapis/cloud/recommendationen" + - "gine/v1beta1;recommendationengine\242\002\005RECA" + - "I\252\002)Google.Cloud.RecommendationEngine.V1" + - "Beta1\312\002)Google\\Cloud\\RecommendationEngin" + - "e\\V1beta1\352\002,Google::Cloud::Recommendatio" + - "nEngine::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.Common.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor, - new java.lang.String[] { "EventType", "UserInfo", "EventDetail", "ProductEventDetail", "EventTime", "EventSource", }); - internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor, - new java.lang.String[] { "VisitorId", "UserId", "IpAddress", "UserAgent", "DirectUserRequest", }); - internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor, - new java.lang.String[] { "Uri", "ReferrerUri", "PageViewId", "ExperimentIds", "RecommendationToken", "EventAttributes", }); - internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor, - new java.lang.String[] { "SearchQuery", "PageCategories", "ProductDetails", "ListId", "CartId", "PurchaseTransaction", }); - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor, - new java.lang.String[] { "Id", "Revenue", "Taxes", "Costs", "CurrencyCode", }); - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_descriptor = - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor, - new java.lang.String[] { "Id", "CurrencyCode", "OriginalPrice", "DisplayPrice", "StockState", "Quantity", "AvailableQuantity", "ItemAttributes", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.Common.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceOuterClass.java deleted file mode 100644 index 6d445590..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceOuterClass.java +++ /dev/null @@ -1,227 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/user_event_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public final class UserEventServiceOuterClass { - private UserEventServiceOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nBgoogle/cloud/recommendationengine/v1be" + - "ta1/user_event_service.proto\022)google.clo" + - "ud.recommendationengine.v1beta1\032\034google/" + - "api/annotations.proto\032\037google/api/field_" + - "behavior.proto\032\031google/api/httpbody.prot" + - "o\032\031google/api/resource.proto\0326google/clo" + - "ud/recommendationengine/v1beta1/import.p" + - "roto\032:google/cloud/recommendationengine/" + - "v1beta1/user_event.proto\032#google/longrun" + - "ning/operations.proto\032\037google/protobuf/t" + - "imestamp.proto\032\026google/type/date.proto\032\027" + - "google/api/client.proto\"\211\001\n\026PurgeUserEve" + - "ntsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.reco" + - "mmendationengine.googleapis.com/EventSto" + - "re\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\022\n\005force\030\003 \001(\010B\003" + - "\340A\001\"b\n\027PurgeUserEventsMetadata\022\026\n\016operat" + - "ion_name\030\001 \001(\t\022/\n\013create_time\030\002 \001(\0132\032.go" + - "ogle.protobuf.Timestamp\"\210\001\n\027PurgeUserEve" + - "ntsResponse\022\033\n\023purged_events_count\030\001 \001(\003" + - "\022P\n\022user_events_sample\030\002 \003(\01324.google.cl" + - "oud.recommendationengine.v1beta1.UserEve" + - "nt\"\256\001\n\025WriteUserEventRequest\022F\n\006parent\030\001" + - " \001(\tB6\340A\002\372A0\n.recommendationengine.googl" + - "eapis.com/EventStore\022M\n\nuser_event\030\002 \001(\013" + - "24.google.cloud.recommendationengine.v1b" + - "eta1.UserEventB\003\340A\002\"\236\001\n\027CollectUserEvent" + - "Request\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.recomme" + - "ndationengine.googleapis.com/EventStore\022" + - "\027\n\nuser_event\030\002 \001(\tB\003\340A\002\022\020\n\003uri\030\003 \001(\tB\003\340" + - "A\001\022\020\n\003ets\030\004 \001(\003B\003\340A\001\"\245\001\n\025ListUserEventsR" + - "equest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.recommen" + - "dationengine.googleapis.com/EventStore\022\026" + - "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" + - "(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\"|\n\026ListUser" + - "EventsResponse\022I\n\013user_events\030\001 \003(\01324.go" + - "ogle.cloud.recommendationengine.v1beta1." + - "UserEvent\022\027\n\017next_page_token\030\002 \001(\t2\330\014\n\020U" + - "serEventService\022\204\002\n\016WriteUserEvent\022@.goo" + - "gle.cloud.recommendationengine.v1beta1.W" + - "riteUserEventRequest\0324.google.cloud.reco" + - "mmendationengine.v1beta1.UserEvent\"z\202\323\344\223" + - "\002`\"R/v1beta1/{parent=projects/*/location" + - "s/*/catalogs/*/eventStores/*}/userEvents" + - ":write:\nuser_event\332A\021parent,user_event\022\346" + - "\001\n\020CollectUserEvent\022B.google.cloud.recom" + - "mendationengine.v1beta1.CollectUserEvent" + - "Request\032\024.google.api.HttpBody\"x\202\323\344\223\002V\022T/" + - "v1beta1/{parent=projects/*/locations/*/c" + - "atalogs/*/eventStores/*}/userEvents:coll" + - "ect\332A\031parent,user_event,uri,ets\022\373\001\n\016List" + - "UserEvents\022@.google.cloud.recommendation" + - "engine.v1beta1.ListUserEventsRequest\032A.g" + - "oogle.cloud.recommendationengine.v1beta1" + - ".ListUserEventsResponse\"d\202\323\344\223\002N\022L/v1beta" + - "1/{parent=projects/*/locations/*/catalog" + - "s/*/eventStores/*}/userEvents\332A\rparent,f" + - "ilter\022\363\002\n\017PurgeUserEvents\022A.google.cloud" + - ".recommendationengine.v1beta1.PurgeUserE" + - "ventsRequest\032\035.google.longrunning.Operat" + - "ion\"\375\001\202\323\344\223\002W\"R/v1beta1/{parent=projects/" + - "*/locations/*/catalogs/*/eventStores/*}/" + - "userEvents:purge:\001*\312A\206\001\nAgoogle.cloud.re" + - "commendationengine.v1beta1.PurgeUserEven" + - "tsResponse\022Agoogle.cloud.recommendatione" + - "ngine.v1beta1.PurgeUserEventsMetadata\332A\023" + - "parent,filter,force\022\206\003\n\020ImportUserEvents" + - "\022B.google.cloud.recommendationengine.v1b" + - "eta1.ImportUserEventsRequest\032\035.google.lo" + - "ngrunning.Operation\"\216\002\202\323\344\223\002X\"S/v1beta1/{" + - "parent=projects/*/locations/*/catalogs/*" + - "/eventStores/*}/userEvents:import:\001*\312A~\n" + - "Bgoogle.cloud.recommendationengine.v1bet" + - "a1.ImportUserEventsResponse\0228google.clou" + - "d.recommendationengine.v1beta1.ImportMet" + - "adata\332A,parent,request_id,input_config,e" + - "rrors_config\032W\312A#recommendationengine.go" + - "ogleapis.com\322A.https://www.googleapis.co" + - "m/auth/cloud-platformB\237\002\n-com.google.clo" + - "ud.recommendationengine.v1beta1P\001Z]googl" + - "e.golang.org/genproto/googleapis/cloud/r" + - "ecommendationengine/v1beta1;recommendati" + - "onengine\242\002\005RECAI\252\002)Google.Cloud.Recommen" + - "dationEngine.V1Beta1\312\002)Google\\Cloud\\Reco" + - "mmendationEngine\\V1beta1\352\002,Google::Cloud" + - "::RecommendationEngine::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.HttpBodyProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.Import.getDescriptor(), - com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.type.DateProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }); - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "Force", }); - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor, - new java.lang.String[] { "OperationName", "CreateTime", }); - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor, - new java.lang.String[] { "PurgedEventsCount", "UserEventsSample", }); - internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor, - new java.lang.String[] { "Parent", "UserEvent", }); - internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor, - new java.lang.String[] { "Parent", "UserEvent", "Uri", "Ets", }); - internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", }); - internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor, - new java.lang.String[] { "UserEvents", "NextPageToken", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - 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.FieldBehaviorProto.getDescriptor(); - com.google.api.HttpBodyProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.Import.getDescriptor(); - com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.type.DateProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequestOrBuilder.java deleted file mode 100644 index f5f6aef3..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/recommendationengine/v1beta1/user_event_service.proto - -package com.google.cloud.recommendationengine.v1beta1; - -public interface WriteUserEventRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
          -   * Required. The parent eventStore resource name, such as
          -   * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          -   * 
          - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
          -   * Required. The parent eventStore resource name, such as
          -   * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          -   * 
          - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
          -   * Required. User event to write.
          -   * 
          - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the userEvent field is set. - */ - boolean hasUserEvent(); - /** - *
          -   * Required. User event to write.
          -   * 
          - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The userEvent. - */ - com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvent(); - /** - *
          -   * Required. User event to write.
          -   * 
          - * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventOrBuilder(); -} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Catalog.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Catalog.java new file mode 100644 index 00000000..b0d7798f --- /dev/null +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Catalog.java @@ -0,0 +1,221 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/catalog.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public final class Catalog { + private Catalog() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_Image_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n7google/cloud/recommendationengine/v1be" + + "ta1/catalog.proto\022)google.cloud.recommen" + + "dationengine.v1beta1\032\037google/api/field_b" + + "ehavior.proto\0326google/cloud/recommendati" + + "onengine/v1beta1/common.proto\032\034google/pr" + + "otobuf/struct.proto\032\034google/api/annotati" + + "ons.proto\"\376\003\n\013CatalogItem\022\017\n\002id\030\001 \001(\tB\003\340" + + "A\002\022k\n\024category_hierarchies\030\002 \003(\0132H.googl" + + "e.cloud.recommendationengine.v1beta1.Cat" + + "alogItem.CategoryHierarchyB\003\340A\002\022\022\n\005title" + + "\030\003 \001(\tB\003\340A\002\022\030\n\013description\030\004 \001(\tB\003\340A\001\022S\n" + + "\017item_attributes\030\005 \001(\01325.google.cloud.re" + + "commendationengine.v1beta1.FeatureMapB\003\340" + + "A\001\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A\001\022\021\n\004tags\030\010" + + " \003(\tB\003\340A\001\022\032\n\ritem_group_id\030\t \001(\tB\003\340A\001\022^\n" + + "\020product_metadata\030\n \001(\0132=.google.cloud.r" + + "ecommendationengine.v1beta1.ProductCatal" + + "ogItemB\003\340A\001H\000\032,\n\021CategoryHierarchy\022\027\n\nca" + + "tegories\030\001 \003(\tB\003\340A\002B\025\n\023recommendation_ty" + + "pe\"\346\006\n\022ProductCatalogItem\022d\n\013exact_price" + + "\030\001 \001(\0132H.google.cloud.recommendationengi" + + "ne.v1beta1.ProductCatalogItem.ExactPrice" + + "B\003\340A\001H\000\022d\n\013price_range\030\002 \001(\0132H.google.cl" + + "oud.recommendationengine.v1beta1.Product" + + "CatalogItem.PriceRangeB\003\340A\001H\000\022\\\n\005costs\030\003" + + " \003(\0132H.google.cloud.recommendationengine" + + ".v1beta1.ProductCatalogItem.CostsEntryB\003" + + "\340A\001\022\032\n\rcurrency_code\030\004 \001(\tB\003\340A\001\022b\n\013stock" + + "_state\030\005 \001(\0162H.google.cloud.recommendati" + + "onengine.v1beta1.ProductCatalogItem.Stoc" + + "kStateB\003\340A\001\022\037\n\022available_quantity\030\006 \001(\003B" + + "\003\340A\001\022\"\n\025canonical_product_uri\030\007 \001(\tB\003\340A\001" + + "\022E\n\006images\030\010 \003(\01320.google.cloud.recommen" + + "dationengine.v1beta1.ImageB\003\340A\001\032E\n\nExact" + + "Price\022\032\n\rdisplay_price\030\001 \001(\002B\003\340A\001\022\033\n\016ori" + + "ginal_price\030\002 \001(\002B\003\340A\001\0320\n\nPriceRange\022\020\n\003" + + "min\030\001 \001(\002B\003\340A\002\022\020\n\003max\030\002 \001(\002B\003\340A\002\032,\n\nCost" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\002:\0028\001\"j" + + "\n\nStockState\022\033\n\027STOCK_STATE_UNSPECIFIED\020" + + "\000\022\014\n\010IN_STOCK\020\000\022\020\n\014OUT_OF_STOCK\020\001\022\014\n\010PRE" + + "ORDER\020\002\022\r\n\tBACKORDER\020\003\032\002\020\001B\007\n\005price\"B\n\005I" + + "mage\022\020\n\003uri\030\001 \001(\tB\003\340A\002\022\023\n\006height\030\002 \001(\005B\003" + + "\340A\001\022\022\n\005width\030\003 \001(\005B\003\340A\001B\237\002\n-com.google.c" + + "loud.recommendationengine.v1beta1P\001Z]goo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/recommendationengine/v1beta1;recommenda" + + "tionengine\242\002\005RECAI\252\002)Google.Cloud.Recomm" + + "endationEngine.V1Beta1\312\002)Google\\Cloud\\Re" + + "commendationEngine\\V1beta1\352\002,Google::Clo" + + "ud::RecommendationEngine::V1beta1b\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.Common.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor, + new java.lang.String[] { + "Id", + "CategoryHierarchies", + "Title", + "Description", + "ItemAttributes", + "LanguageCode", + "Tags", + "ItemGroupId", + "ProductMetadata", + "RecommendationType", + }); + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor, + new java.lang.String[] { + "Categories", + }); + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor, + new java.lang.String[] { + "ExactPrice", + "PriceRange", + "Costs", + "CurrencyCode", + "StockState", + "AvailableQuantity", + "CanonicalProductUri", + "Images", + "Price", + }); + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor, + new java.lang.String[] { + "DisplayPrice", "OriginalPrice", + }); + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor, + new java.lang.String[] { + "Min", "Max", + }); + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_recommendationengine_v1beta1_Image_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor, + new java.lang.String[] { + "Uri", "Height", "Width", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.Common.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSource.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSource.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSource.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSource.java index 683c679c..cc4d1f35 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSource.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSource.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * The inline source for the input config for ImportCatalogItems method.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CatalogInlineSource} */ -public final class CatalogInlineSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CatalogInlineSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.CatalogInlineSource) CatalogInlineSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CatalogInlineSource.newBuilder() to construct. private CatalogInlineSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CatalogInlineSource() { catalogItems_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CatalogInlineSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CatalogInlineSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,27 @@ private CatalogInlineSource( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - catalogItems_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + catalogItems_ = + new java.util.ArrayList< + com.google.cloud.recommendationengine.v1beta1.CatalogItem>(); + mutable_bitField0_ |= 0x00000001; + } + catalogItems_.add( + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.CatalogItem.parser(), + extensionRegistry)); + break; } - catalogItems_.add( - input.readMessage(com.google.cloud.recommendationengine.v1beta1.CatalogItem.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +99,7 @@ private CatalogInlineSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { catalogItems_ = java.util.Collections.unmodifiableList(catalogItems_); @@ -87,85 +108,111 @@ private CatalogInlineSource( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.class, com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder.class); + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.class, + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder.class); } public static final int CATALOG_ITEMS_FIELD_NUMBER = 1; private java.util.List catalogItems_; /** + * + * *
              * Optional. A list of catalog items to update/create. Recommended max of 10k
              * items.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getCatalogItemsList() { + public java.util.List + getCatalogItemsList() { return catalogItems_; } /** + * + * *
              * Optional. A list of catalog items to update/create. Recommended max of 10k
              * items.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> getCatalogItemsOrBuilderList() { return catalogItems_; } /** + * + * *
              * Optional. A list of catalog items to update/create. Recommended max of 10k
              * items.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getCatalogItemsCount() { return catalogItems_.size(); } /** + * + * *
              * Optional. A list of catalog items to update/create. Recommended max of 10k
              * items.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItems(int index) { return catalogItems_.get(index); } /** + * + * *
              * Optional. A list of catalog items to update/create. Recommended max of 10k
              * items.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemsOrBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder + getCatalogItemsOrBuilder(int index) { return catalogItems_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +224,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < catalogItems_.size(); i++) { output.writeMessage(1, catalogItems_.get(i)); } @@ -192,8 +238,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < catalogItems_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, catalogItems_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, catalogItems_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -203,15 +248,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource other = (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) obj; + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource other = + (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) obj; - if (!getCatalogItemsList() - .equals(other.getCatalogItemsList())) return false; + if (!getCatalogItemsList().equals(other.getCatalogItemsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,135 +278,147 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * The inline source for the input config for ImportCatalogItems method.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CatalogInlineSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.CatalogInlineSource) com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.class, com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder.class); + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.class, + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder.class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCatalogItemsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,13 +432,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource + getDefaultInstanceForType() { return com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.getDefaultInstance(); } @@ -396,7 +454,8 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource build() @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource buildPartial() { - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource result = new com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource(this); + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource result = + new com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource(this); int from_bitField0_ = bitField0_; if (catalogItemsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,46 +474,50 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource)other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource other) { - if (other == com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.getDefaultInstance()) + return this; if (catalogItemsBuilder_ == null) { if (!other.catalogItems_.isEmpty()) { if (catalogItems_.isEmpty()) { @@ -473,9 +536,10 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.CatalogIn catalogItemsBuilder_ = null; catalogItems_ = other.catalogItems_; bitField0_ = (bitField0_ & ~0x00000001); - catalogItemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCatalogItemsFieldBuilder() : null; + catalogItemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCatalogItemsFieldBuilder() + : null; } else { catalogItemsBuilder_.addAllMessages(other.catalogItems_); } @@ -500,7 +564,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -509,29 +575,41 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List catalogItems_ = - java.util.Collections.emptyList(); + private java.util.List + catalogItems_ = java.util.Collections.emptyList(); + private void ensureCatalogItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - catalogItems_ = new java.util.ArrayList(catalogItems_); + catalogItems_ = + new java.util.ArrayList( + catalogItems_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> catalogItemsBuilder_; + com.google.cloud.recommendationengine.v1beta1.CatalogItem, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, + com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> + catalogItemsBuilder_; /** + * + * *
                * Optional. A list of catalog items to update/create. Recommended max of 10k
                * items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getCatalogItemsList() { + public java.util.List + getCatalogItemsList() { if (catalogItemsBuilder_ == null) { return java.util.Collections.unmodifiableList(catalogItems_); } else { @@ -539,12 +617,16 @@ public java.util.List } } /** + * + * *
                * Optional. A list of catalog items to update/create. Recommended max of 10k
                * items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getCatalogItemsCount() { if (catalogItemsBuilder_ == null) { @@ -554,12 +636,16 @@ public int getCatalogItemsCount() { } } /** + * + * *
                * Optional. A list of catalog items to update/create. Recommended max of 10k
                * items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItems(int index) { if (catalogItemsBuilder_ == null) { @@ -569,12 +655,16 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItems } } /** + * + * *
                * Optional. A list of catalog items to update/create. Recommended max of 10k
                * items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCatalogItems( int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { @@ -591,15 +681,20 @@ public Builder setCatalogItems( return this; } /** + * + * *
                * Optional. A list of catalog items to update/create. Recommended max of 10k
                * items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCatalogItems( - int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { + int index, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { if (catalogItemsBuilder_ == null) { ensureCatalogItemsIsMutable(); catalogItems_.set(index, builderForValue.build()); @@ -610,14 +705,19 @@ public Builder setCatalogItems( return this; } /** + * + * *
                * Optional. A list of catalog items to update/create. Recommended max of 10k
                * items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addCatalogItems(com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { + public Builder addCatalogItems( + com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { if (catalogItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -631,12 +731,16 @@ public Builder addCatalogItems(com.google.cloud.recommendationengine.v1beta1.Cat return this; } /** + * + * *
                * Optional. A list of catalog items to update/create. Recommended max of 10k
                * items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addCatalogItems( int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { @@ -653,12 +757,16 @@ public Builder addCatalogItems( return this; } /** + * + * *
                * Optional. A list of catalog items to update/create. Recommended max of 10k
                * items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addCatalogItems( com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { @@ -672,15 +780,20 @@ public Builder addCatalogItems( return this; } /** + * + * *
                * Optional. A list of catalog items to update/create. Recommended max of 10k
                * items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addCatalogItems( - int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { + int index, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { if (catalogItemsBuilder_ == null) { ensureCatalogItemsIsMutable(); catalogItems_.add(index, builderForValue.build()); @@ -691,19 +804,23 @@ public Builder addCatalogItems( return this; } /** + * + * *
                * Optional. A list of catalog items to update/create. Recommended max of 10k
                * items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllCatalogItems( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (catalogItemsBuilder_ == null) { ensureCatalogItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, catalogItems_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, catalogItems_); onChanged(); } else { catalogItemsBuilder_.addAllMessages(values); @@ -711,12 +828,16 @@ public Builder addAllCatalogItems( return this; } /** + * + * *
                * Optional. A list of catalog items to update/create. Recommended max of 10k
                * items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearCatalogItems() { if (catalogItemsBuilder_ == null) { @@ -729,12 +850,16 @@ public Builder clearCatalogItems() { return this; } /** + * + * *
                * Optional. A list of catalog items to update/create. Recommended max of 10k
                * items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeCatalogItems(int index) { if (catalogItemsBuilder_ == null) { @@ -747,42 +872,56 @@ public Builder removeCatalogItems(int index) { return this; } /** + * + * *
                * Optional. A list of catalog items to update/create. Recommended max of 10k
                * items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder getCatalogItemsBuilder( int index) { return getCatalogItemsFieldBuilder().getBuilder(index); } /** + * + * *
                * Optional. A list of catalog items to update/create. Recommended max of 10k
                * items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemsOrBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder + getCatalogItemsOrBuilder(int index) { if (catalogItemsBuilder_ == null) { - return catalogItems_.get(index); } else { + return catalogItems_.get(index); + } else { return catalogItemsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * Optional. A list of catalog items to update/create. Recommended max of 10k
                * items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getCatalogItemsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> + getCatalogItemsOrBuilderList() { if (catalogItemsBuilder_ != null) { return catalogItemsBuilder_.getMessageOrBuilderList(); } else { @@ -790,59 +929,78 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCat } } /** + * + * *
                * Optional. A list of catalog items to update/create. Recommended max of 10k
                * items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder addCatalogItemsBuilder() { - return getCatalogItemsFieldBuilder().addBuilder( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder + addCatalogItemsBuilder() { + return getCatalogItemsFieldBuilder() + .addBuilder( + com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance()); } /** + * + * *
                * Optional. A list of catalog items to update/create. Recommended max of 10k
                * items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder addCatalogItemsBuilder( int index) { - return getCatalogItemsFieldBuilder().addBuilder( - index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance()); + return getCatalogItemsFieldBuilder() + .addBuilder( + index, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance()); } /** + * + * *
                * Optional. A list of catalog items to update/create. Recommended max of 10k
                * items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getCatalogItemsBuilderList() { + public java.util.List + getCatalogItemsBuilderList() { return getCatalogItemsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> + com.google.cloud.recommendationengine.v1beta1.CatalogItem, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, + com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> getCatalogItemsFieldBuilder() { if (catalogItemsBuilder_ == null) { - catalogItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder>( - catalogItems_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + catalogItemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.CatalogItem, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, + com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder>( + catalogItems_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); catalogItems_ = null; } return catalogItemsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -852,30 +1010,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.CatalogInlineSource) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.CatalogInlineSource) - private static final com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource(); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CatalogInlineSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CatalogInlineSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CatalogInlineSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CatalogInlineSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -887,9 +1047,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSourceOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSourceOrBuilder.java new file mode 100644 index 00000000..a774086a --- /dev/null +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogInlineSourceOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/import.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public interface CatalogInlineSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.CatalogInlineSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Optional. A list of catalog items to update/create. Recommended max of 10k
          +   * items.
          +   * 
          + * + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCatalogItemsList(); + /** + * + * + *
          +   * Optional. A list of catalog items to update/create. Recommended max of 10k
          +   * items.
          +   * 
          + * + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItems(int index); + /** + * + * + *
          +   * Optional. A list of catalog items to update/create. Recommended max of 10k
          +   * items.
          +   * 
          + * + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCatalogItemsCount(); + /** + * + * + *
          +   * Optional. A list of catalog items to update/create. Recommended max of 10k
          +   * items.
          +   * 
          + * + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCatalogItemsOrBuilderList(); + /** + * + * + *
          +   * Optional. A list of catalog items to update/create. Recommended max of 10k
          +   * items.
          +   * 
          + * + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemsOrBuilder( + int index); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItem.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItem.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItem.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItem.java index caed2605..00ad5058 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItem.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItem.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * CatalogItem captures all metadata information of items to be recommended.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CatalogItem} */ -public final class CatalogItem extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CatalogItem extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.CatalogItem) CatalogItemOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CatalogItem.newBuilder() to construct. private CatalogItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CatalogItem() { id_ = ""; categoryHierarchies_ = java.util.Collections.emptyList(); @@ -31,16 +49,15 @@ private CatalogItem() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CatalogItem(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CatalogItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -60,88 +77,114 @@ private CatalogItem( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - categoryHierarchies_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + id_ = s; + break; } - categoryHierarchies_.add( - input.readMessage(com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.parser(), extensionRegistry)); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + categoryHierarchies_ = + new java.util.ArrayList< + com.google.cloud.recommendationengine.v1beta1.CatalogItem + .CategoryHierarchy>(); + mutable_bitField0_ |= 0x00000001; + } + categoryHierarchies_.add( + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + .parser(), + extensionRegistry)); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 42: { - com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder subBuilder = null; - if (itemAttributes_ != null) { - subBuilder = itemAttributes_.toBuilder(); + title_ = s; + break; } - itemAttributes_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.FeatureMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(itemAttributes_); - itemAttributes_ = subBuilder.buildPartial(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; } + case 42: + { + com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder subBuilder = null; + if (itemAttributes_ != null) { + subBuilder = itemAttributes_.toBuilder(); + } + itemAttributes_ = + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.FeatureMap.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(itemAttributes_); + itemAttributes_ = subBuilder.buildPartial(); + } - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + languageCode_ = s; + break; } - tags_.add(s); - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + tags_.add(s); + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); - itemGroupId_ = s; - break; - } - case 82: { - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder subBuilder = null; - if (recommendationTypeCase_ == 10) { - subBuilder = ((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_).toBuilder(); + itemGroupId_ = s; + break; } - recommendationType_ = - input.readMessage(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_); - recommendationType_ = subBuilder.buildPartial(); + case 82: + { + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder subBuilder = + null; + if (recommendationTypeCase_ == 10) { + subBuilder = + ((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) + recommendationType_) + .toBuilder(); + } + recommendationType_ = + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) + recommendationType_); + recommendationType_ = subBuilder.buildPartial(); + } + recommendationTypeCase_ = 10; + break; } - recommendationTypeCase_ = 10; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -149,8 +192,7 @@ private CatalogItem( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { categoryHierarchies_ = java.util.Collections.unmodifiableList(categoryHierarchies_); @@ -162,24 +204,30 @@ private CatalogItem( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.class, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder.class); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.class, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder.class); } - public interface CategoryHierarchyOrBuilder extends + public interface CategoryHierarchyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Required. Catalog item categories. Each category should be a UTF-8
                * encoded string with a length limit of 2 KiB.
          @@ -188,11 +236,13 @@ public interface CategoryHierarchyOrBuilder extends
                * 
          * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the categories. */ - java.util.List - getCategoriesList(); + java.util.List getCategoriesList(); /** + * + * *
                * Required. Catalog item categories. Each category should be a UTF-8
                * encoded string with a length limit of 2 KiB.
          @@ -201,10 +251,13 @@ public interface CategoryHierarchyOrBuilder extends
                * 
          * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of categories. */ int getCategoriesCount(); /** + * + * *
                * Required. Catalog item categories. Each category should be a UTF-8
                * encoded string with a length limit of 2 KiB.
          @@ -213,11 +266,14 @@ public interface CategoryHierarchyOrBuilder extends
                * 
          * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The categories at the given index. */ java.lang.String getCategories(int index); /** + * + * *
                * Required. Catalog item categories. Each category should be a UTF-8
                * encoded string with a length limit of 2 KiB.
          @@ -226,44 +282,46 @@ public interface CategoryHierarchyOrBuilder extends
                * 
          * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the categories at the given index. */ - com.google.protobuf.ByteString - getCategoriesBytes(int index); + com.google.protobuf.ByteString getCategoriesBytes(int index); } /** + * + * *
              * Category represents catalog item category hierarchy.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy} */ - public static final class CategoryHierarchy extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class CategoryHierarchy extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) CategoryHierarchyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CategoryHierarchy.newBuilder() to construct. private CategoryHierarchy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CategoryHierarchy() { categories_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CategoryHierarchy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CategoryHierarchy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -283,22 +341,23 @@ private CategoryHierarchy( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - categories_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + categories_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + categories_.add(s); + break; } - categories_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -306,8 +365,7 @@ private CategoryHierarchy( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { categories_ = categories_.getUnmodifiableView(); @@ -316,22 +374,28 @@ private CategoryHierarchy( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.class, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder.class); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.class, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder + .class); } public static final int CATEGORIES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList categories_; /** + * + * *
                * Required. Catalog item categories. Each category should be a UTF-8
                * encoded string with a length limit of 2 KiB.
          @@ -340,13 +404,15 @@ private CategoryHierarchy(
                * 
          * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the categories. */ - public com.google.protobuf.ProtocolStringList - getCategoriesList() { + public com.google.protobuf.ProtocolStringList getCategoriesList() { return categories_; } /** + * + * *
                * Required. Catalog item categories. Each category should be a UTF-8
                * encoded string with a length limit of 2 KiB.
          @@ -355,12 +421,15 @@ private CategoryHierarchy(
                * 
          * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of categories. */ public int getCategoriesCount() { return categories_.size(); } /** + * + * *
                * Required. Catalog item categories. Each category should be a UTF-8
                * encoded string with a length limit of 2 KiB.
          @@ -369,6 +438,7 @@ public int getCategoriesCount() {
                * 
          * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The categories at the given index. */ @@ -376,6 +446,8 @@ public java.lang.String getCategories(int index) { return categories_.get(index); } /** + * + * *
                * Required. Catalog item categories. Each category should be a UTF-8
                * encoded string with a length limit of 2 KiB.
          @@ -384,15 +456,16 @@ public java.lang.String getCategories(int index) {
                * 
          * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the categories at the given index. */ - public com.google.protobuf.ByteString - getCategoriesBytes(int index) { + public com.google.protobuf.ByteString getCategoriesBytes(int index) { return categories_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -404,8 +477,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < categories_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, categories_.getRaw(i)); } @@ -434,15 +506,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy)) { + if (!(obj + instanceof com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy other = (com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) obj; + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy other = + (com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) obj; - if (!getCategoriesList() - .equals(other.getCategoriesList())) return false; + if (!getCategoriesList().equals(other.getCategoriesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -463,88 +536,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -554,44 +640,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                * Category represents catalog item category hierarchy.
                * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.class, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder.class); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.class, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder + .class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -601,19 +693,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_CategoryHierarchy_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy build() { - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy result = buildPartial(); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -621,8 +716,10 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy buildPartial() { - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy result = new com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy(this); + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + buildPartial() { + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy result = + new com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { categories_ = categories_.getUnmodifiableView(); @@ -637,46 +734,55 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy)other); + if (other + instanceof + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) { + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy other) { - if (other == com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + .getDefaultInstance()) return this; if (!other.categories_.isEmpty()) { if (categories_.isEmpty()) { categories_ = other.categories_; @@ -702,11 +808,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parsedMessage = null; + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -715,16 +824,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList categories_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList categories_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCategoriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { categories_ = new com.google.protobuf.LazyStringArrayList(categories_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
                  * Required. Catalog item categories. Each category should be a UTF-8
                  * encoded string with a length limit of 2 KiB.
          @@ -733,13 +847,15 @@ private void ensureCategoriesIsMutable() {
                  * 
          * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the categories. */ - public com.google.protobuf.ProtocolStringList - getCategoriesList() { + public com.google.protobuf.ProtocolStringList getCategoriesList() { return categories_.getUnmodifiableView(); } /** + * + * *
                  * Required. Catalog item categories. Each category should be a UTF-8
                  * encoded string with a length limit of 2 KiB.
          @@ -748,12 +864,15 @@ private void ensureCategoriesIsMutable() {
                  * 
          * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of categories. */ public int getCategoriesCount() { return categories_.size(); } /** + * + * *
                  * Required. Catalog item categories. Each category should be a UTF-8
                  * encoded string with a length limit of 2 KiB.
          @@ -762,6 +881,7 @@ public int getCategoriesCount() {
                  * 
          * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The categories at the given index. */ @@ -769,6 +889,8 @@ public java.lang.String getCategories(int index) { return categories_.get(index); } /** + * + * *
                  * Required. Catalog item categories. Each category should be a UTF-8
                  * encoded string with a length limit of 2 KiB.
          @@ -777,14 +899,16 @@ public java.lang.String getCategories(int index) {
                  * 
          * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the categories at the given index. */ - public com.google.protobuf.ByteString - getCategoriesBytes(int index) { + public com.google.protobuf.ByteString getCategoriesBytes(int index) { return categories_.getByteString(index); } /** + * + * *
                  * Required. Catalog item categories. Each category should be a UTF-8
                  * encoded string with a length limit of 2 KiB.
          @@ -793,21 +917,23 @@ public java.lang.String getCategories(int index) {
                  * 
          * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The categories to set. * @return This builder for chaining. */ - public Builder setCategories( - int index, java.lang.String value) { + public Builder setCategories(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCategoriesIsMutable(); + throw new NullPointerException(); + } + ensureCategoriesIsMutable(); categories_.set(index, value); onChanged(); return this; } /** + * + * *
                  * Required. Catalog item categories. Each category should be a UTF-8
                  * encoded string with a length limit of 2 KiB.
          @@ -816,20 +942,22 @@ public Builder setCategories(
                  * 
          * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The categories to add. * @return This builder for chaining. */ - public Builder addCategories( - java.lang.String value) { + public Builder addCategories(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCategoriesIsMutable(); + throw new NullPointerException(); + } + ensureCategoriesIsMutable(); categories_.add(value); onChanged(); return this; } /** + * + * *
                  * Required. Catalog item categories. Each category should be a UTF-8
                  * encoded string with a length limit of 2 KiB.
          @@ -838,18 +966,19 @@ public Builder addCategories(
                  * 
          * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The categories to add. * @return This builder for chaining. */ - public Builder addAllCategories( - java.lang.Iterable values) { + public Builder addAllCategories(java.lang.Iterable values) { ensureCategoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, categories_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, categories_); onChanged(); return this; } /** + * + * *
                  * Required. Catalog item categories. Each category should be a UTF-8
                  * encoded string with a length limit of 2 KiB.
          @@ -858,6 +987,7 @@ public Builder addAllCategories(
                  * 
          * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCategories() { @@ -867,6 +997,8 @@ public Builder clearCategories() { return this; } /** + * + * *
                  * Required. Catalog item categories. Each category should be a UTF-8
                  * encoded string with a length limit of 2 KiB.
          @@ -875,20 +1007,21 @@ public Builder clearCategories() {
                  * 
          * * repeated string categories = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the categories to add. * @return This builder for chaining. */ - public Builder addCategoriesBytes( - com.google.protobuf.ByteString value) { + public Builder addCategoriesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureCategoriesIsMutable(); categories_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -901,30 +1034,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy) - private static final com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy(); + DEFAULT_INSTANCE = + new com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy(); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CategoryHierarchy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CategoryHierarchy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CategoryHierarchy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CategoryHierarchy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -936,20 +1072,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int recommendationTypeCase_ = 0; private java.lang.Object recommendationType_; + public enum RecommendationTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PRODUCT_METADATA(10), RECOMMENDATIONTYPE_NOT_SET(0); private final int value; + private RecommendationTypeCase(int value) { this.value = value; } @@ -965,25 +1104,29 @@ public static RecommendationTypeCase valueOf(int value) { public static RecommendationTypeCase forNumber(int value) { switch (value) { - case 10: return PRODUCT_METADATA; - case 0: return RECOMMENDATIONTYPE_NOT_SET; - default: return null; + case 10: + return PRODUCT_METADATA; + case 0: + return RECOMMENDATIONTYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public RecommendationTypeCase - getRecommendationTypeCase() { - return RecommendationTypeCase.forNumber( - recommendationTypeCase_); + public RecommendationTypeCase getRecommendationTypeCase() { + return RecommendationTypeCase.forNumber(recommendationTypeCase_); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** + * + * *
              * Required. Catalog item identifier. UTF-8 encoded string with a length limit
              * of 128 bytes.
          @@ -993,6 +1136,7 @@ public int getNumber() {
              * 
          * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The id. */ @java.lang.Override @@ -1001,14 +1145,15 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** + * + * *
              * Required. Catalog item identifier. UTF-8 encoded string with a length limit
              * of 128 bytes.
          @@ -1018,16 +1163,15 @@ public java.lang.String getId() {
              * 
          * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -1036,8 +1180,12 @@ public java.lang.String getId() { } public static final int CATEGORY_HIERARCHIES_FIELD_NUMBER = 2; - private java.util.List categoryHierarchies_; + private java.util.List< + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy> + categoryHierarchies_; /** + * + * *
              * Required. Catalog item categories. This field is repeated for supporting
              * one catalog item belonging to several parallel category hierarchies.
          @@ -1051,13 +1199,18 @@ public java.lang.String getId() {
              *      ]
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List getCategoryHierarchiesList() { + public java.util.List + getCategoryHierarchiesList() { return categoryHierarchies_; } /** + * + * *
              * Required. Catalog item categories. This field is repeated for supporting
              * one catalog item belonging to several parallel category hierarchies.
          @@ -1071,14 +1224,20 @@ public java.util.List
              *
          -   * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED];
          +   * 
          +   * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED];
          +   * 
              */
             @java.lang.Override
          -  public java.util.List 
          +  public java.util.List<
          +          ? extends
          +              com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder>
                 getCategoryHierarchiesOrBuilderList() {
               return categoryHierarchies_;
             }
             /**
          +   *
          +   *
              * 
              * Required. Catalog item categories. This field is repeated for supporting
              * one catalog item belonging to several parallel category hierarchies.
          @@ -1092,13 +1251,17 @@ public java.util.List
              *
          -   * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED];
          +   * 
          +   * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED];
          +   * 
              */
             @java.lang.Override
             public int getCategoryHierarchiesCount() {
               return categoryHierarchies_.size();
             }
             /**
          +   *
          +   *
              * 
              * Required. Catalog item categories. This field is repeated for supporting
              * one catalog item belonging to several parallel category hierarchies.
          @@ -1112,13 +1275,18 @@ public int getCategoryHierarchiesCount() {
              *      ]
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getCategoryHierarchies(int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + getCategoryHierarchies(int index) { return categoryHierarchies_.get(index); } /** + * + * *
              * Required. Catalog item categories. This field is repeated for supporting
              * one catalog item belonging to several parallel category hierarchies.
          @@ -1132,23 +1300,28 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc
              *      ]
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder getCategoryHierarchiesOrBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder + getCategoryHierarchiesOrBuilder(int index) { return categoryHierarchies_.get(index); } public static final int TITLE_FIELD_NUMBER = 3; private volatile java.lang.Object title_; /** + * + * *
              * Required. Catalog item title. UTF-8 encoded string with a length limit of 1
              * KiB.
              * 
          * * string title = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The title. */ @java.lang.Override @@ -1157,30 +1330,30 @@ public java.lang.String getTitle() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } } /** + * + * *
              * Required. Catalog item title. UTF-8 encoded string with a length limit of 1
              * KiB.
              * 
          * * string title = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for title. */ @java.lang.Override - public com.google.protobuf.ByteString - getTitleBytes() { + public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { @@ -1191,12 +1364,15 @@ public java.lang.String getTitle() { public static final int DESCRIPTION_FIELD_NUMBER = 4; private volatile java.lang.Object description_; /** + * + * *
              * Optional. Catalog item description. UTF-8 encoded string with a length
              * limit of 5 KiB.
              * 
          * * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -1205,30 +1381,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
              * Optional. Catalog item description. UTF-8 encoded string with a length
              * limit of 5 KiB.
              * 
          * * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1239,6 +1415,8 @@ public java.lang.String getDescription() { public static final int ITEM_ATTRIBUTES_FIELD_NUMBER = 5; private com.google.cloud.recommendationengine.v1beta1.FeatureMap itemAttributes_; /** + * + * *
              * Optional. Highly encouraged. Extra catalog item attributes to be
              * included in the recommendation model. For example, for retail products,
          @@ -1247,7 +1425,10 @@ public java.lang.String getDescription() {
              * providing the item attributes here.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the itemAttributes field is set. */ @java.lang.Override @@ -1255,6 +1436,8 @@ public boolean hasItemAttributes() { return itemAttributes_ != null; } /** + * + * *
              * Optional. Highly encouraged. Extra catalog item attributes to be
              * included in the recommendation model. For example, for retail products,
          @@ -1263,14 +1446,21 @@ public boolean hasItemAttributes() {
              * providing the item attributes here.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The itemAttributes. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.FeatureMap getItemAttributes() { - return itemAttributes_ == null ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() : itemAttributes_; + return itemAttributes_ == null + ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() + : itemAttributes_; } /** + * + * *
              * Optional. Highly encouraged. Extra catalog item attributes to be
              * included in the recommendation model. For example, for retail products,
          @@ -1279,16 +1469,21 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap getItemAttribute
              * providing the item attributes here.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getItemAttributesOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder + getItemAttributesOrBuilder() { return getItemAttributes(); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; private volatile java.lang.Object languageCode_; /** + * + * *
              * Optional. Language of the title/description/item_attributes. Use language
              * tags defined by BCP 47. https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Our
          @@ -1298,6 +1493,7 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getItem
              * 
          * * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The languageCode. */ @java.lang.Override @@ -1306,14 +1502,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
              * Optional. Language of the title/description/item_attributes. Use language
              * tags defined by BCP 47. https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Our
          @@ -1323,16 +1520,15 @@ public java.lang.String getLanguageCode() {
              * 
          * * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1343,6 +1539,8 @@ public java.lang.String getLanguageCode() { public static final int TAGS_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList tags_; /** + * + * *
              * Optional. Filtering tags associated with the catalog item. Each tag should
              * be a UTF-8 encoded string with a length limit of 1 KiB.
          @@ -1351,13 +1549,15 @@ public java.lang.String getLanguageCode() {
              * 
          * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** + * + * *
              * Optional. Filtering tags associated with the catalog item. Each tag should
              * be a UTF-8 encoded string with a length limit of 1 KiB.
          @@ -1366,12 +1566,15 @@ public java.lang.String getLanguageCode() {
              * 
          * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
              * Optional. Filtering tags associated with the catalog item. Each tag should
              * be a UTF-8 encoded string with a length limit of 1 KiB.
          @@ -1380,6 +1583,7 @@ public int getTagsCount() {
              * 
          * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -1387,6 +1591,8 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
              * Optional. Filtering tags associated with the catalog item. Each tag should
              * be a UTF-8 encoded string with a length limit of 1 KiB.
          @@ -1395,17 +1601,19 @@ public java.lang.String getTags(int index) {
              * 
          * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int ITEM_GROUP_ID_FIELD_NUMBER = 9; private volatile java.lang.Object itemGroupId_; /** + * + * *
              * Optional. Variant group identifier for prediction results. UTF-8 encoded
              * string with a length limit of 128 bytes.
          @@ -1414,6 +1622,7 @@ public java.lang.String getTags(int index) {
              * 
          * * string item_group_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The itemGroupId. */ @java.lang.Override @@ -1422,14 +1631,15 @@ public java.lang.String getItemGroupId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); itemGroupId_ = s; return s; } } /** + * + * *
              * Optional. Variant group identifier for prediction results. UTF-8 encoded
              * string with a length limit of 128 bytes.
          @@ -1438,16 +1648,15 @@ public java.lang.String getItemGroupId() {
              * 
          * * string item_group_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for itemGroupId. */ @java.lang.Override - public com.google.protobuf.ByteString - getItemGroupIdBytes() { + public com.google.protobuf.ByteString getItemGroupIdBytes() { java.lang.Object ref = itemGroupId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); itemGroupId_ = b; return b; } else { @@ -1457,11 +1666,16 @@ public java.lang.String getItemGroupId() { public static final int PRODUCT_METADATA_FIELD_NUMBER = 10; /** + * + * *
              * Optional. Metadata specific to retail products.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the productMetadata field is set. */ @java.lang.Override @@ -1469,36 +1683,47 @@ public boolean hasProductMetadata() { return recommendationTypeCase_ == 10; } /** + * + * *
              * Optional. Metadata specific to retail products.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The productMetadata. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem getProductMetadata() { if (recommendationTypeCase_ == 10) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_; } return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance(); } /** + * + * *
              * Optional. Metadata specific to retail products.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder getProductMetadataOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder + getProductMetadataOrBuilder() { if (recommendationTypeCase_ == 10) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_; } return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1510,8 +1735,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -1537,7 +1761,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 9, itemGroupId_); } if (recommendationTypeCase_ == 10) { - output.writeMessage(10, (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_); + output.writeMessage( + 10, + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_); } unknownFields.writeTo(output); } @@ -1552,8 +1778,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } for (int i = 0; i < categoryHierarchies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, categoryHierarchies_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, categoryHierarchies_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, title_); @@ -1562,8 +1788,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } if (itemAttributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getItemAttributes()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getItemAttributes()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, languageCode_); @@ -1580,8 +1805,11 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, itemGroupId_); } if (recommendationTypeCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) + recommendationType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1591,37 +1819,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.CatalogItem)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.CatalogItem other = (com.google.cloud.recommendationengine.v1beta1.CatalogItem) obj; + com.google.cloud.recommendationengine.v1beta1.CatalogItem other = + (com.google.cloud.recommendationengine.v1beta1.CatalogItem) obj; - if (!getId() - .equals(other.getId())) return false; - if (!getCategoryHierarchiesList() - .equals(other.getCategoryHierarchiesList())) return false; - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getId().equals(other.getId())) return false; + if (!getCategoryHierarchiesList().equals(other.getCategoryHierarchiesList())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasItemAttributes() != other.hasItemAttributes()) return false; if (hasItemAttributes()) { - if (!getItemAttributes() - .equals(other.getItemAttributes())) return false; - } - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (!getTagsList() - .equals(other.getTagsList())) return false; - if (!getItemGroupId() - .equals(other.getItemGroupId())) return false; + if (!getItemAttributes().equals(other.getItemAttributes())) return false; + } + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getTagsList().equals(other.getTagsList())) return false; + if (!getItemGroupId().equals(other.getItemGroupId())) return false; if (!getRecommendationTypeCase().equals(other.getRecommendationTypeCase())) return false; switch (recommendationTypeCase_) { case 10: - if (!getProductMetadata() - .equals(other.getProductMetadata())) return false; + if (!getProductMetadata().equals(other.getProductMetadata())) return false; break; case 0: default: @@ -1673,117 +1893,127 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.CatalogItem parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.CatalogItem prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.CatalogItem prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * CatalogItem captures all metadata information of items to be recommended.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CatalogItem} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.CatalogItem) com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.class, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder.class); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.class, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder.class); } // Construct using com.google.cloud.recommendationengine.v1beta1.CatalogItem.newBuilder() @@ -1791,17 +2021,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCategoryHierarchiesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1835,9 +2065,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_CatalogItem_descriptor; } @java.lang.Override @@ -1856,7 +2086,8 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem build() { @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.CatalogItem buildPartial() { - com.google.cloud.recommendationengine.v1beta1.CatalogItem result = new com.google.cloud.recommendationengine.v1beta1.CatalogItem(this); + com.google.cloud.recommendationengine.v1beta1.CatalogItem result = + new com.google.cloud.recommendationengine.v1beta1.CatalogItem(this); int from_bitField0_ = bitField0_; result.id_ = id_; if (categoryHierarchiesBuilder_ == null) { @@ -1898,38 +2129,39 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.CatalogItem) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.CatalogItem)other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.CatalogItem) other); } else { super.mergeFrom(other); return this; @@ -1937,7 +2169,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.CatalogItem other) { - if (other == com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance()) return this; + if (other == com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance()) + return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); @@ -1960,9 +2193,10 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.CatalogIt categoryHierarchiesBuilder_ = null; categoryHierarchies_ = other.categoryHierarchies_; bitField0_ = (bitField0_ & ~0x00000001); - categoryHierarchiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCategoryHierarchiesFieldBuilder() : null; + categoryHierarchiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCategoryHierarchiesFieldBuilder() + : null; } else { categoryHierarchiesBuilder_.addAllMessages(other.categoryHierarchies_); } @@ -1997,14 +2231,16 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.CatalogIt itemGroupId_ = other.itemGroupId_; onChanged(); } - switch (other.getRecommendationTypeCase()) { - case PRODUCT_METADATA: { - mergeProductMetadata(other.getProductMetadata()); - break; - } - case RECOMMENDATIONTYPE_NOT_SET: { - break; - } + switch (other.getRecommendationTypeCase()) { + case PRODUCT_METADATA: + { + mergeProductMetadata(other.getProductMetadata()); + break; + } + case RECOMMENDATIONTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2025,7 +2261,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.CatalogItem) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.CatalogItem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2034,12 +2271,12 @@ public Builder mergeFrom( } return this; } + private int recommendationTypeCase_ = 0; private java.lang.Object recommendationType_; - public RecommendationTypeCase - getRecommendationTypeCase() { - return RecommendationTypeCase.forNumber( - recommendationTypeCase_); + + public RecommendationTypeCase getRecommendationTypeCase() { + return RecommendationTypeCase.forNumber(recommendationTypeCase_); } public Builder clearRecommendationType() { @@ -2053,6 +2290,8 @@ public Builder clearRecommendationType() { private java.lang.Object id_ = ""; /** + * + * *
                * Required. Catalog item identifier. UTF-8 encoded string with a length limit
                * of 128 bytes.
          @@ -2062,13 +2301,13 @@ public Builder clearRecommendationType() {
                * 
          * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -2077,6 +2316,8 @@ public java.lang.String getId() { } } /** + * + * *
                * Required. Catalog item identifier. UTF-8 encoded string with a length limit
                * of 128 bytes.
          @@ -2086,15 +2327,14 @@ public java.lang.String getId() {
                * 
          * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -2102,6 +2342,8 @@ public java.lang.String getId() { } } /** + * + * *
                * Required. Catalog item identifier. UTF-8 encoded string with a length limit
                * of 128 bytes.
          @@ -2111,20 +2353,22 @@ public java.lang.String getId() {
                * 
          * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** + * + * *
                * Required. Catalog item identifier. UTF-8 encoded string with a length limit
                * of 128 bytes.
          @@ -2134,15 +2378,18 @@ public Builder setId(
                * 
          * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
                * Required. Catalog item identifier. UTF-8 encoded string with a length limit
                * of 128 bytes.
          @@ -2152,34 +2399,44 @@ public Builder clearId() {
                * 
          * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; } - private java.util.List categoryHierarchies_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy> + categoryHierarchies_ = java.util.Collections.emptyList(); + private void ensureCategoryHierarchiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - categoryHierarchies_ = new java.util.ArrayList(categoryHierarchies_); + categoryHierarchies_ = + new java.util.ArrayList< + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy>( + categoryHierarchies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> categoryHierarchiesBuilder_; + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> + categoryHierarchiesBuilder_; /** + * + * *
                * Required. Catalog item categories. This field is repeated for supporting
                * one catalog item belonging to several parallel category hierarchies.
          @@ -2193,9 +2450,13 @@ private void ensureCategoryHierarchiesIsMutable() {
                *      ]
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getCategoryHierarchiesList() { + public java.util.List< + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy> + getCategoryHierarchiesList() { if (categoryHierarchiesBuilder_ == null) { return java.util.Collections.unmodifiableList(categoryHierarchies_); } else { @@ -2203,6 +2464,8 @@ public java.util.List * Required. Catalog item categories. This field is repeated for supporting * one catalog item belonging to several parallel category hierarchies. @@ -2216,7 +2479,9 @@ public java.util.List * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getCategoryHierarchiesCount() { if (categoryHierarchiesBuilder_ == null) { @@ -2226,6 +2491,8 @@ public int getCategoryHierarchiesCount() { } } /** + * + * *
                * Required. Catalog item categories. This field is repeated for supporting
                * one catalog item belonging to several parallel category hierarchies.
          @@ -2239,9 +2506,12 @@ public int getCategoryHierarchiesCount() {
                *      ]
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getCategoryHierarchies(int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + getCategoryHierarchies(int index) { if (categoryHierarchiesBuilder_ == null) { return categoryHierarchies_.get(index); } else { @@ -2249,6 +2519,8 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc } } /** + * + * *
                * Required. Catalog item categories. This field is repeated for supporting
                * one catalog item belonging to several parallel category hierarchies.
          @@ -2262,10 +2534,13 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc
                *      ]
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCategoryHierarchies( - int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { + int index, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { if (categoryHierarchiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2279,6 +2554,8 @@ public Builder setCategoryHierarchies( return this; } /** + * + * *
                * Required. Catalog item categories. This field is repeated for supporting
                * one catalog item belonging to several parallel category hierarchies.
          @@ -2292,10 +2569,14 @@ public Builder setCategoryHierarchies(
                *      ]
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCategoryHierarchies( - int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder builderForValue) { + int index, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder + builderForValue) { if (categoryHierarchiesBuilder_ == null) { ensureCategoryHierarchiesIsMutable(); categoryHierarchies_.set(index, builderForValue.build()); @@ -2306,6 +2587,8 @@ public Builder setCategoryHierarchies( return this; } /** + * + * *
                * Required. Catalog item categories. This field is repeated for supporting
                * one catalog item belonging to several parallel category hierarchies.
          @@ -2319,9 +2602,12 @@ public Builder setCategoryHierarchies(
                *      ]
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addCategoryHierarchies(com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { + public Builder addCategoryHierarchies( + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { if (categoryHierarchiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2335,6 +2621,8 @@ public Builder addCategoryHierarchies(com.google.cloud.recommendationengine.v1be return this; } /** + * + * *
                * Required. Catalog item categories. This field is repeated for supporting
                * one catalog item belonging to several parallel category hierarchies.
          @@ -2348,10 +2636,13 @@ public Builder addCategoryHierarchies(com.google.cloud.recommendationengine.v1be
                *      ]
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addCategoryHierarchies( - int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { + int index, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { if (categoryHierarchiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2365,6 +2656,8 @@ public Builder addCategoryHierarchies( return this; } /** + * + * *
                * Required. Catalog item categories. This field is repeated for supporting
                * one catalog item belonging to several parallel category hierarchies.
          @@ -2378,10 +2671,13 @@ public Builder addCategoryHierarchies(
                *      ]
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addCategoryHierarchies( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder builderForValue) { + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder + builderForValue) { if (categoryHierarchiesBuilder_ == null) { ensureCategoryHierarchiesIsMutable(); categoryHierarchies_.add(builderForValue.build()); @@ -2392,6 +2688,8 @@ public Builder addCategoryHierarchies( return this; } /** + * + * *
                * Required. Catalog item categories. This field is repeated for supporting
                * one catalog item belonging to several parallel category hierarchies.
          @@ -2405,10 +2703,14 @@ public Builder addCategoryHierarchies(
                *      ]
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addCategoryHierarchies( - int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder builderForValue) { + int index, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder + builderForValue) { if (categoryHierarchiesBuilder_ == null) { ensureCategoryHierarchiesIsMutable(); categoryHierarchies_.add(index, builderForValue.build()); @@ -2419,6 +2721,8 @@ public Builder addCategoryHierarchies( return this; } /** + * + * *
                * Required. Catalog item categories. This field is repeated for supporting
                * one catalog item belonging to several parallel category hierarchies.
          @@ -2432,14 +2736,18 @@ public Builder addCategoryHierarchies(
                *      ]
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllCategoryHierarchies( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy> + values) { if (categoryHierarchiesBuilder_ == null) { ensureCategoryHierarchiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, categoryHierarchies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, categoryHierarchies_); onChanged(); } else { categoryHierarchiesBuilder_.addAllMessages(values); @@ -2447,6 +2755,8 @@ public Builder addAllCategoryHierarchies( return this; } /** + * + * *
                * Required. Catalog item categories. This field is repeated for supporting
                * one catalog item belonging to several parallel category hierarchies.
          @@ -2460,7 +2770,9 @@ public Builder addAllCategoryHierarchies(
                *      ]
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCategoryHierarchies() { if (categoryHierarchiesBuilder_ == null) { @@ -2473,6 +2785,8 @@ public Builder clearCategoryHierarchies() { return this; } /** + * + * *
                * Required. Catalog item categories. This field is repeated for supporting
                * one catalog item belonging to several parallel category hierarchies.
          @@ -2486,7 +2800,9 @@ public Builder clearCategoryHierarchies() {
                *      ]
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeCategoryHierarchies(int index) { if (categoryHierarchiesBuilder_ == null) { @@ -2499,6 +2815,8 @@ public Builder removeCategoryHierarchies(int index) { return this; } /** + * + * *
                * Required. Catalog item categories. This field is repeated for supporting
                * one catalog item belonging to several parallel category hierarchies.
          @@ -2512,13 +2830,17 @@ public Builder removeCategoryHierarchies(int index) {
                *      ]
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder getCategoryHierarchiesBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder + getCategoryHierarchiesBuilder(int index) { return getCategoryHierarchiesFieldBuilder().getBuilder(index); } /** + * + * *
                * Required. Catalog item categories. This field is repeated for supporting
                * one catalog item belonging to several parallel category hierarchies.
          @@ -2532,16 +2854,21 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc
                *      ]
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder getCategoryHierarchiesOrBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder + getCategoryHierarchiesOrBuilder(int index) { if (categoryHierarchiesBuilder_ == null) { - return categoryHierarchies_.get(index); } else { + return categoryHierarchies_.get(index); + } else { return categoryHierarchiesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * Required. Catalog item categories. This field is repeated for supporting
                * one catalog item belonging to several parallel category hierarchies.
          @@ -2555,10 +2882,15 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc
                *      ]
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getCategoryHierarchiesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.recommendationengine.v1beta1.CatalogItem + .CategoryHierarchyOrBuilder> + getCategoryHierarchiesOrBuilderList() { if (categoryHierarchiesBuilder_ != null) { return categoryHierarchiesBuilder_.getMessageOrBuilderList(); } else { @@ -2566,6 +2898,8 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc } } /** + * + * *
                * Required. Catalog item categories. This field is repeated for supporting
                * one catalog item belonging to several parallel category hierarchies.
          @@ -2579,13 +2913,20 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc
                *      ]
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder addCategoryHierarchiesBuilder() { - return getCategoryHierarchiesFieldBuilder().addBuilder( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder + addCategoryHierarchiesBuilder() { + return getCategoryHierarchiesFieldBuilder() + .addBuilder( + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + .getDefaultInstance()); } /** + * + * *
                * Required. Catalog item categories. This field is repeated for supporting
                * one catalog item belonging to several parallel category hierarchies.
          @@ -2599,14 +2940,21 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc
                *      ]
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder addCategoryHierarchiesBuilder( - int index) { - return getCategoryHierarchiesFieldBuilder().addBuilder( - index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder + addCategoryHierarchiesBuilder(int index) { + return getCategoryHierarchiesFieldBuilder() + .addBuilder( + index, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + .getDefaultInstance()); } /** + * + * *
                * Required. Catalog item categories. This field is repeated for supporting
                * one catalog item belonging to several parallel category hierarchies.
          @@ -2620,18 +2968,28 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc
                *      ]
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getCategoryHierarchiesBuilderList() { + public java.util.List< + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder> + getCategoryHierarchiesBuilderList() { return getCategoryHierarchiesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> getCategoryHierarchiesFieldBuilder() { if (categoryHierarchiesBuilder_ == null) { - categoryHierarchiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder>( + categoryHierarchiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, + com.google.cloud.recommendationengine.v1beta1.CatalogItem + .CategoryHierarchyOrBuilder>( categoryHierarchies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2643,19 +3001,21 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc private java.lang.Object title_ = ""; /** + * + * *
                * Required. Catalog item title. UTF-8 encoded string with a length limit of 1
                * KiB.
                * 
          * * string title = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The title. */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; @@ -2664,21 +3024,22 @@ public java.lang.String getTitle() { } } /** + * + * *
                * Required. Catalog item title. UTF-8 encoded string with a length limit of 1
                * KiB.
                * 
          * * string title = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for title. */ - public com.google.protobuf.ByteString - getTitleBytes() { + public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { @@ -2686,57 +3047,64 @@ public java.lang.String getTitle() { } } /** + * + * *
                * Required. Catalog item title. UTF-8 encoded string with a length limit of 1
                * KiB.
                * 
          * * string title = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The title to set. * @return This builder for chaining. */ - public Builder setTitle( - java.lang.String value) { + public Builder setTitle(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + title_ = value; onChanged(); return this; } /** + * + * *
                * Required. Catalog item title. UTF-8 encoded string with a length limit of 1
                * KiB.
                * 
          * * string title = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTitle() { - + title_ = getDefaultInstance().getTitle(); onChanged(); return this; } /** + * + * *
                * Required. Catalog item title. UTF-8 encoded string with a length limit of 1
                * KiB.
                * 
          * * string title = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for title to set. * @return This builder for chaining. */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { + public Builder setTitleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; onChanged(); return this; @@ -2744,19 +3112,21 @@ public Builder setTitleBytes( private java.lang.Object description_ = ""; /** + * + * *
                * Optional. Catalog item description. UTF-8 encoded string with a length
                * limit of 5 KiB.
                * 
          * * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2765,21 +3135,22 @@ public java.lang.String getDescription() { } } /** + * + * *
                * Optional. Catalog item description. UTF-8 encoded string with a length
                * limit of 5 KiB.
                * 
          * * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -2787,57 +3158,64 @@ public java.lang.String getDescription() { } } /** + * + * *
                * Optional. Catalog item description. UTF-8 encoded string with a length
                * limit of 5 KiB.
                * 
          * * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Catalog item description. UTF-8 encoded string with a length
                * limit of 5 KiB.
                * 
          * * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
                * Optional. Catalog item description. UTF-8 encoded string with a length
                * limit of 5 KiB.
                * 
          * * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2845,8 +3223,13 @@ public Builder setDescriptionBytes( private com.google.cloud.recommendationengine.v1beta1.FeatureMap itemAttributes_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.FeatureMap, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> itemAttributesBuilder_; + com.google.cloud.recommendationengine.v1beta1.FeatureMap, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, + com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> + itemAttributesBuilder_; /** + * + * *
                * Optional. Highly encouraged. Extra catalog item attributes to be
                * included in the recommendation model. For example, for retail products,
          @@ -2855,13 +3238,18 @@ public Builder setDescriptionBytes(
                * providing the item attributes here.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the itemAttributes field is set. */ public boolean hasItemAttributes() { return itemAttributesBuilder_ != null || itemAttributes_ != null; } /** + * + * *
                * Optional. Highly encouraged. Extra catalog item attributes to be
                * included in the recommendation model. For example, for retail products,
          @@ -2870,17 +3258,24 @@ public boolean hasItemAttributes() {
                * providing the item attributes here.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The itemAttributes. */ public com.google.cloud.recommendationengine.v1beta1.FeatureMap getItemAttributes() { if (itemAttributesBuilder_ == null) { - return itemAttributes_ == null ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() : itemAttributes_; + return itemAttributes_ == null + ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() + : itemAttributes_; } else { return itemAttributesBuilder_.getMessage(); } } /** + * + * *
                * Optional. Highly encouraged. Extra catalog item attributes to be
                * included in the recommendation model. For example, for retail products,
          @@ -2889,9 +3284,12 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap getItemAttribute
                * providing the item attributes here.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setItemAttributes(com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { + public Builder setItemAttributes( + com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { if (itemAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2905,6 +3303,8 @@ public Builder setItemAttributes(com.google.cloud.recommendationengine.v1beta1.F return this; } /** + * + * *
                * Optional. Highly encouraged. Extra catalog item attributes to be
                * included in the recommendation model. For example, for retail products,
          @@ -2913,7 +3313,9 @@ public Builder setItemAttributes(com.google.cloud.recommendationengine.v1beta1.F
                * providing the item attributes here.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setItemAttributes( com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder builderForValue) { @@ -2927,6 +3329,8 @@ public Builder setItemAttributes( return this; } /** + * + * *
                * Optional. Highly encouraged. Extra catalog item attributes to be
                * included in the recommendation model. For example, for retail products,
          @@ -2935,13 +3339,18 @@ public Builder setItemAttributes(
                * providing the item attributes here.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeItemAttributes(com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { + public Builder mergeItemAttributes( + com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { if (itemAttributesBuilder_ == null) { if (itemAttributes_ != null) { itemAttributes_ = - com.google.cloud.recommendationengine.v1beta1.FeatureMap.newBuilder(itemAttributes_).mergeFrom(value).buildPartial(); + com.google.cloud.recommendationengine.v1beta1.FeatureMap.newBuilder(itemAttributes_) + .mergeFrom(value) + .buildPartial(); } else { itemAttributes_ = value; } @@ -2953,6 +3362,8 @@ public Builder mergeItemAttributes(com.google.cloud.recommendationengine.v1beta1 return this; } /** + * + * *
                * Optional. Highly encouraged. Extra catalog item attributes to be
                * included in the recommendation model. For example, for retail products,
          @@ -2961,7 +3372,9 @@ public Builder mergeItemAttributes(com.google.cloud.recommendationengine.v1beta1
                * providing the item attributes here.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearItemAttributes() { if (itemAttributesBuilder_ == null) { @@ -2975,6 +3388,8 @@ public Builder clearItemAttributes() { return this; } /** + * + * *
                * Optional. Highly encouraged. Extra catalog item attributes to be
                * included in the recommendation model. For example, for retail products,
          @@ -2983,14 +3398,19 @@ public Builder clearItemAttributes() {
                * providing the item attributes here.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder getItemAttributesBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder + getItemAttributesBuilder() { + onChanged(); return getItemAttributesFieldBuilder().getBuilder(); } /** + * + * *
                * Optional. Highly encouraged. Extra catalog item attributes to be
                * included in the recommendation model. For example, for retail products,
          @@ -2999,17 +3419,23 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder getItemA
                * providing the item attributes here.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getItemAttributesOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder + getItemAttributesOrBuilder() { if (itemAttributesBuilder_ != null) { return itemAttributesBuilder_.getMessageOrBuilder(); } else { - return itemAttributes_ == null ? - com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() : itemAttributes_; + return itemAttributes_ == null + ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() + : itemAttributes_; } } /** + * + * *
                * Optional. Highly encouraged. Extra catalog item attributes to be
                * included in the recommendation model. For example, for retail products,
          @@ -3018,17 +3444,22 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getItem
                * providing the item attributes here.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.FeatureMap, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> + com.google.cloud.recommendationengine.v1beta1.FeatureMap, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, + com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> getItemAttributesFieldBuilder() { if (itemAttributesBuilder_ == null) { - itemAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.FeatureMap, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder>( - getItemAttributes(), - getParentForChildren(), - isClean()); + itemAttributesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.FeatureMap, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, + com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder>( + getItemAttributes(), getParentForChildren(), isClean()); itemAttributes_ = null; } return itemAttributesBuilder_; @@ -3036,6 +3467,8 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getItem private java.lang.Object languageCode_ = ""; /** + * + * *
                * Optional. Language of the title/description/item_attributes. Use language
                * tags defined by BCP 47. https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Our
          @@ -3045,13 +3478,13 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getItem
                * 
          * * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -3060,6 +3493,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
                * Optional. Language of the title/description/item_attributes. Use language
                * tags defined by BCP 47. https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Our
          @@ -3069,15 +3504,14 @@ public java.lang.String getLanguageCode() {
                * 
          * * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -3085,6 +3519,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
                * Optional. Language of the title/description/item_attributes. Use language
                * tags defined by BCP 47. https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Our
          @@ -3094,20 +3530,22 @@ public java.lang.String getLanguageCode() {
                * 
          * * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Language of the title/description/item_attributes. Use language
                * tags defined by BCP 47. https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Our
          @@ -3117,15 +3555,18 @@ public Builder setLanguageCode(
                * 
          * * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
                * Optional. Language of the title/description/item_attributes. Use language
                * tags defined by BCP 47. https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Our
          @@ -3135,29 +3576,33 @@ public Builder clearLanguageCode() {
                * 
          * * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList tags_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
                * Optional. Filtering tags associated with the catalog item. Each tag should
                * be a UTF-8 encoded string with a length limit of 1 KiB.
          @@ -3166,13 +3611,15 @@ private void ensureTagsIsMutable() {
                * 
          * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { return tags_.getUnmodifiableView(); } /** + * + * *
                * Optional. Filtering tags associated with the catalog item. Each tag should
                * be a UTF-8 encoded string with a length limit of 1 KiB.
          @@ -3181,12 +3628,15 @@ private void ensureTagsIsMutable() {
                * 
          * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
                * Optional. Filtering tags associated with the catalog item. Each tag should
                * be a UTF-8 encoded string with a length limit of 1 KiB.
          @@ -3195,6 +3645,7 @@ public int getTagsCount() {
                * 
          * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -3202,6 +3653,8 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
                * Optional. Filtering tags associated with the catalog item. Each tag should
                * be a UTF-8 encoded string with a length limit of 1 KiB.
          @@ -3210,14 +3663,16 @@ public java.lang.String getTags(int index) {
                * 
          * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** + * + * *
                * Optional. Filtering tags associated with the catalog item. Each tag should
                * be a UTF-8 encoded string with a length limit of 1 KiB.
          @@ -3226,21 +3681,23 @@ public java.lang.String getTags(int index) {
                * 
          * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ - public Builder setTags( - int index, java.lang.String value) { + public Builder setTags(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); + throw new NullPointerException(); + } + ensureTagsIsMutable(); tags_.set(index, value); onChanged(); return this; } /** + * + * *
                * Optional. Filtering tags associated with the catalog item. Each tag should
                * be a UTF-8 encoded string with a length limit of 1 KiB.
          @@ -3249,20 +3706,22 @@ public Builder setTags(
                * 
          * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The tags to add. * @return This builder for chaining. */ - public Builder addTags( - java.lang.String value) { + public Builder addTags(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); + throw new NullPointerException(); + } + ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } /** + * + * *
                * Optional. Filtering tags associated with the catalog item. Each tag should
                * be a UTF-8 encoded string with a length limit of 1 KiB.
          @@ -3271,18 +3730,19 @@ public Builder addTags(
                * 
          * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The tags to add. * @return This builder for chaining. */ - public Builder addAllTags( - java.lang.Iterable values) { + public Builder addAllTags(java.lang.Iterable values) { ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); onChanged(); return this; } /** + * + * *
                * Optional. Filtering tags associated with the catalog item. Each tag should
                * be a UTF-8 encoded string with a length limit of 1 KiB.
          @@ -3291,6 +3751,7 @@ public Builder addAllTags(
                * 
          * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTags() { @@ -3300,6 +3761,8 @@ public Builder clearTags() { return this; } /** + * + * *
                * Optional. Filtering tags associated with the catalog item. Each tag should
                * be a UTF-8 encoded string with a length limit of 1 KiB.
          @@ -3308,15 +3771,15 @@ public Builder clearTags() {
                * 
          * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the tags to add. * @return This builder for chaining. */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { + public Builder addTagsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); onChanged(); @@ -3325,6 +3788,8 @@ public Builder addTagsBytes( private java.lang.Object itemGroupId_ = ""; /** + * + * *
                * Optional. Variant group identifier for prediction results. UTF-8 encoded
                * string with a length limit of 128 bytes.
          @@ -3333,13 +3798,13 @@ public Builder addTagsBytes(
                * 
          * * string item_group_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The itemGroupId. */ public java.lang.String getItemGroupId() { java.lang.Object ref = itemGroupId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); itemGroupId_ = s; return s; @@ -3348,6 +3813,8 @@ public java.lang.String getItemGroupId() { } } /** + * + * *
                * Optional. Variant group identifier for prediction results. UTF-8 encoded
                * string with a length limit of 128 bytes.
          @@ -3356,15 +3823,14 @@ public java.lang.String getItemGroupId() {
                * 
          * * string item_group_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for itemGroupId. */ - public com.google.protobuf.ByteString - getItemGroupIdBytes() { + public com.google.protobuf.ByteString getItemGroupIdBytes() { java.lang.Object ref = itemGroupId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); itemGroupId_ = b; return b; } else { @@ -3372,6 +3838,8 @@ public java.lang.String getItemGroupId() { } } /** + * + * *
                * Optional. Variant group identifier for prediction results. UTF-8 encoded
                * string with a length limit of 128 bytes.
          @@ -3380,20 +3848,22 @@ public java.lang.String getItemGroupId() {
                * 
          * * string item_group_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The itemGroupId to set. * @return This builder for chaining. */ - public Builder setItemGroupId( - java.lang.String value) { + public Builder setItemGroupId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + itemGroupId_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Variant group identifier for prediction results. UTF-8 encoded
                * string with a length limit of 128 bytes.
          @@ -3402,15 +3872,18 @@ public Builder setItemGroupId(
                * 
          * * string item_group_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearItemGroupId() { - + itemGroupId_ = getDefaultInstance().getItemGroupId(); onChanged(); return this; } /** + * + * *
                * Optional. Variant group identifier for prediction results. UTF-8 encoded
                * string with a length limit of 128 bytes.
          @@ -3419,29 +3892,37 @@ public Builder clearItemGroupId() {
                * 
          * * string item_group_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for itemGroupId to set. * @return This builder for chaining. */ - public Builder setItemGroupIdBytes( - com.google.protobuf.ByteString value) { + public Builder setItemGroupIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + itemGroupId_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder> productMetadataBuilder_; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder> + productMetadataBuilder_; /** + * + * *
                * Optional. Metadata specific to retail products.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the productMetadata field is set. */ @java.lang.Override @@ -3449,35 +3930,48 @@ public boolean hasProductMetadata() { return recommendationTypeCase_ == 10; } /** + * + * *
                * Optional. Metadata specific to retail products.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The productMetadata. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem getProductMetadata() { if (productMetadataBuilder_ == null) { if (recommendationTypeCase_ == 10) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) + recommendationType_; } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem + .getDefaultInstance(); } else { if (recommendationTypeCase_ == 10) { return productMetadataBuilder_.getMessage(); } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem + .getDefaultInstance(); } } /** + * + * *
                * Optional. Metadata specific to retail products.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setProductMetadata(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem value) { + public Builder setProductMetadata( + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem value) { if (productMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3491,11 +3985,15 @@ public Builder setProductMetadata(com.google.cloud.recommendationengine.v1beta1. return this; } /** + * + * *
                * Optional. Metadata specific to retail products.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setProductMetadata( com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder builderForValue) { @@ -3509,18 +4007,29 @@ public Builder setProductMetadata( return this; } /** + * + * *
                * Optional. Metadata specific to retail products.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeProductMetadata(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem value) { + public Builder mergeProductMetadata( + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem value) { if (productMetadataBuilder_ == null) { - if (recommendationTypeCase_ == 10 && - recommendationType_ != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance()) { - recommendationType_ = com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.newBuilder((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_) - .mergeFrom(value).buildPartial(); + if (recommendationTypeCase_ == 10 + && recommendationType_ + != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem + .getDefaultInstance()) { + recommendationType_ = + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.newBuilder( + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) + recommendationType_) + .mergeFrom(value) + .buildPartial(); } else { recommendationType_ = value; } @@ -3536,11 +4045,15 @@ public Builder mergeProductMetadata(com.google.cloud.recommendationengine.v1beta return this; } /** + * + * *
                * Optional. Metadata specific to retail products.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearProductMetadata() { if (productMetadataBuilder_ == null) { @@ -3559,61 +4072,85 @@ public Builder clearProductMetadata() { return this; } /** + * + * *
                * Optional. Metadata specific to retail products.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder getProductMetadataBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder + getProductMetadataBuilder() { return getProductMetadataFieldBuilder().getBuilder(); } /** + * + * *
                * Optional. Metadata specific to retail products.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder getProductMetadataOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder + getProductMetadataOrBuilder() { if ((recommendationTypeCase_ == 10) && (productMetadataBuilder_ != null)) { return productMetadataBuilder_.getMessageOrBuilder(); } else { if (recommendationTypeCase_ == 10) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) + recommendationType_; } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem + .getDefaultInstance(); } } /** + * + * *
                * Optional. Metadata specific to retail products.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder> + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder> getProductMetadataFieldBuilder() { if (productMetadataBuilder_ == null) { if (!(recommendationTypeCase_ == 10)) { - recommendationType_ = com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance(); + recommendationType_ = + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance(); } - productMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder>( - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) recommendationType_, + productMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder>( + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) + recommendationType_, getParentForChildren(), isClean()); recommendationType_ = null; } recommendationTypeCase_ = 10; - onChanged();; + onChanged(); + ; return productMetadataBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3623,12 +4160,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.CatalogItem) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.CatalogItem) private static final com.google.cloud.recommendationengine.v1beta1.CatalogItem DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.CatalogItem(); } @@ -3637,16 +4174,16 @@ public static com.google.cloud.recommendationengine.v1beta1.CatalogItem getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CatalogItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CatalogItem(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CatalogItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CatalogItem(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3661,6 +4198,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.recommendationengine.v1beta1.CatalogItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemOrBuilder.java similarity index 76% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemOrBuilder.java index 25d99c63..b644ff8d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog.proto package com.google.cloud.recommendationengine.v1beta1; -public interface CatalogItemOrBuilder extends +public interface CatalogItemOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.CatalogItem) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required. Catalog item identifier. UTF-8 encoded string with a length limit
              * of 128 bytes.
          @@ -17,10 +35,13 @@ public interface CatalogItemOrBuilder extends
              * 
          * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The id. */ java.lang.String getId(); /** + * + * *
              * Required. Catalog item identifier. UTF-8 encoded string with a length limit
              * of 128 bytes.
          @@ -30,12 +51,14 @@ public interface CatalogItemOrBuilder extends
              * 
          * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
              * Required. Catalog item categories. This field is repeated for supporting
              * one catalog item belonging to several parallel category hierarchies.
          @@ -49,11 +72,15 @@ public interface CatalogItemOrBuilder extends
              *      ]
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getCategoryHierarchiesList(); /** + * + * *
              * Required. Catalog item categories. This field is repeated for supporting
              * one catalog item belonging to several parallel category hierarchies.
          @@ -67,10 +94,15 @@ public interface CatalogItemOrBuilder extends
              *      ]
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getCategoryHierarchies(int index); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + getCategoryHierarchies(int index); /** + * + * *
              * Required. Catalog item categories. This field is repeated for supporting
              * one catalog item belonging to several parallel category hierarchies.
          @@ -84,10 +116,14 @@ public interface CatalogItemOrBuilder extends
              *      ]
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ int getCategoryHierarchiesCount(); /** + * + * *
              * Required. Catalog item categories. This field is repeated for supporting
              * one catalog item belonging to several parallel category hierarchies.
          @@ -101,11 +137,17 @@ public interface CatalogItemOrBuilder extends
              *      ]
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> getCategoryHierarchiesOrBuilderList(); /** + * + * *
              * Required. Catalog item categories. This field is repeated for supporting
              * one catalog item belonging to several parallel category hierarchies.
          @@ -119,56 +161,70 @@ public interface CatalogItemOrBuilder extends
              *      ]
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy category_hierarchies = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder getCategoryHierarchiesOrBuilder( - int index); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder + getCategoryHierarchiesOrBuilder(int index); /** + * + * *
              * Required. Catalog item title. UTF-8 encoded string with a length limit of 1
              * KiB.
              * 
          * * string title = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The title. */ java.lang.String getTitle(); /** + * + * *
              * Required. Catalog item title. UTF-8 encoded string with a length limit of 1
              * KiB.
              * 
          * * string title = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for title. */ - com.google.protobuf.ByteString - getTitleBytes(); + com.google.protobuf.ByteString getTitleBytes(); /** + * + * *
              * Optional. Catalog item description. UTF-8 encoded string with a length
              * limit of 5 KiB.
              * 
          * * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
              * Optional. Catalog item description. UTF-8 encoded string with a length
              * limit of 5 KiB.
              * 
          * * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
              * Optional. Highly encouraged. Extra catalog item attributes to be
              * included in the recommendation model. For example, for retail products,
          @@ -177,11 +233,16 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBui
              * providing the item attributes here.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the itemAttributes field is set. */ boolean hasItemAttributes(); /** + * + * *
              * Optional. Highly encouraged. Extra catalog item attributes to be
              * included in the recommendation model. For example, for retail products,
          @@ -190,11 +251,16 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBui
              * providing the item attributes here.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The itemAttributes. */ com.google.cloud.recommendationengine.v1beta1.FeatureMap getItemAttributes(); /** + * + * *
              * Optional. Highly encouraged. Extra catalog item attributes to be
              * included in the recommendation model. For example, for retail products,
          @@ -203,11 +269,15 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBui
              * providing the item attributes here.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getItemAttributesOrBuilder(); /** + * + * *
              * Optional. Language of the title/description/item_attributes. Use language
              * tags defined by BCP 47. https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Our
          @@ -217,10 +287,13 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBui
              * 
          * * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
              * Optional. Language of the title/description/item_attributes. Use language
              * tags defined by BCP 47. https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Our
          @@ -230,12 +303,14 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBui
              * 
          * * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
              * Optional. Filtering tags associated with the catalog item. Each tag should
              * be a UTF-8 encoded string with a length limit of 1 KiB.
          @@ -244,11 +319,13 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBui
              * 
          * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the tags. */ - java.util.List - getTagsList(); + java.util.List getTagsList(); /** + * + * *
              * Optional. Filtering tags associated with the catalog item. Each tag should
              * be a UTF-8 encoded string with a length limit of 1 KiB.
          @@ -257,10 +334,13 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBui
              * 
          * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of tags. */ int getTagsCount(); /** + * + * *
              * Optional. Filtering tags associated with the catalog item. Each tag should
              * be a UTF-8 encoded string with a length limit of 1 KiB.
          @@ -269,11 +349,14 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBui
              * 
          * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** + * + * *
              * Optional. Filtering tags associated with the catalog item. Each tag should
              * be a UTF-8 encoded string with a length limit of 1 KiB.
          @@ -282,13 +365,15 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBui
              * 
          * * repeated string tags = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - com.google.protobuf.ByteString - getTagsBytes(int index); + com.google.protobuf.ByteString getTagsBytes(int index); /** + * + * *
              * Optional. Variant group identifier for prediction results. UTF-8 encoded
              * string with a length limit of 128 bytes.
          @@ -297,10 +382,13 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBui
              * 
          * * string item_group_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The itemGroupId. */ java.lang.String getItemGroupId(); /** + * + * *
              * Optional. Variant group identifier for prediction results. UTF-8 encoded
              * string with a length limit of 128 bytes.
          @@ -309,37 +397,53 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBui
              * 
          * * string item_group_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for itemGroupId. */ - com.google.protobuf.ByteString - getItemGroupIdBytes(); + com.google.protobuf.ByteString getItemGroupIdBytes(); /** + * + * *
              * Optional. Metadata specific to retail products.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the productMetadata field is set. */ boolean hasProductMetadata(); /** + * + * *
              * Optional. Metadata specific to retail products.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The productMetadata. */ com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem getProductMetadata(); /** + * + * *
              * Optional. Metadata specific to retail products.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem product_metadata = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder getProductMetadataOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder + getProductMetadataOrBuilder(); - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.RecommendationTypeCase getRecommendationTypeCase(); + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.RecommendationTypeCase + getRecommendationTypeCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemPathName.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemPathName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemPathName.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogItemPathName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogName.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogName.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogName.java diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceOuterClass.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceOuterClass.java new file mode 100644 index 00000000..05f4a485 --- /dev/null +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceOuterClass.java @@ -0,0 +1,238 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/catalog_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public final class CatalogServiceOuterClass { + private CatalogServiceOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n?google/cloud/recommendationengine/v1be" + + "ta1/catalog_service.proto\022)google.cloud." + + "recommendationengine.v1beta1\032\034google/api" + + "/annotations.proto\032\027google/api/client.pr" + + "oto\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\0327google/cloud/re" + + "commendationengine/v1beta1/catalog.proto" + + "\0326google/cloud/recommendationengine/v1be" + + "ta1/import.proto\032Ngoogle/cloud/recommend" + + "ationengine/v1beta1/recommendationengine" + + "_resources.proto\032#google/longrunning/ope" + + "rations.proto\032\033google/protobuf/empty.pro" + + "to\032 google/protobuf/field_mask.proto\"\262\001\n" + + "\030CreateCatalogItemRequest\022C\n\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\n+recommendationengine.googleap" + + "is.com/Catalog\022Q\n\014catalog_item\030\002 \001(\01326.g" + + "oogle.cloud.recommendationengine.v1beta1" + + ".CatalogItemB\003\340A\002\"b\n\025GetCatalogItemReque" + + "st\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3recommendation" + + "engine.googleapis.com/CatalogItemPath\"\244\001" + + "\n\027ListCatalogItemsRequest\022C\n\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\n+recommendationengine.googleap" + + "is.com/Catalog\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027" + + "\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB" + + "\003\340A\001\"\202\001\n\030ListCatalogItemsResponse\022M\n\rcat" + + "alog_items\030\001 \003(\01326.google.cloud.recommen" + + "dationengine.v1beta1.CatalogItem\022\027\n\017next" + + "_page_token\030\002 \001(\t\"\351\001\n\030UpdateCatalogItemR" + + "equest\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3recommenda" + + "tionengine.googleapis.com/CatalogItemPat" + + "h\022Q\n\014catalog_item\030\002 \001(\01326.google.cloud.r" + + "ecommendationengine.v1beta1.CatalogItemB" + + "\003\340A\002\022/\n\013update_mask\030\003 \001(\0132\032.google.proto" + + "buf.FieldMask\"e\n\030DeleteCatalogItemReques" + + "t\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3recommendatione" + + "ngine.googleapis.com/CatalogItemPath2\226\r\n" + + "\016CatalogService\022\376\001\n\021CreateCatalogItem\022C." + + "google.cloud.recommendationengine.v1beta" + + "1.CreateCatalogItemRequest\0326.google.clou" + + "d.recommendationengine.v1beta1.CatalogIt" + + "em\"l\202\323\344\223\002P\"@/v1beta1/{parent=projects/*/" + + "locations/*/catalogs/*}/catalogItems:\014ca" + + "talog_item\332A\023parent,catalog_item\022\334\001\n\016Get" + + "CatalogItem\022@.google.cloud.recommendatio" + + "nengine.v1beta1.GetCatalogItemRequest\0326." + + "google.cloud.recommendationengine.v1beta" + + "1.CatalogItem\"P\202\323\344\223\002C\022A/v1beta1/{name=pr" + + "ojects/*/locations/*/catalogs/*/catalogI" + + "tems/**}\332A\004name\022\365\001\n\020ListCatalogItems\022B.g" + + "oogle.cloud.recommendationengine.v1beta1" + + ".ListCatalogItemsRequest\032C.google.cloud." + + "recommendationengine.v1beta1.ListCatalog" + + "ItemsResponse\"X\202\323\344\223\002B\022@/v1beta1/{parent=" + + "projects/*/locations/*/catalogs/*}/catal" + + "ogItems\332A\rparent,filter\022\211\002\n\021UpdateCatalo" + + "gItem\022C.google.cloud.recommendationengin" + + "e.v1beta1.UpdateCatalogItemRequest\0326.goo" + + "gle.cloud.recommendationengine.v1beta1.C" + + "atalogItem\"w\202\323\344\223\002Q2A/v1beta1/{name=proje" + + "cts/*/locations/*/catalogs/*/catalogItem" + + "s/**}:\014catalog_item\332A\035name,catalog_item," + + "update_mask\022\302\001\n\021DeleteCatalogItem\022C.goog" + + "le.cloud.recommendationengine.v1beta1.De" + + "leteCatalogItemRequest\032\026.google.protobuf" + + ".Empty\"P\202\323\344\223\002C*A/v1beta1/{name=projects/" + + "*/locations/*/catalogs/*/catalogItems/**" + + "}\332A\004name\022\201\003\n\022ImportCatalogItems\022D.google" + + ".cloud.recommendationengine.v1beta1.Impo" + + "rtCatalogItemsRequest\032\035.google.longrunni" + + "ng.Operation\"\205\002\202\323\344\223\002L\"G/v1beta1/{parent=" + + "projects/*/locations/*/catalogs/*}/catal" + + "ogItems:import:\001*\312A\200\001\nDgoogle.cloud.reco" + + "mmendationengine.v1beta1.ImportCatalogIt" + + "emsResponse\0228google.cloud.recommendation" + + "engine.v1beta1.ImportMetadata\332A,parent,r" + + "equest_id,input_config,errors_config\032W\312A" + + "#recommendationengine.googleapis.com\322A.h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tformB\237\002\n-com.google.cloud.recommendatio" + + "nengine.v1beta1P\001Z]google.golang.org/gen" + + "proto/googleapis/cloud/recommendationeng" + + "ine/v1beta1;recommendationengine\242\002\005RECAI" + + "\252\002)Google.Cloud.RecommendationEngine.V1B" + + "eta1\312\002)Google\\Cloud\\RecommendationEngine" + + "\\V1beta1\352\002,Google::Cloud::Recommendation" + + "Engine::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.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.Import.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources + .getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor, + new java.lang.String[] { + "Parent", "CatalogItem", + }); + internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor, + new java.lang.String[] { + "CatalogItems", "NextPageToken", + }); + internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor, + new java.lang.String[] { + "Name", "CatalogItem", "UpdateMask", + }); + internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.Import.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequest.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequest.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequest.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequest.java index f40aa278..1f7bd625 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequest.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Request message for CollectUserEvent method.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CollectUserEventRequest} */ -public final class CollectUserEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CollectUserEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) CollectUserEventRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CollectUserEventRequest.newBuilder() to construct. private CollectUserEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CollectUserEventRequest() { parent_ = ""; userEvent_ = ""; @@ -27,16 +45,15 @@ private CollectUserEventRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CollectUserEventRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CollectUserEventRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private CollectUserEventRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - userEvent_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - case 32: { + userEvent_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - ets_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + uri_ = s; + break; + } + case 32: + { + ets_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,35 +112,42 @@ private CollectUserEventRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.class, com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.class, + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
              * Required. The parent eventStore name, such as
              * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -129,30 +156,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
              * Required. The parent eventStore name, such as
              * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -163,11 +192,14 @@ public java.lang.String getParent() { public static final int USER_EVENT_FIELD_NUMBER = 2; private volatile java.lang.Object userEvent_; /** + * + * *
              * Required. URL encoded UserEvent proto.
              * 
          * * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The userEvent. */ @java.lang.Override @@ -176,29 +208,29 @@ public java.lang.String getUserEvent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userEvent_ = s; return s; } } /** + * + * *
              * Required. URL encoded UserEvent proto.
              * 
          * * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for userEvent. */ @java.lang.Override - public com.google.protobuf.ByteString - getUserEventBytes() { + public com.google.protobuf.ByteString getUserEventBytes() { java.lang.Object ref = userEvent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userEvent_ = b; return b; } else { @@ -209,6 +241,8 @@ public java.lang.String getUserEvent() { public static final int URI_FIELD_NUMBER = 3; private volatile java.lang.Object uri_; /** + * + * *
              * Optional. The url including cgi-parameters but excluding the hash fragment.
              * The URL must be truncated to 1.5K bytes to conservatively be under the 2K
          @@ -217,6 +251,7 @@ public java.lang.String getUserEvent() {
              * 
          * * string uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The uri. */ @java.lang.Override @@ -225,14 +260,15 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
              * Optional. The url including cgi-parameters but excluding the hash fragment.
              * The URL must be truncated to 1.5K bytes to conservatively be under the 2K
          @@ -241,16 +277,15 @@ public java.lang.String getUri() {
              * 
          * * string uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -261,6 +296,8 @@ public java.lang.String getUri() { public static final int ETS_FIELD_NUMBER = 4; private long ets_; /** + * + * *
              * Optional. The event timestamp in milliseconds. This prevents browser
              * caching of otherwise identical get requests. The name is abbreviated to
          @@ -268,6 +305,7 @@ public java.lang.String getUri() {
              * 
          * * int64 ets = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ets. */ @java.lang.Override @@ -276,6 +314,7 @@ public long getEts() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -287,8 +326,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -320,8 +358,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); } if (ets_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, ets_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ets_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -331,21 +368,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest other = (com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getUserEvent() - .equals(other.getUserEvent())) return false; - if (!getUri() - .equals(other.getUri())) return false; - if (getEts() - != other.getEts()) return false; + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest other = + (com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getUserEvent().equals(other.getUserEvent())) return false; + if (!getUri().equals(other.getUri())) return false; + if (getEts() != other.getEts()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -364,142 +398,152 @@ public int hashCode() { hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); hash = (37 * hash) + ETS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEts()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEts()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Request message for CollectUserEvent method.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CollectUserEventRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.class, com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.class, + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.Builder.class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -515,14 +559,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest + .getDefaultInstance(); } @java.lang.Override @@ -536,7 +582,8 @@ public com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest bui @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest result = new com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest(this); + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest result = + new com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest(this); result.parent_ = parent_; result.userEvent_ = userEvent_; result.uri_ = uri_; @@ -549,46 +596,51 @@ public com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest bui public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest)other); + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest other) { - if (other == com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -623,7 +675,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -635,19 +689,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                * Required. The parent eventStore name, such as
                * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -656,21 +714,24 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required. The parent eventStore name, such as
                * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -678,57 +739,70 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required. The parent eventStore name, such as
                * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                * Required. The parent eventStore name, such as
                * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                * Required. The parent eventStore name, such as
                * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -736,18 +810,20 @@ public Builder setParentBytes( private java.lang.Object userEvent_ = ""; /** + * + * *
                * Required. URL encoded UserEvent proto.
                * 
          * * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The userEvent. */ public java.lang.String getUserEvent() { java.lang.Object ref = userEvent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userEvent_ = s; return s; @@ -756,20 +832,21 @@ public java.lang.String getUserEvent() { } } /** + * + * *
                * Required. URL encoded UserEvent proto.
                * 
          * * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for userEvent. */ - public com.google.protobuf.ByteString - getUserEventBytes() { + public com.google.protobuf.ByteString getUserEventBytes() { java.lang.Object ref = userEvent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userEvent_ = b; return b; } else { @@ -777,54 +854,61 @@ public java.lang.String getUserEvent() { } } /** + * + * *
                * Required. URL encoded UserEvent proto.
                * 
          * * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The userEvent to set. * @return This builder for chaining. */ - public Builder setUserEvent( - java.lang.String value) { + public Builder setUserEvent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + userEvent_ = value; onChanged(); return this; } /** + * + * *
                * Required. URL encoded UserEvent proto.
                * 
          * * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUserEvent() { - + userEvent_ = getDefaultInstance().getUserEvent(); onChanged(); return this; } /** + * + * *
                * Required. URL encoded UserEvent proto.
                * 
          * * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for userEvent to set. * @return This builder for chaining. */ - public Builder setUserEventBytes( - com.google.protobuf.ByteString value) { + public Builder setUserEventBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userEvent_ = value; onChanged(); return this; @@ -832,6 +916,8 @@ public Builder setUserEventBytes( private java.lang.Object uri_ = ""; /** + * + * *
                * Optional. The url including cgi-parameters but excluding the hash fragment.
                * The URL must be truncated to 1.5K bytes to conservatively be under the 2K
          @@ -840,13 +926,13 @@ public Builder setUserEventBytes(
                * 
          * * string uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -855,6 +941,8 @@ public java.lang.String getUri() { } } /** + * + * *
                * Optional. The url including cgi-parameters but excluding the hash fragment.
                * The URL must be truncated to 1.5K bytes to conservatively be under the 2K
          @@ -863,15 +951,14 @@ public java.lang.String getUri() {
                * 
          * * string uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -879,6 +966,8 @@ public java.lang.String getUri() { } } /** + * + * *
                * Optional. The url including cgi-parameters but excluding the hash fragment.
                * The URL must be truncated to 1.5K bytes to conservatively be under the 2K
          @@ -887,20 +976,22 @@ public java.lang.String getUri() {
                * 
          * * string uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
                * Optional. The url including cgi-parameters but excluding the hash fragment.
                * The URL must be truncated to 1.5K bytes to conservatively be under the 2K
          @@ -909,15 +1000,18 @@ public Builder setUri(
                * 
          * * string uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
                * Optional. The url including cgi-parameters but excluding the hash fragment.
                * The URL must be truncated to 1.5K bytes to conservatively be under the 2K
          @@ -926,23 +1020,25 @@ public Builder clearUri() {
                * 
          * * string uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - private long ets_ ; + private long ets_; /** + * + * *
                * Optional. The event timestamp in milliseconds. This prevents browser
                * caching of otherwise identical get requests. The name is abbreviated to
          @@ -950,6 +1046,7 @@ public Builder setUriBytes(
                * 
          * * int64 ets = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ets. */ @java.lang.Override @@ -957,6 +1054,8 @@ public long getEts() { return ets_; } /** + * + * *
                * Optional. The event timestamp in milliseconds. This prevents browser
                * caching of otherwise identical get requests. The name is abbreviated to
          @@ -964,16 +1063,19 @@ public long getEts() {
                * 
          * * int64 ets = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The ets to set. * @return This builder for chaining. */ public Builder setEts(long value) { - + ets_ = value; onChanged(); return this; } /** + * + * *
                * Optional. The event timestamp in milliseconds. This prevents browser
                * caching of otherwise identical get requests. The name is abbreviated to
          @@ -981,17 +1083,18 @@ public Builder setEts(long value) {
                * 
          * * int64 ets = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEts() { - + ets_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1001,30 +1104,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) - private static final com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CollectUserEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CollectUserEventRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CollectUserEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CollectUserEventRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1036,9 +1141,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.CollectUserEventRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequestOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequestOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequestOrBuilder.java index 11c07e6a..0544ea2c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequestOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CollectUserEventRequestOrBuilder.java @@ -1,55 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface CollectUserEventRequestOrBuilder extends +public interface CollectUserEventRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.CollectUserEventRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required. The parent eventStore name, such as
              * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
              * Required. The parent eventStore name, such as
              * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
              * Required. URL encoded UserEvent proto.
              * 
          * * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The userEvent. */ java.lang.String getUserEvent(); /** + * + * *
              * Required. URL encoded UserEvent proto.
              * 
          * * string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for userEvent. */ - com.google.protobuf.ByteString - getUserEventBytes(); + com.google.protobuf.ByteString getUserEventBytes(); /** + * + * *
              * Optional. The url including cgi-parameters but excluding the hash fragment.
              * The URL must be truncated to 1.5K bytes to conservatively be under the 2K
          @@ -58,10 +90,13 @@ public interface CollectUserEventRequestOrBuilder extends
              * 
          * * string uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
              * Optional. The url including cgi-parameters but excluding the hash fragment.
              * The URL must be truncated to 1.5K bytes to conservatively be under the 2K
          @@ -70,12 +105,14 @@ public interface CollectUserEventRequestOrBuilder extends
              * 
          * * string uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
              * Optional. The event timestamp in milliseconds. This prevents browser
              * caching of otherwise identical get requests. The name is abbreviated to
          @@ -83,6 +120,7 @@ public interface CollectUserEventRequestOrBuilder extends
              * 
          * * int64 ets = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ets. */ long getEts(); diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Common.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Common.java new file mode 100644 index 00000000..353207cb --- /dev/null +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Common.java @@ -0,0 +1,143 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/common.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public final class Common { + private Common() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/recommendationengine/v1be" + + "ta1/common.proto\022)google.cloud.recommend" + + "ationengine.v1beta1\032\034google/api/annotati" + + "ons.proto\"\226\004\n\nFeatureMap\022l\n\024categorical_" + + "features\030\001 \003(\0132N.google.cloud.recommenda" + + "tionengine.v1beta1.FeatureMap.Categorica" + + "lFeaturesEntry\022h\n\022numerical_features\030\002 \003" + + "(\0132L.google.cloud.recommendationengine.v" + + "1beta1.FeatureMap.NumericalFeaturesEntry" + + "\032\033\n\nStringList\022\r\n\005value\030\001 \003(\t\032\032\n\tFloatLi" + + "st\022\r\n\005value\030\001 \003(\002\032|\n\030CategoricalFeatures" + + "Entry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132@.goog" + + "le.cloud.recommendationengine.v1beta1.Fe" + + "atureMap.StringList:\0028\001\032y\n\026NumericalFeat" + + "uresEntry\022\013\n\003key\030\001 \001(\t\022N\n\005value\030\002 \001(\0132?." + + "google.cloud.recommendationengine.v1beta" + + "1.FeatureMap.FloatList:\0028\001B\237\002\n-com.googl" + + "e.cloud.recommendationengine.v1beta1P\001Z]" + + "google.golang.org/genproto/googleapis/cl" + + "oud/recommendationengine/v1beta1;recomme" + + "ndationengine\242\002\005RECAI\252\002)Google.Cloud.Rec" + + "ommendationEngine.V1Beta1\312\002)Google\\Cloud" + + "\\RecommendationEngine\\V1beta1\352\002,Google::" + + "Cloud::RecommendationEngine::V1beta1b\006pr" + + "oto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor, + new java.lang.String[] { + "CategoricalFeatures", "NumericalFeatures", + }); + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor, + new java.lang.String[] { + "Value", + }); + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor, + new java.lang.String[] { + "Value", + }); + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequest.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequest.java similarity index 60% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequest.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequest.java index 04742433..87b36305 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequest.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog_service.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Request message for CreateCatalogItem method.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest} */ -public final class CreateCatalogItemRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateCatalogItemRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) CreateCatalogItemRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateCatalogItemRequest.newBuilder() to construct. private CreateCatalogItemRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateCatalogItemRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateCatalogItemRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateCatalogItemRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,37 @@ private CreateCatalogItemRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder subBuilder = null; - if (catalogItem_ != null) { - subBuilder = catalogItem_.toBuilder(); + parent_ = s; + break; } - catalogItem_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.CatalogItem.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(catalogItem_); - catalogItem_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder subBuilder = null; + if (catalogItem_ != null) { + subBuilder = catalogItem_.toBuilder(); + } + catalogItem_ = + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.CatalogItem.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(catalogItem_); + catalogItem_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,35 +108,42 @@ private CreateCatalogItemRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.class, com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.class, + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
              * Required. The parent catalog resource name, such as
              * `projects/*/locations/global/catalogs/default_catalog`.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,30 +152,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
              * Required. The parent catalog resource name, such as
              * `projects/*/locations/global/catalogs/default_catalog`.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -157,11 +188,16 @@ public java.lang.String getParent() { public static final int CATALOG_ITEM_FIELD_NUMBER = 2; private com.google.cloud.recommendationengine.v1beta1.CatalogItem catalogItem_; /** + * + * *
              * Required. The catalog item to create.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the catalogItem field is set. */ @java.lang.Override @@ -169,30 +205,43 @@ public boolean hasCatalogItem() { return catalogItem_ != null; } /** + * + * *
              * Required. The catalog item to create.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The catalogItem. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItem() { - return catalogItem_ == null ? com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() : catalogItem_; + return catalogItem_ == null + ? com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() + : catalogItem_; } /** + * + * *
              * Required. The catalog item to create.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder + getCatalogItemOrBuilder() { return getCatalogItem(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +253,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -225,8 +273,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (catalogItem_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCatalogItem()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCatalogItem()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -236,19 +283,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest other = (com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) obj; + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest other = + (com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasCatalogItem() != other.hasCatalogItem()) return false; if (hasCatalogItem()) { - if (!getCatalogItem() - .equals(other.getCatalogItem())) return false; + if (!getCatalogItem().equals(other.getCatalogItem())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,134 +319,145 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Request message for CreateCatalogItem method.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.class, com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.class, + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.Builder.class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,19 +473,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_CreateCatalogItemRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest build() { - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest result = buildPartial(); + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -437,7 +497,8 @@ public com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest bu @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest result = new com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest(this); + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest result = + new com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest(this); result.parent_ = parent_; if (catalogItemBuilder_ == null) { result.catalogItem_ = catalogItem_; @@ -452,46 +513,51 @@ public com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest)other); + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest other) { - if (other == com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -518,7 +584,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -530,19 +598,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                * Required. The parent catalog resource name, such as
                * `projects/*/locations/global/catalogs/default_catalog`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -551,21 +623,24 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required. The parent catalog resource name, such as
                * `projects/*/locations/global/catalogs/default_catalog`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -573,57 +648,70 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required. The parent catalog resource name, such as
                * `projects/*/locations/global/catalogs/default_catalog`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                * Required. The parent catalog resource name, such as
                * `projects/*/locations/global/catalogs/default_catalog`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                * Required. The parent catalog resource name, such as
                * `projects/*/locations/global/catalogs/default_catalog`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -631,39 +719,58 @@ public Builder setParentBytes( private com.google.cloud.recommendationengine.v1beta1.CatalogItem catalogItem_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> catalogItemBuilder_; + com.google.cloud.recommendationengine.v1beta1.CatalogItem, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, + com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> + catalogItemBuilder_; /** + * + * *
                * Required. The catalog item to create.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the catalogItem field is set. */ public boolean hasCatalogItem() { return catalogItemBuilder_ != null || catalogItem_ != null; } /** + * + * *
                * Required. The catalog item to create.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The catalogItem. */ public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItem() { if (catalogItemBuilder_ == null) { - return catalogItem_ == null ? com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() : catalogItem_; + return catalogItem_ == null + ? com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() + : catalogItem_; } else { return catalogItemBuilder_.getMessage(); } } /** + * + * *
                * Required. The catalog item to create.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCatalogItem(com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { if (catalogItemBuilder_ == null) { @@ -679,11 +786,15 @@ public Builder setCatalogItem(com.google.cloud.recommendationengine.v1beta1.Cata return this; } /** + * + * *
                * Required. The catalog item to create.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCatalogItem( com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { @@ -697,17 +808,24 @@ public Builder setCatalogItem( return this; } /** + * + * *
                * Required. The catalog item to create.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeCatalogItem(com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { + public Builder mergeCatalogItem( + com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { if (catalogItemBuilder_ == null) { if (catalogItem_ != null) { catalogItem_ = - com.google.cloud.recommendationengine.v1beta1.CatalogItem.newBuilder(catalogItem_).mergeFrom(value).buildPartial(); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.newBuilder(catalogItem_) + .mergeFrom(value) + .buildPartial(); } else { catalogItem_ = value; } @@ -719,11 +837,15 @@ public Builder mergeCatalogItem(com.google.cloud.recommendationengine.v1beta1.Ca return this; } /** + * + * *
                * Required. The catalog item to create.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCatalogItem() { if (catalogItemBuilder_ == null) { @@ -737,55 +859,73 @@ public Builder clearCatalogItem() { return this; } /** + * + * *
                * Required. The catalog item to create.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder getCatalogItemBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder + getCatalogItemBuilder() { + onChanged(); return getCatalogItemFieldBuilder().getBuilder(); } /** + * + * *
                * Required. The catalog item to create.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder + getCatalogItemOrBuilder() { if (catalogItemBuilder_ != null) { return catalogItemBuilder_.getMessageOrBuilder(); } else { - return catalogItem_ == null ? - com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() : catalogItem_; + return catalogItem_ == null + ? com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() + : catalogItem_; } } /** + * + * *
                * Required. The catalog item to create.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> + com.google.cloud.recommendationengine.v1beta1.CatalogItem, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, + com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> getCatalogItemFieldBuilder() { if (catalogItemBuilder_ == null) { - catalogItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder>( - getCatalogItem(), - getParentForChildren(), - isClean()); + catalogItemBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.CatalogItem, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, + com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder>( + getCatalogItem(), getParentForChildren(), isClean()); catalogItem_ = null; } return catalogItemBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -795,30 +935,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) - private static final com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCatalogItemRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCatalogItemRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCatalogItemRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCatalogItemRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -830,9 +972,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequestOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequestOrBuilder.java new file mode 100644 index 00000000..a5c70063 --- /dev/null +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreateCatalogItemRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/catalog_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public interface CreateCatalogItemRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The parent catalog resource name, such as
          +   * `projects/*/locations/global/catalogs/default_catalog`.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
          +   * Required. The parent catalog resource name, such as
          +   * `projects/*/locations/global/catalogs/default_catalog`.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Required. The catalog item to create.
          +   * 
          + * + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the catalogItem field is set. + */ + boolean hasCatalogItem(); + /** + * + * + *
          +   * Required. The catalog item to create.
          +   * 
          + * + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The catalogItem. + */ + com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItem(); + /** + * + * + *
          +   * Required. The catalog item to create.
          +   * 
          + * + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemOrBuilder(); +} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequest.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequest.java new file mode 100644 index 00000000..5278b919 --- /dev/null +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequest.java @@ -0,0 +1,1041 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +/** + * + * + *
          + * Request message for the `CreatePredictionApiKeyRegistration` method.
          + * 
          + * + * Protobuf type {@code + * google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest} + */ +public final class CreatePredictionApiKeyRegistrationRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) + CreatePredictionApiKeyRegistrationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreatePredictionApiKeyRegistrationRequest.newBuilder() to construct. + private CreatePredictionApiKeyRegistrationRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreatePredictionApiKeyRegistrationRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreatePredictionApiKeyRegistrationRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreatePredictionApiKeyRegistrationRequest( + 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.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder + subBuilder = null; + if (predictionApiKeyRegistration_ != null) { + subBuilder = predictionApiKeyRegistration_.toBuilder(); + } + predictionApiKeyRegistration_ = + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(predictionApiKeyRegistration_); + predictionApiKeyRegistration_ = 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.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest + .class, + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest + .Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
          +   * Required. The parent resource path.
          +   * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The parent resource path.
          +   * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          +   * 
          + * + * + * 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 PREDICTION_API_KEY_REGISTRATION_FIELD_NUMBER = 2; + private com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + predictionApiKeyRegistration_; + /** + * + * + *
          +   * Required. The prediction API key registration.
          +   * 
          + * + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictionApiKeyRegistration field is set. + */ + @java.lang.Override + public boolean hasPredictionApiKeyRegistration() { + return predictionApiKeyRegistration_ != null; + } + /** + * + * + *
          +   * Required. The prediction API key registration.
          +   * 
          + * + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictionApiKeyRegistration. + */ + @java.lang.Override + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + getPredictionApiKeyRegistration() { + return predictionApiKeyRegistration_ == null + ? com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + .getDefaultInstance() + : predictionApiKeyRegistration_; + } + /** + * + * + *
          +   * Required. The prediction API key registration.
          +   * 
          + * + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder + getPredictionApiKeyRegistrationOrBuilder() { + return getPredictionApiKeyRegistration(); + } + + 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 (predictionApiKeyRegistration_ != null) { + output.writeMessage(2, getPredictionApiKeyRegistration()); + } + 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 (predictionApiKeyRegistration_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getPredictionApiKeyRegistration()); + } + 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.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest)) { + return super.equals(obj); + } + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest other = + (com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) + obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasPredictionApiKeyRegistration() != other.hasPredictionApiKeyRegistration()) return false; + if (hasPredictionApiKeyRegistration()) { + if (!getPredictionApiKeyRegistration().equals(other.getPredictionApiKeyRegistration())) + 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 (hasPredictionApiKeyRegistration()) { + hash = (37 * hash) + PREDICTION_API_KEY_REGISTRATION_FIELD_NUMBER; + hash = (53 * hash) + getPredictionApiKeyRegistration().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest + 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 the `CreatePredictionApiKeyRegistration` method.
          +   * 
          + * + * Protobuf type {@code + * google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) + com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest.class, + com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest.Builder.class); + } + + // Construct using + // com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest.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 (predictionApiKeyRegistrationBuilder_ == null) { + predictionApiKeyRegistration_ = null; + } else { + predictionApiKeyRegistration_ = null; + predictionApiKeyRegistrationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest + build() { + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest + buildPartial() { + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest + result = + new com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest(this); + result.parent_ = parent_; + if (predictionApiKeyRegistrationBuilder_ == null) { + result.predictionApiKeyRegistration_ = predictionApiKeyRegistration_; + } else { + result.predictionApiKeyRegistration_ = predictionApiKeyRegistrationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) { + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest + other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasPredictionApiKeyRegistration()) { + mergePredictionApiKeyRegistration(other.getPredictionApiKeyRegistration()); + } + 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.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
          +     * Required. The parent resource path.
          +     * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The parent resource path.
          +     * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The parent resource path.
          +     * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          +     * 
          + * + * + * 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; + } + /** + * + * + *
          +     * Required. The parent resource path.
          +     * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The parent resource path.
          +     * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          +     * 
          + * + * + * 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.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + predictionApiKeyRegistration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> + predictionApiKeyRegistrationBuilder_; + /** + * + * + *
          +     * Required. The prediction API key registration.
          +     * 
          + * + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictionApiKeyRegistration field is set. + */ + public boolean hasPredictionApiKeyRegistration() { + return predictionApiKeyRegistrationBuilder_ != null || predictionApiKeyRegistration_ != null; + } + /** + * + * + *
          +     * Required. The prediction API key registration.
          +     * 
          + * + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictionApiKeyRegistration. + */ + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + getPredictionApiKeyRegistration() { + if (predictionApiKeyRegistrationBuilder_ == null) { + return predictionApiKeyRegistration_ == null + ? com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + .getDefaultInstance() + : predictionApiKeyRegistration_; + } else { + return predictionApiKeyRegistrationBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. The prediction API key registration.
          +     * 
          + * + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictionApiKeyRegistration( + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration value) { + if (predictionApiKeyRegistrationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predictionApiKeyRegistration_ = value; + onChanged(); + } else { + predictionApiKeyRegistrationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
          +     * Required. The prediction API key registration.
          +     * 
          + * + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPredictionApiKeyRegistration( + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder + builderForValue) { + if (predictionApiKeyRegistrationBuilder_ == null) { + predictionApiKeyRegistration_ = builderForValue.build(); + onChanged(); + } else { + predictionApiKeyRegistrationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
          +     * Required. The prediction API key registration.
          +     * 
          + * + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePredictionApiKeyRegistration( + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration value) { + if (predictionApiKeyRegistrationBuilder_ == null) { + if (predictionApiKeyRegistration_ != null) { + predictionApiKeyRegistration_ = + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.newBuilder( + predictionApiKeyRegistration_) + .mergeFrom(value) + .buildPartial(); + } else { + predictionApiKeyRegistration_ = value; + } + onChanged(); + } else { + predictionApiKeyRegistrationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
          +     * Required. The prediction API key registration.
          +     * 
          + * + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPredictionApiKeyRegistration() { + if (predictionApiKeyRegistrationBuilder_ == null) { + predictionApiKeyRegistration_ = null; + onChanged(); + } else { + predictionApiKeyRegistration_ = null; + predictionApiKeyRegistrationBuilder_ = null; + } + + return this; + } + /** + * + * + *
          +     * Required. The prediction API key registration.
          +     * 
          + * + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder + getPredictionApiKeyRegistrationBuilder() { + + onChanged(); + return getPredictionApiKeyRegistrationFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. The prediction API key registration.
          +     * 
          + * + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder + getPredictionApiKeyRegistrationOrBuilder() { + if (predictionApiKeyRegistrationBuilder_ != null) { + return predictionApiKeyRegistrationBuilder_.getMessageOrBuilder(); + } else { + return predictionApiKeyRegistration_ == null + ? com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + .getDefaultInstance() + : predictionApiKeyRegistration_; + } + } + /** + * + * + *
          +     * Required. The prediction API key registration.
          +     * 
          + * + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> + getPredictionApiKeyRegistrationFieldBuilder() { + if (predictionApiKeyRegistrationBuilder_ == null) { + predictionApiKeyRegistrationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, + com.google.cloud.recommendationengine.v1beta1 + .PredictionApiKeyRegistrationOrBuilder>( + getPredictionApiKeyRegistration(), getParentForChildren(), isClean()); + predictionApiKeyRegistration_ = null; + } + return predictionApiKeyRegistrationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) + private static final com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest(); + } + + public static com.google.cloud.recommendationengine.v1beta1 + .CreatePredictionApiKeyRegistrationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePredictionApiKeyRegistrationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreatePredictionApiKeyRegistrationRequest(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.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequestOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequestOrBuilder.java new file mode 100644 index 00000000..31dd7380 --- /dev/null +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/CreatePredictionApiKeyRegistrationRequestOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public interface CreatePredictionApiKeyRegistrationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The parent resource path.
          +   * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
          +   * Required. The parent resource path.
          +   * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Required. The prediction API key registration.
          +   * 
          + * + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the predictionApiKeyRegistration field is set. + */ + boolean hasPredictionApiKeyRegistration(); + /** + * + * + *
          +   * Required. The prediction API key registration.
          +   * 
          + * + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The predictionApiKeyRegistration. + */ + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + getPredictionApiKeyRegistration(); + /** + * + * + *
          +   * Required. The prediction API key registration.
          +   * 
          + * + * + * .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registration = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder + getPredictionApiKeyRegistrationOrBuilder(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequest.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequest.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequest.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequest.java index 4bc91164..f894639f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequest.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog_service.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Request message for DeleteCatalogItem method.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest} */ -public final class DeleteCatalogItemRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteCatalogItemRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) DeleteCatalogItemRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteCatalogItemRequest.newBuilder() to construct. private DeleteCatalogItemRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteCatalogItemRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteCatalogItemRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteCatalogItemRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteCatalogItemRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private DeleteCatalogItemRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.class, com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.class, + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
              * Required. Full resource name of catalog item, such as
              * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
              * Required. Full resource name of catalog item, such as
              * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest other = (com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) obj; + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest other = + (com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,134 +233,145 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Request message for DeleteCatalogItem method.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.class, com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.class, + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.Builder.class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,19 +381,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_DeleteCatalogItemRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest build() { - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest result = buildPartial(); + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -364,7 +405,8 @@ public com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest bu @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest result = new com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest(this); + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest result = + new com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +416,51 @@ public com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest)other); + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest other) { - if (other == com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +484,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +498,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
                * Required. Full resource name of catalog item, such as
                * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +523,24 @@ public java.lang.String getName() { } } /** + * + * *
                * Required. Full resource name of catalog item, such as
                * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +548,77 @@ public java.lang.String getName() { } } /** + * + * *
                * Required. Full resource name of catalog item, such as
                * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                * Required. Full resource name of catalog item, such as
                * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                * Required. Full resource name of catalog item, such as
                * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +628,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) - private static final com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteCatalogItemRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteCatalogItemRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCatalogItemRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteCatalogItemRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +665,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequestOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequestOrBuilder.java new file mode 100644 index 00000000..3c8ea470 --- /dev/null +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeleteCatalogItemRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/catalog_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public interface DeleteCatalogItemRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Full resource name of catalog item, such as
          +   * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Required. Full resource name of catalog item, such as
          +   * `projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id`.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequest.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequest.java similarity index 50% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequest.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequest.java index b0a0d384..3014a3b6 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequest.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequest.java @@ -1,40 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Request message for `DeletePredictionApiKeyRegistration` method.
            * 
          * - * Protobuf type {@code google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest} + * Protobuf type {@code + * google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest} */ -public final class DeletePredictionApiKeyRegistrationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeletePredictionApiKeyRegistrationRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) DeletePredictionApiKeyRegistrationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeletePredictionApiKeyRegistrationRequest.newBuilder() to construct. - private DeletePredictionApiKeyRegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeletePredictionApiKeyRegistrationRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeletePredictionApiKeyRegistrationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeletePredictionApiKeyRegistrationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeletePredictionApiKeyRegistrationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +73,20 @@ private DeletePredictionApiKeyRegistrationRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +94,44 @@ private DeletePredictionApiKeyRegistrationRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest.class, com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest + .class, + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest + .Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
              * Required. The API key to unregister including full resource path.
              * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>`
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +140,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
              * Required. The API key to unregister including full resource path.
              * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>`
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +174,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +186,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +210,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest)) { + if (!(obj + instanceof + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest other = (com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) obj; + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest other = + (com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) + obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,135 +240,168 @@ public int hashCode() { return hash; } - public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Request message for `DeletePredictionApiKeyRegistration` method.
              * 
          * - * Protobuf type {@code google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest} + * Protobuf type {@code + * google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor; + com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest.class, com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest.class, + com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest.Builder.class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,19 +411,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest build() { - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest result = buildPartial(); + public com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest + build() { + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -363,8 +435,12 @@ public com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegis } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest result = new com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest(this); + public com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest + buildPartial() { + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest + result = + new com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +450,56 @@ public com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegis public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest)other); + if (other + instanceof + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) { + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest other) { - if (other == com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest + other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,11 +519,15 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest parsedMessage = null; + com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +539,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
                * Required. The API key to unregister including full resource path.
                * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>`
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +564,24 @@ public java.lang.String getName() { } } /** + * + * *
                * Required. The API key to unregister including full resource path.
                * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>`
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +589,77 @@ public java.lang.String getName() { } } /** + * + * *
                * Required. The API key to unregister including full resource path.
                * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>`
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                * Required. The API key to unregister including full resource path.
                * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>`
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                * Required. The API key to unregister including full resource path.
                * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>`
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +669,37 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) - private static final com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1 + .DeletePredictionApiKeyRegistrationRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePredictionApiKeyRegistrationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeletePredictionApiKeyRegistrationRequest(input, extensionRegistry); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePredictionApiKeyRegistrationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeletePredictionApiKeyRegistrationRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +711,8 @@ public com.google.protobuf.Parser get } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequestOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequestOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequestOrBuilder.java index 8efd4d45..ccad1dfd 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequestOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/DeletePredictionApiKeyRegistrationRequestOrBuilder.java @@ -1,31 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface DeletePredictionApiKeyRegistrationRequestOrBuilder extends +public interface DeletePredictionApiKeyRegistrationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required. The API key to unregister including full resource path.
              * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>`
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
              * Required. The API key to unregister including full resource path.
              * `projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/predictionApiKeyRegistrations/<YOUR_API_KEY>`
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetail.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetail.java similarity index 77% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetail.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetail.java index b334293a..5abb64d0 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetail.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetail.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * User event details shared by all recommendation types.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.EventDetail} */ -public final class EventDetail extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EventDetail extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.EventDetail) EventDetailOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EventDetail.newBuilder() to construct. private EventDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EventDetail() { uri_ = ""; referrerUri_ = ""; @@ -29,16 +47,15 @@ private EventDetail() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EventDetail(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private EventDetail( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,59 +75,68 @@ private EventDetail( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - pageViewId_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - experimentIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + uri_ = s; + break; } - experimentIds_.add(s); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - recommendationToken_ = s; - break; - } - case 42: { - com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder subBuilder = null; - if (eventAttributes_ != null) { - subBuilder = eventAttributes_.toBuilder(); + pageViewId_ = s; + break; } - eventAttributes_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.FeatureMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(eventAttributes_); - eventAttributes_ = subBuilder.buildPartial(); + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + experimentIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + experimentIds_.add(s); + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + recommendationToken_ = s; + break; + } + case 42: + { + com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder subBuilder = null; + if (eventAttributes_ != null) { + subBuilder = eventAttributes_.toBuilder(); + } + eventAttributes_ = + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.FeatureMap.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(eventAttributes_); + eventAttributes_ = subBuilder.buildPartial(); + } - referrerUri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + referrerUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -118,8 +144,7 @@ private EventDetail( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { experimentIds_ = experimentIds_.getUnmodifiableView(); @@ -128,22 +153,27 @@ private EventDetail( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.EventDetail.class, com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder.class); + com.google.cloud.recommendationengine.v1beta1.EventDetail.class, + com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** + * + * *
              * Optional. Complete url (window.location.href) of the user's current page.
              * When using the JavaScript pixel, this value is filled in automatically.
          @@ -151,6 +181,7 @@ private EventDetail(
              * 
          * * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The uri. */ @java.lang.Override @@ -159,14 +190,15 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
              * Optional. Complete url (window.location.href) of the user's current page.
              * When using the JavaScript pixel, this value is filled in automatically.
          @@ -174,16 +206,15 @@ public java.lang.String getUri() {
              * 
          * * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -194,12 +225,15 @@ public java.lang.String getUri() { public static final int REFERRER_URI_FIELD_NUMBER = 6; private volatile java.lang.Object referrerUri_; /** + * + * *
              * Optional. The referrer url of the current page. When using
              * the JavaScript pixel, this value is filled in automatically.
              * 
          * * string referrer_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The referrerUri. */ @java.lang.Override @@ -208,30 +242,30 @@ public java.lang.String getReferrerUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referrerUri_ = s; return s; } } /** + * + * *
              * Optional. The referrer url of the current page. When using
              * the JavaScript pixel, this value is filled in automatically.
              * 
          * * string referrer_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for referrerUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getReferrerUriBytes() { + public com.google.protobuf.ByteString getReferrerUriBytes() { java.lang.Object ref = referrerUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); referrerUri_ = b; return b; } else { @@ -242,6 +276,8 @@ public java.lang.String getReferrerUri() { public static final int PAGE_VIEW_ID_FIELD_NUMBER = 2; private volatile java.lang.Object pageViewId_; /** + * + * *
              * Optional. A unique id of a web page view.
              * This should be kept the same for all user events triggered from the same
          @@ -253,6 +289,7 @@ public java.lang.String getReferrerUri() {
              * 
          * * string page_view_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageViewId. */ @java.lang.Override @@ -261,14 +298,15 @@ public java.lang.String getPageViewId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageViewId_ = s; return s; } } /** + * + * *
              * Optional. A unique id of a web page view.
              * This should be kept the same for all user events triggered from the same
          @@ -280,16 +318,15 @@ public java.lang.String getPageViewId() {
              * 
          * * string page_view_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageViewId. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageViewIdBytes() { + public com.google.protobuf.ByteString getPageViewIdBytes() { java.lang.Object ref = pageViewId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageViewId_ = b; return b; } else { @@ -300,6 +337,8 @@ public java.lang.String getPageViewId() { public static final int EXPERIMENT_IDS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList experimentIds_; /** + * + * *
              * Optional. A list of identifiers for the independent experiment groups
              * this user event belongs to. This is used to distinguish between user events
          @@ -308,13 +347,15 @@ public java.lang.String getPageViewId() {
              * 
          * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the experimentIds. */ - public com.google.protobuf.ProtocolStringList - getExperimentIdsList() { + public com.google.protobuf.ProtocolStringList getExperimentIdsList() { return experimentIds_; } /** + * + * *
              * Optional. A list of identifiers for the independent experiment groups
              * this user event belongs to. This is used to distinguish between user events
          @@ -323,12 +364,15 @@ public java.lang.String getPageViewId() {
              * 
          * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of experimentIds. */ public int getExperimentIdsCount() { return experimentIds_.size(); } /** + * + * *
              * Optional. A list of identifiers for the independent experiment groups
              * this user event belongs to. This is used to distinguish between user events
          @@ -337,6 +381,7 @@ public int getExperimentIdsCount() {
              * 
          * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The experimentIds at the given index. */ @@ -344,6 +389,8 @@ public java.lang.String getExperimentIds(int index) { return experimentIds_.get(index); } /** + * + * *
              * Optional. A list of identifiers for the independent experiment groups
              * this user event belongs to. This is used to distinguish between user events
          @@ -352,17 +399,19 @@ public java.lang.String getExperimentIds(int index) {
              * 
          * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the experimentIds at the given index. */ - public com.google.protobuf.ByteString - getExperimentIdsBytes(int index) { + public com.google.protobuf.ByteString getExperimentIdsBytes(int index) { return experimentIds_.getByteString(index); } public static final int RECOMMENDATION_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object recommendationToken_; /** + * + * *
              * Optional. Recommendation token included in the recommendation prediction
              * response.
          @@ -379,6 +428,7 @@ public java.lang.String getExperimentIds(int index) {
              * 
          * * string recommendation_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The recommendationToken. */ @java.lang.Override @@ -387,14 +437,15 @@ public java.lang.String getRecommendationToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recommendationToken_ = s; return s; } } /** + * + * *
              * Optional. Recommendation token included in the recommendation prediction
              * response.
          @@ -411,16 +462,15 @@ public java.lang.String getRecommendationToken() {
              * 
          * * string recommendation_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for recommendationToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getRecommendationTokenBytes() { + public com.google.protobuf.ByteString getRecommendationTokenBytes() { java.lang.Object ref = recommendationToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); recommendationToken_ = b; return b; } else { @@ -431,6 +481,8 @@ public java.lang.String getRecommendationToken() { public static final int EVENT_ATTRIBUTES_FIELD_NUMBER = 5; private com.google.cloud.recommendationengine.v1beta1.FeatureMap eventAttributes_; /** + * + * *
              * Optional. Extra user event features to include in the recommendation
              * model.
          @@ -440,7 +492,10 @@ public java.lang.String getRecommendationToken() {
              * search, and etc.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the eventAttributes field is set. */ @java.lang.Override @@ -448,6 +503,8 @@ public boolean hasEventAttributes() { return eventAttributes_ != null; } /** + * + * *
              * Optional. Extra user event features to include in the recommendation
              * model.
          @@ -457,14 +514,21 @@ public boolean hasEventAttributes() {
              * search, and etc.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventAttributes. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.FeatureMap getEventAttributes() { - return eventAttributes_ == null ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() : eventAttributes_; + return eventAttributes_ == null + ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() + : eventAttributes_; } /** + * + * *
              * Optional. Extra user event features to include in the recommendation
              * model.
          @@ -474,14 +538,18 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap getEventAttribut
              * search, and etc.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getEventAttributesOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder + getEventAttributesOrBuilder() { return getEventAttributes(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -493,8 +561,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -540,8 +607,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, recommendationToken_); } if (eventAttributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getEventAttributes()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEventAttributes()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referrerUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, referrerUri_); @@ -554,27 +620,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.EventDetail)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.EventDetail other = (com.google.cloud.recommendationengine.v1beta1.EventDetail) obj; - - if (!getUri() - .equals(other.getUri())) return false; - if (!getReferrerUri() - .equals(other.getReferrerUri())) return false; - if (!getPageViewId() - .equals(other.getPageViewId())) return false; - if (!getExperimentIdsList() - .equals(other.getExperimentIdsList())) return false; - if (!getRecommendationToken() - .equals(other.getRecommendationToken())) return false; + com.google.cloud.recommendationengine.v1beta1.EventDetail other = + (com.google.cloud.recommendationengine.v1beta1.EventDetail) obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getReferrerUri().equals(other.getReferrerUri())) return false; + if (!getPageViewId().equals(other.getPageViewId())) return false; + if (!getExperimentIdsList().equals(other.getExperimentIdsList())) return false; + if (!getRecommendationToken().equals(other.getRecommendationToken())) return false; if (hasEventAttributes() != other.hasEventAttributes()) return false; if (hasEventAttributes()) { - if (!getEventAttributes() - .equals(other.getEventAttributes())) return false; + if (!getEventAttributes().equals(other.getEventAttributes())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -609,117 +670,127 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.EventDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.EventDetail prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.EventDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * User event details shared by all recommendation types.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.EventDetail} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.EventDetail) com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.EventDetail.class, com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder.class); + com.google.cloud.recommendationengine.v1beta1.EventDetail.class, + com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder.class); } // Construct using com.google.cloud.recommendationengine.v1beta1.EventDetail.newBuilder() @@ -727,16 +798,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -760,9 +830,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor; } @java.lang.Override @@ -781,7 +851,8 @@ public com.google.cloud.recommendationengine.v1beta1.EventDetail build() { @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.EventDetail buildPartial() { - com.google.cloud.recommendationengine.v1beta1.EventDetail result = new com.google.cloud.recommendationengine.v1beta1.EventDetail(this); + com.google.cloud.recommendationengine.v1beta1.EventDetail result = + new com.google.cloud.recommendationengine.v1beta1.EventDetail(this); int from_bitField0_ = bitField0_; result.uri_ = uri_; result.referrerUri_ = referrerUri_; @@ -805,38 +876,39 @@ public com.google.cloud.recommendationengine.v1beta1.EventDetail buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.EventDetail) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.EventDetail)other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.EventDetail) other); } else { super.mergeFrom(other); return this; @@ -844,7 +916,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.EventDetail other) { - if (other == com.google.cloud.recommendationengine.v1beta1.EventDetail.getDefaultInstance()) return this; + if (other == com.google.cloud.recommendationengine.v1beta1.EventDetail.getDefaultInstance()) + return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); @@ -893,7 +966,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.EventDetail) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.EventDetail) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -902,10 +976,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object uri_ = ""; /** + * + * *
                * Optional. Complete url (window.location.href) of the user's current page.
                * When using the JavaScript pixel, this value is filled in automatically.
          @@ -913,13 +990,13 @@ public Builder mergeFrom(
                * 
          * * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -928,6 +1005,8 @@ public java.lang.String getUri() { } } /** + * + * *
                * Optional. Complete url (window.location.href) of the user's current page.
                * When using the JavaScript pixel, this value is filled in automatically.
          @@ -935,15 +1014,14 @@ public java.lang.String getUri() {
                * 
          * * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -951,6 +1029,8 @@ public java.lang.String getUri() { } } /** + * + * *
                * Optional. Complete url (window.location.href) of the user's current page.
                * When using the JavaScript pixel, this value is filled in automatically.
          @@ -958,20 +1038,22 @@ public java.lang.String getUri() {
                * 
          * * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Complete url (window.location.href) of the user's current page.
                * When using the JavaScript pixel, this value is filled in automatically.
          @@ -979,15 +1061,18 @@ public Builder setUri(
                * 
          * * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
                * Optional. Complete url (window.location.href) of the user's current page.
                * When using the JavaScript pixel, this value is filled in automatically.
          @@ -995,16 +1080,16 @@ public Builder clearUri() {
                * 
          * * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; @@ -1012,19 +1097,21 @@ public Builder setUriBytes( private java.lang.Object referrerUri_ = ""; /** + * + * *
                * Optional. The referrer url of the current page. When using
                * the JavaScript pixel, this value is filled in automatically.
                * 
          * * string referrer_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The referrerUri. */ public java.lang.String getReferrerUri() { java.lang.Object ref = referrerUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referrerUri_ = s; return s; @@ -1033,21 +1120,22 @@ public java.lang.String getReferrerUri() { } } /** + * + * *
                * Optional. The referrer url of the current page. When using
                * the JavaScript pixel, this value is filled in automatically.
                * 
          * * string referrer_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for referrerUri. */ - public com.google.protobuf.ByteString - getReferrerUriBytes() { + public com.google.protobuf.ByteString getReferrerUriBytes() { java.lang.Object ref = referrerUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); referrerUri_ = b; return b; } else { @@ -1055,57 +1143,64 @@ public java.lang.String getReferrerUri() { } } /** + * + * *
                * Optional. The referrer url of the current page. When using
                * the JavaScript pixel, this value is filled in automatically.
                * 
          * * string referrer_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The referrerUri to set. * @return This builder for chaining. */ - public Builder setReferrerUri( - java.lang.String value) { + public Builder setReferrerUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + referrerUri_ = value; onChanged(); return this; } /** + * + * *
                * Optional. The referrer url of the current page. When using
                * the JavaScript pixel, this value is filled in automatically.
                * 
          * * string referrer_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearReferrerUri() { - + referrerUri_ = getDefaultInstance().getReferrerUri(); onChanged(); return this; } /** + * + * *
                * Optional. The referrer url of the current page. When using
                * the JavaScript pixel, this value is filled in automatically.
                * 
          * * string referrer_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for referrerUri to set. * @return This builder for chaining. */ - public Builder setReferrerUriBytes( - com.google.protobuf.ByteString value) { + public Builder setReferrerUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + referrerUri_ = value; onChanged(); return this; @@ -1113,6 +1208,8 @@ public Builder setReferrerUriBytes( private java.lang.Object pageViewId_ = ""; /** + * + * *
                * Optional. A unique id of a web page view.
                * This should be kept the same for all user events triggered from the same
          @@ -1124,13 +1221,13 @@ public Builder setReferrerUriBytes(
                * 
          * * string page_view_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageViewId. */ public java.lang.String getPageViewId() { java.lang.Object ref = pageViewId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageViewId_ = s; return s; @@ -1139,6 +1236,8 @@ public java.lang.String getPageViewId() { } } /** + * + * *
                * Optional. A unique id of a web page view.
                * This should be kept the same for all user events triggered from the same
          @@ -1150,15 +1249,14 @@ public java.lang.String getPageViewId() {
                * 
          * * string page_view_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageViewId. */ - public com.google.protobuf.ByteString - getPageViewIdBytes() { + public com.google.protobuf.ByteString getPageViewIdBytes() { java.lang.Object ref = pageViewId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageViewId_ = b; return b; } else { @@ -1166,6 +1264,8 @@ public java.lang.String getPageViewId() { } } /** + * + * *
                * Optional. A unique id of a web page view.
                * This should be kept the same for all user events triggered from the same
          @@ -1177,20 +1277,22 @@ public java.lang.String getPageViewId() {
                * 
          * * string page_view_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageViewId to set. * @return This builder for chaining. */ - public Builder setPageViewId( - java.lang.String value) { + public Builder setPageViewId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageViewId_ = value; onChanged(); return this; } /** + * + * *
                * Optional. A unique id of a web page view.
                * This should be kept the same for all user events triggered from the same
          @@ -1202,15 +1304,18 @@ public Builder setPageViewId(
                * 
          * * string page_view_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageViewId() { - + pageViewId_ = getDefaultInstance().getPageViewId(); onChanged(); return this; } /** + * + * *
                * Optional. A unique id of a web page view.
                * This should be kept the same for all user events triggered from the same
          @@ -1222,29 +1327,33 @@ public Builder clearPageViewId() {
                * 
          * * string page_view_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageViewId to set. * @return This builder for chaining. */ - public Builder setPageViewIdBytes( - com.google.protobuf.ByteString value) { + public Builder setPageViewIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageViewId_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList experimentIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList experimentIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureExperimentIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { experimentIds_ = new com.google.protobuf.LazyStringArrayList(experimentIds_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
                * Optional. A list of identifiers for the independent experiment groups
                * this user event belongs to. This is used to distinguish between user events
          @@ -1253,13 +1362,15 @@ private void ensureExperimentIdsIsMutable() {
                * 
          * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the experimentIds. */ - public com.google.protobuf.ProtocolStringList - getExperimentIdsList() { + public com.google.protobuf.ProtocolStringList getExperimentIdsList() { return experimentIds_.getUnmodifiableView(); } /** + * + * *
                * Optional. A list of identifiers for the independent experiment groups
                * this user event belongs to. This is used to distinguish between user events
          @@ -1268,12 +1379,15 @@ private void ensureExperimentIdsIsMutable() {
                * 
          * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of experimentIds. */ public int getExperimentIdsCount() { return experimentIds_.size(); } /** + * + * *
                * Optional. A list of identifiers for the independent experiment groups
                * this user event belongs to. This is used to distinguish between user events
          @@ -1282,6 +1396,7 @@ public int getExperimentIdsCount() {
                * 
          * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The experimentIds at the given index. */ @@ -1289,6 +1404,8 @@ public java.lang.String getExperimentIds(int index) { return experimentIds_.get(index); } /** + * + * *
                * Optional. A list of identifiers for the independent experiment groups
                * this user event belongs to. This is used to distinguish between user events
          @@ -1297,14 +1414,16 @@ public java.lang.String getExperimentIds(int index) {
                * 
          * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the experimentIds at the given index. */ - public com.google.protobuf.ByteString - getExperimentIdsBytes(int index) { + public com.google.protobuf.ByteString getExperimentIdsBytes(int index) { return experimentIds_.getByteString(index); } /** + * + * *
                * Optional. A list of identifiers for the independent experiment groups
                * this user event belongs to. This is used to distinguish between user events
          @@ -1313,21 +1432,23 @@ public java.lang.String getExperimentIds(int index) {
                * 
          * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The experimentIds to set. * @return This builder for chaining. */ - public Builder setExperimentIds( - int index, java.lang.String value) { + public Builder setExperimentIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureExperimentIdsIsMutable(); + throw new NullPointerException(); + } + ensureExperimentIdsIsMutable(); experimentIds_.set(index, value); onChanged(); return this; } /** + * + * *
                * Optional. A list of identifiers for the independent experiment groups
                * this user event belongs to. This is used to distinguish between user events
          @@ -1336,20 +1457,22 @@ public Builder setExperimentIds(
                * 
          * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The experimentIds to add. * @return This builder for chaining. */ - public Builder addExperimentIds( - java.lang.String value) { + public Builder addExperimentIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureExperimentIdsIsMutable(); + throw new NullPointerException(); + } + ensureExperimentIdsIsMutable(); experimentIds_.add(value); onChanged(); return this; } /** + * + * *
                * Optional. A list of identifiers for the independent experiment groups
                * this user event belongs to. This is used to distinguish between user events
          @@ -1358,18 +1481,19 @@ public Builder addExperimentIds(
                * 
          * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The experimentIds to add. * @return This builder for chaining. */ - public Builder addAllExperimentIds( - java.lang.Iterable values) { + public Builder addAllExperimentIds(java.lang.Iterable values) { ensureExperimentIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, experimentIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, experimentIds_); onChanged(); return this; } /** + * + * *
                * Optional. A list of identifiers for the independent experiment groups
                * this user event belongs to. This is used to distinguish between user events
          @@ -1378,6 +1502,7 @@ public Builder addAllExperimentIds(
                * 
          * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearExperimentIds() { @@ -1387,6 +1512,8 @@ public Builder clearExperimentIds() { return this; } /** + * + * *
                * Optional. A list of identifiers for the independent experiment groups
                * this user event belongs to. This is used to distinguish between user events
          @@ -1395,15 +1522,15 @@ public Builder clearExperimentIds() {
                * 
          * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the experimentIds to add. * @return This builder for chaining. */ - public Builder addExperimentIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addExperimentIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureExperimentIdsIsMutable(); experimentIds_.add(value); onChanged(); @@ -1412,6 +1539,8 @@ public Builder addExperimentIdsBytes( private java.lang.Object recommendationToken_ = ""; /** + * + * *
                * Optional. Recommendation token included in the recommendation prediction
                * response.
          @@ -1428,13 +1557,13 @@ public Builder addExperimentIdsBytes(
                * 
          * * string recommendation_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The recommendationToken. */ public java.lang.String getRecommendationToken() { java.lang.Object ref = recommendationToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recommendationToken_ = s; return s; @@ -1443,6 +1572,8 @@ public java.lang.String getRecommendationToken() { } } /** + * + * *
                * Optional. Recommendation token included in the recommendation prediction
                * response.
          @@ -1459,15 +1590,14 @@ public java.lang.String getRecommendationToken() {
                * 
          * * string recommendation_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for recommendationToken. */ - public com.google.protobuf.ByteString - getRecommendationTokenBytes() { + public com.google.protobuf.ByteString getRecommendationTokenBytes() { java.lang.Object ref = recommendationToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); recommendationToken_ = b; return b; } else { @@ -1475,6 +1605,8 @@ public java.lang.String getRecommendationToken() { } } /** + * + * *
                * Optional. Recommendation token included in the recommendation prediction
                * response.
          @@ -1491,20 +1623,22 @@ public java.lang.String getRecommendationToken() {
                * 
          * * string recommendation_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The recommendationToken to set. * @return This builder for chaining. */ - public Builder setRecommendationToken( - java.lang.String value) { + public Builder setRecommendationToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + recommendationToken_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Recommendation token included in the recommendation prediction
                * response.
          @@ -1521,15 +1655,18 @@ public Builder setRecommendationToken(
                * 
          * * string recommendation_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRecommendationToken() { - + recommendationToken_ = getDefaultInstance().getRecommendationToken(); onChanged(); return this; } /** + * + * *
                * Optional. Recommendation token included in the recommendation prediction
                * response.
          @@ -1546,16 +1683,16 @@ public Builder clearRecommendationToken() {
                * 
          * * string recommendation_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for recommendationToken to set. * @return This builder for chaining. */ - public Builder setRecommendationTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setRecommendationTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + recommendationToken_ = value; onChanged(); return this; @@ -1563,8 +1700,13 @@ public Builder setRecommendationTokenBytes( private com.google.cloud.recommendationengine.v1beta1.FeatureMap eventAttributes_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.FeatureMap, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> eventAttributesBuilder_; + com.google.cloud.recommendationengine.v1beta1.FeatureMap, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, + com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> + eventAttributesBuilder_; /** + * + * *
                * Optional. Extra user event features to include in the recommendation
                * model.
          @@ -1574,13 +1716,18 @@ public Builder setRecommendationTokenBytes(
                * search, and etc.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the eventAttributes field is set. */ public boolean hasEventAttributes() { return eventAttributesBuilder_ != null || eventAttributes_ != null; } /** + * + * *
                * Optional. Extra user event features to include in the recommendation
                * model.
          @@ -1590,17 +1737,24 @@ public boolean hasEventAttributes() {
                * search, and etc.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventAttributes. */ public com.google.cloud.recommendationengine.v1beta1.FeatureMap getEventAttributes() { if (eventAttributesBuilder_ == null) { - return eventAttributes_ == null ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() : eventAttributes_; + return eventAttributes_ == null + ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() + : eventAttributes_; } else { return eventAttributesBuilder_.getMessage(); } } /** + * + * *
                * Optional. Extra user event features to include in the recommendation
                * model.
          @@ -1610,9 +1764,12 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap getEventAttribut
                * search, and etc.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setEventAttributes(com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { + public Builder setEventAttributes( + com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { if (eventAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1626,6 +1783,8 @@ public Builder setEventAttributes(com.google.cloud.recommendationengine.v1beta1. return this; } /** + * + * *
                * Optional. Extra user event features to include in the recommendation
                * model.
          @@ -1635,7 +1794,9 @@ public Builder setEventAttributes(com.google.cloud.recommendationengine.v1beta1.
                * search, and etc.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEventAttributes( com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder builderForValue) { @@ -1649,6 +1810,8 @@ public Builder setEventAttributes( return this; } /** + * + * *
                * Optional. Extra user event features to include in the recommendation
                * model.
          @@ -1658,13 +1821,18 @@ public Builder setEventAttributes(
                * search, and etc.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeEventAttributes(com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { + public Builder mergeEventAttributes( + com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { if (eventAttributesBuilder_ == null) { if (eventAttributes_ != null) { eventAttributes_ = - com.google.cloud.recommendationengine.v1beta1.FeatureMap.newBuilder(eventAttributes_).mergeFrom(value).buildPartial(); + com.google.cloud.recommendationengine.v1beta1.FeatureMap.newBuilder(eventAttributes_) + .mergeFrom(value) + .buildPartial(); } else { eventAttributes_ = value; } @@ -1676,6 +1844,8 @@ public Builder mergeEventAttributes(com.google.cloud.recommendationengine.v1beta return this; } /** + * + * *
                * Optional. Extra user event features to include in the recommendation
                * model.
          @@ -1685,7 +1855,9 @@ public Builder mergeEventAttributes(com.google.cloud.recommendationengine.v1beta
                * search, and etc.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearEventAttributes() { if (eventAttributesBuilder_ == null) { @@ -1699,6 +1871,8 @@ public Builder clearEventAttributes() { return this; } /** + * + * *
                * Optional. Extra user event features to include in the recommendation
                * model.
          @@ -1708,14 +1882,19 @@ public Builder clearEventAttributes() {
                * search, and etc.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder getEventAttributesBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder + getEventAttributesBuilder() { + onChanged(); return getEventAttributesFieldBuilder().getBuilder(); } /** + * + * *
                * Optional. Extra user event features to include in the recommendation
                * model.
          @@ -1725,17 +1904,23 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder getEvent
                * search, and etc.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getEventAttributesOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder + getEventAttributesOrBuilder() { if (eventAttributesBuilder_ != null) { return eventAttributesBuilder_.getMessageOrBuilder(); } else { - return eventAttributes_ == null ? - com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() : eventAttributes_; + return eventAttributes_ == null + ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() + : eventAttributes_; } } /** + * + * *
                * Optional. Extra user event features to include in the recommendation
                * model.
          @@ -1745,24 +1930,29 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getEven
                * search, and etc.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.FeatureMap, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> + com.google.cloud.recommendationengine.v1beta1.FeatureMap, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, + com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> getEventAttributesFieldBuilder() { if (eventAttributesBuilder_ == null) { - eventAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.FeatureMap, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder>( - getEventAttributes(), - getParentForChildren(), - isClean()); + eventAttributesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.FeatureMap, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, + com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder>( + getEventAttributes(), getParentForChildren(), isClean()); eventAttributes_ = null; } return eventAttributesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1772,12 +1962,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.EventDetail) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.EventDetail) private static final com.google.cloud.recommendationengine.v1beta1.EventDetail DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.EventDetail(); } @@ -1786,16 +1976,16 @@ public static com.google.cloud.recommendationengine.v1beta1.EventDetail getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventDetail(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventDetail(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1810,6 +2000,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.recommendationengine.v1beta1.EventDetail getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetailOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetailOrBuilder.java similarity index 83% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetailOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetailOrBuilder.java index efa01dd3..83f965f8 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetailOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventDetailOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; -public interface EventDetailOrBuilder extends +public interface EventDetailOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.EventDetail) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Optional. Complete url (window.location.href) of the user's current page.
              * When using the JavaScript pixel, this value is filled in automatically.
          @@ -15,10 +33,13 @@ public interface EventDetailOrBuilder extends
              * 
          * * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
              * Optional. Complete url (window.location.href) of the user's current page.
              * When using the JavaScript pixel, this value is filled in automatically.
          @@ -26,34 +47,41 @@ public interface EventDetailOrBuilder extends
              * 
          * * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
              * Optional. The referrer url of the current page. When using
              * the JavaScript pixel, this value is filled in automatically.
              * 
          * * string referrer_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The referrerUri. */ java.lang.String getReferrerUri(); /** + * + * *
              * Optional. The referrer url of the current page. When using
              * the JavaScript pixel, this value is filled in automatically.
              * 
          * * string referrer_uri = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for referrerUri. */ - com.google.protobuf.ByteString - getReferrerUriBytes(); + com.google.protobuf.ByteString getReferrerUriBytes(); /** + * + * *
              * Optional. A unique id of a web page view.
              * This should be kept the same for all user events triggered from the same
          @@ -65,10 +93,13 @@ public interface EventDetailOrBuilder extends
              * 
          * * string page_view_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageViewId. */ java.lang.String getPageViewId(); /** + * + * *
              * Optional. A unique id of a web page view.
              * This should be kept the same for all user events triggered from the same
          @@ -80,12 +111,14 @@ public interface EventDetailOrBuilder extends
              * 
          * * string page_view_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageViewId. */ - com.google.protobuf.ByteString - getPageViewIdBytes(); + com.google.protobuf.ByteString getPageViewIdBytes(); /** + * + * *
              * Optional. A list of identifiers for the independent experiment groups
              * this user event belongs to. This is used to distinguish between user events
          @@ -94,11 +127,13 @@ public interface EventDetailOrBuilder extends
              * 
          * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the experimentIds. */ - java.util.List - getExperimentIdsList(); + java.util.List getExperimentIdsList(); /** + * + * *
              * Optional. A list of identifiers for the independent experiment groups
              * this user event belongs to. This is used to distinguish between user events
          @@ -107,10 +142,13 @@ public interface EventDetailOrBuilder extends
              * 
          * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of experimentIds. */ int getExperimentIdsCount(); /** + * + * *
              * Optional. A list of identifiers for the independent experiment groups
              * this user event belongs to. This is used to distinguish between user events
          @@ -119,11 +157,14 @@ public interface EventDetailOrBuilder extends
              * 
          * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The experimentIds at the given index. */ java.lang.String getExperimentIds(int index); /** + * + * *
              * Optional. A list of identifiers for the independent experiment groups
              * this user event belongs to. This is used to distinguish between user events
          @@ -132,13 +173,15 @@ public interface EventDetailOrBuilder extends
              * 
          * * repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the experimentIds at the given index. */ - com.google.protobuf.ByteString - getExperimentIdsBytes(int index); + com.google.protobuf.ByteString getExperimentIdsBytes(int index); /** + * + * *
              * Optional. Recommendation token included in the recommendation prediction
              * response.
          @@ -155,10 +198,13 @@ public interface EventDetailOrBuilder extends
              * 
          * * string recommendation_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The recommendationToken. */ java.lang.String getRecommendationToken(); /** + * + * *
              * Optional. Recommendation token included in the recommendation prediction
              * response.
          @@ -175,12 +221,14 @@ public interface EventDetailOrBuilder extends
              * 
          * * string recommendation_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for recommendationToken. */ - com.google.protobuf.ByteString - getRecommendationTokenBytes(); + com.google.protobuf.ByteString getRecommendationTokenBytes(); /** + * + * *
              * Optional. Extra user event features to include in the recommendation
              * model.
          @@ -190,11 +238,16 @@ public interface EventDetailOrBuilder extends
              * search, and etc.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the eventAttributes field is set. */ boolean hasEventAttributes(); /** + * + * *
              * Optional. Extra user event features to include in the recommendation
              * model.
          @@ -204,11 +257,16 @@ public interface EventDetailOrBuilder extends
              * search, and etc.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventAttributes. */ com.google.cloud.recommendationengine.v1beta1.FeatureMap getEventAttributes(); /** + * + * *
              * Optional. Extra user event features to include in the recommendation
              * model.
          @@ -218,7 +276,9 @@ public interface EventDetailOrBuilder extends
              * search, and etc.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getEventAttributesOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventStoreName.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventStoreName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventStoreName.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/EventStoreName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMap.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMap.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMap.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMap.java index da78ca19..ec777599 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMap.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMap.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/common.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * FeatureMap represents extra features that customers want to include in the
            * recommendation model for catalogs/user events as categorical/numerical
          @@ -12,30 +29,29 @@
            *
            * Protobuf type {@code google.cloud.recommendationengine.v1beta1.FeatureMap}
            */
          -public final class FeatureMap extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class FeatureMap extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.FeatureMap)
               FeatureMapOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use FeatureMap.newBuilder() to construct.
             private FeatureMap(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -  private FeatureMap() {
          -  }
          +
          +  private FeatureMap() {}
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new FeatureMap();
             }
           
             @java.lang.Override
          -  public final com.google.protobuf.UnknownFieldSet
          -  getUnknownFields() {
          +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
               return this.unknownFields;
             }
          +
             private FeatureMap(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          @@ -55,39 +71,53 @@ private FeatureMap(
                     case 0:
                       done = true;
                       break;
          -          case 10: {
          -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          -              categoricalFeatures_ = com.google.protobuf.MapField.newMapField(
          -                  CategoricalFeaturesDefaultEntryHolder.defaultEntry);
          -              mutable_bitField0_ |= 0x00000001;
          +          case 10:
          +            {
          +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          +                categoricalFeatures_ =
          +                    com.google.protobuf.MapField.newMapField(
          +                        CategoricalFeaturesDefaultEntryHolder.defaultEntry);
          +                mutable_bitField0_ |= 0x00000001;
          +              }
          +              com.google.protobuf.MapEntry<
          +                      java.lang.String,
          +                      com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList>
          +                  categoricalFeatures__ =
          +                      input.readMessage(
          +                          CategoricalFeaturesDefaultEntryHolder.defaultEntry.getParserForType(),
          +                          extensionRegistry);
          +              categoricalFeatures_
          +                  .getMutableMap()
          +                  .put(categoricalFeatures__.getKey(), categoricalFeatures__.getValue());
          +              break;
                       }
          -            com.google.protobuf.MapEntry
          -            categoricalFeatures__ = input.readMessage(
          -                CategoricalFeaturesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
          -            categoricalFeatures_.getMutableMap().put(
          -                categoricalFeatures__.getKey(), categoricalFeatures__.getValue());
          -            break;
          -          }
          -          case 18: {
          -            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
          -              numericalFeatures_ = com.google.protobuf.MapField.newMapField(
          -                  NumericalFeaturesDefaultEntryHolder.defaultEntry);
          -              mutable_bitField0_ |= 0x00000002;
          +          case 18:
          +            {
          +              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
          +                numericalFeatures_ =
          +                    com.google.protobuf.MapField.newMapField(
          +                        NumericalFeaturesDefaultEntryHolder.defaultEntry);
          +                mutable_bitField0_ |= 0x00000002;
          +              }
          +              com.google.protobuf.MapEntry<
          +                      java.lang.String,
          +                      com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList>
          +                  numericalFeatures__ =
          +                      input.readMessage(
          +                          NumericalFeaturesDefaultEntryHolder.defaultEntry.getParserForType(),
          +                          extensionRegistry);
          +              numericalFeatures_
          +                  .getMutableMap()
          +                  .put(numericalFeatures__.getKey(), numericalFeatures__.getValue());
          +              break;
                       }
          -            com.google.protobuf.MapEntry
          -            numericalFeatures__ = input.readMessage(
          -                NumericalFeaturesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
          -            numericalFeatures_.getMutableMap().put(
          -                numericalFeatures__.getKey(), numericalFeatures__.getValue());
          -            break;
          -          }
          -          default: {
          -            if (!parseUnknownField(
          -                input, unknownFields, extensionRegistry, tag)) {
          -              done = true;
          +          default:
          +            {
          +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
          +                done = true;
          +              }
          +              break;
                       }
          -            break;
          -          }
                   }
                 }
               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          @@ -95,117 +125,131 @@ private FeatureMap(
               } catch (com.google.protobuf.UninitializedMessageException e) {
                 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
               } catch (java.io.IOException e) {
          -      throw new com.google.protobuf.InvalidProtocolBufferException(
          -          e).setUnfinishedMessage(this);
          +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
               } finally {
                 this.unknownFields = unknownFields.build();
                 makeExtensionsImmutable();
               }
             }
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor;
          +
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.cloud.recommendationengine.v1beta1.Common
          +        .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor;
             }
           
             @SuppressWarnings({"rawtypes"})
             @java.lang.Override
          -  protected com.google.protobuf.MapField internalGetMapField(
          -      int number) {
          +  protected com.google.protobuf.MapField internalGetMapField(int number) {
               switch (number) {
                 case 1:
                   return internalGetCategoricalFeatures();
                 case 2:
                   return internalGetNumericalFeatures();
                 default:
          -        throw new RuntimeException(
          -            "Invalid map field number: " + number);
          +        throw new RuntimeException("Invalid map field number: " + number);
               }
             }
          +
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_fieldAccessorTable
          +    return com.google.cloud.recommendationengine.v1beta1.Common
          +        .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.cloud.recommendationengine.v1beta1.FeatureMap.class, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder.class);
          +            com.google.cloud.recommendationengine.v1beta1.FeatureMap.class,
          +            com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder.class);
             }
           
          -  public interface StringListOrBuilder extends
          +  public interface StringListOrBuilder
          +      extends
                 // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.FeatureMap.StringList)
                 com.google.protobuf.MessageOrBuilder {
           
               /**
          +     *
          +     *
                * 
                * String feature value with a length limit of 128 bytes.
                * 
          * * repeated string value = 1; + * * @return A list containing the value. */ - java.util.List - getValueList(); + java.util.List getValueList(); /** + * + * *
                * String feature value with a length limit of 128 bytes.
                * 
          * * repeated string value = 1; + * * @return The count of value. */ int getValueCount(); /** + * + * *
                * String feature value with a length limit of 128 bytes.
                * 
          * * repeated string value = 1; + * * @param index The index of the element to return. * @return The value at the given index. */ java.lang.String getValue(int index); /** + * + * *
                * String feature value with a length limit of 128 bytes.
                * 
          * * repeated string value = 1; + * * @param index The index of the value to return. * @return The bytes of the value at the given index. */ - com.google.protobuf.ByteString - getValueBytes(int index); + com.google.protobuf.ByteString getValueBytes(int index); } /** + * + * *
              * A list of string features.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.FeatureMap.StringList} */ - public static final class StringList extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class StringList extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.FeatureMap.StringList) StringListOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StringList.newBuilder() to construct. private StringList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StringList() { value_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StringList(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StringList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -225,22 +269,23 @@ private StringList( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - value_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + value_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + value_.add(s); + break; } - value_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -248,8 +293,7 @@ private StringList( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { value_ = value_.getUnmodifiableView(); @@ -258,50 +302,61 @@ private StringList( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Common + .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Common + .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.class, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.Builder.class); + com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.class, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList value_; /** + * + * *
                * String feature value with a length limit of 128 bytes.
                * 
          * * repeated string value = 1; + * * @return A list containing the value. */ - public com.google.protobuf.ProtocolStringList - getValueList() { + public com.google.protobuf.ProtocolStringList getValueList() { return value_; } /** + * + * *
                * String feature value with a length limit of 128 bytes.
                * 
          * * repeated string value = 1; + * * @return The count of value. */ public int getValueCount() { return value_.size(); } /** + * + * *
                * String feature value with a length limit of 128 bytes.
                * 
          * * repeated string value = 1; + * * @param index The index of the element to return. * @return The value at the given index. */ @@ -309,20 +364,23 @@ public java.lang.String getValue(int index) { return value_.get(index); } /** + * + * *
                * String feature value with a length limit of 128 bytes.
                * 
          * * repeated string value = 1; + * * @param index The index of the value to return. * @return The bytes of the value at the given index. */ - public com.google.protobuf.ByteString - getValueBytes(int index) { + public com.google.protobuf.ByteString getValueBytes(int index) { return value_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -334,8 +392,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < value_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_.getRaw(i)); } @@ -364,15 +421,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList other = (com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList) obj; + com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList other = + (com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList) obj; - if (!getValueList() - .equals(other.getValueList())) return false; + if (!getValueList().equals(other.getValueList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -394,87 +451,95 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -484,44 +549,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                * A list of string features.
                * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.FeatureMap.StringList} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.FeatureMap.StringList) com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Common + .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Common + .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.class, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.Builder.class); + com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.class, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.Builder.class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -531,14 +601,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Common + .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_StringList_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList + .getDefaultInstance(); } @java.lang.Override @@ -552,7 +624,8 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList build @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList buildPartial() { - com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList result = new com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList(this); + com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList result = + new com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { value_ = value_.getUnmodifiableView(); @@ -567,46 +640,53 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList)other); + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList other) { - if (other == com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList + .getDefaultInstance()) return this; if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; @@ -636,7 +716,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -645,44 +727,55 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList value_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList value_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { value_ = new com.google.protobuf.LazyStringArrayList(value_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
                  * String feature value with a length limit of 128 bytes.
                  * 
          * * repeated string value = 1; + * * @return A list containing the value. */ - public com.google.protobuf.ProtocolStringList - getValueList() { + public com.google.protobuf.ProtocolStringList getValueList() { return value_.getUnmodifiableView(); } /** + * + * *
                  * String feature value with a length limit of 128 bytes.
                  * 
          * * repeated string value = 1; + * * @return The count of value. */ public int getValueCount() { return value_.size(); } /** + * + * *
                  * String feature value with a length limit of 128 bytes.
                  * 
          * * repeated string value = 1; + * * @param index The index of the element to return. * @return The value at the given index. */ @@ -690,80 +783,90 @@ public java.lang.String getValue(int index) { return value_.get(index); } /** + * + * *
                  * String feature value with a length limit of 128 bytes.
                  * 
          * * repeated string value = 1; + * * @param index The index of the value to return. * @return The bytes of the value at the given index. */ - public com.google.protobuf.ByteString - getValueBytes(int index) { + public com.google.protobuf.ByteString getValueBytes(int index) { return value_.getByteString(index); } /** + * + * *
                  * String feature value with a length limit of 128 bytes.
                  * 
          * * repeated string value = 1; + * * @param index The index to set the value at. * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - int index, java.lang.String value) { + public Builder setValue(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValueIsMutable(); + throw new NullPointerException(); + } + ensureValueIsMutable(); value_.set(index, value); onChanged(); return this; } /** + * + * *
                  * String feature value with a length limit of 128 bytes.
                  * 
          * * repeated string value = 1; + * * @param value The value to add. * @return This builder for chaining. */ - public Builder addValue( - java.lang.String value) { + public Builder addValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValueIsMutable(); + throw new NullPointerException(); + } + ensureValueIsMutable(); value_.add(value); onChanged(); return this; } /** + * + * *
                  * String feature value with a length limit of 128 bytes.
                  * 
          * * repeated string value = 1; + * * @param values The value to add. * @return This builder for chaining. */ - public Builder addAllValue( - java.lang.Iterable values) { + public Builder addAllValue(java.lang.Iterable values) { ensureValueIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, value_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, value_); onChanged(); return this; } /** + * + * *
                  * String feature value with a length limit of 128 bytes.
                  * 
          * * repeated string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -773,25 +876,28 @@ public Builder clearValue() { return this; } /** + * + * *
                  * String feature value with a length limit of 128 bytes.
                  * 
          * * repeated string value = 1; + * * @param value The bytes of the value to add. * @return This builder for chaining. */ - public Builder addValueBytes( - com.google.protobuf.ByteString value) { + public Builder addValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureValueIsMutable(); value_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -804,30 +910,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.FeatureMap.StringList) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.FeatureMap.StringList) - private static final com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList(); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StringList(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StringList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StringList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -839,77 +947,89 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface FloatListOrBuilder extends + public interface FloatListOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Float feature value.
                * 
          * * repeated float value = 1; + * * @return A list containing the value. */ java.util.List getValueList(); /** + * + * *
                * Float feature value.
                * 
          * * repeated float value = 1; + * * @return The count of value. */ int getValueCount(); /** + * + * *
                * Float feature value.
                * 
          * * repeated float value = 1; + * * @param index The index of the element to return. * @return The value at the given index. */ float getValue(int index); } /** + * + * *
              * A list of float features.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList} */ - public static final class FloatList extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class FloatList extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) FloatListOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FloatList.newBuilder() to construct. private FloatList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FloatList() { value_ = emptyFloatList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FloatList(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private FloatList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -929,34 +1049,36 @@ private FloatList( case 0: done = true; break; - case 13: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - value_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - value_.addFloat(input.readFloat()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - value_ = newFloatList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { + case 13: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + value_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; + } value_.addFloat(input.readFloat()); + break; } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { + value_ = newFloatList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + value_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -964,8 +1086,7 @@ private FloatList( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { value_.makeImmutable(); // C @@ -974,60 +1095,73 @@ private FloatList( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Common + .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Common + .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.class, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.Builder.class); + com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.class, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private com.google.protobuf.Internal.FloatList value_; /** + * + * *
                * Float feature value.
                * 
          * * repeated float value = 1; + * * @return A list containing the value. */ @java.lang.Override - public java.util.List - getValueList() { + public java.util.List getValueList() { return value_; } /** + * + * *
                * Float feature value.
                * 
          * * repeated float value = 1; + * * @return The count of value. */ public int getValueCount() { return value_.size(); } /** + * + * *
                * Float feature value.
                * 
          * * repeated float value = 1; + * * @param index The index of the element to return. * @return The value at the given index. */ public float getValue(int index) { return value_.getFloat(index); } + private int valueMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1039,8 +1173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getValueList().size() > 0) { output.writeUInt32NoTag(10); @@ -1064,8 +1197,7 @@ public int getSerializedSize() { size += dataSize; if (!getValueList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } valueMemoizedSerializedSize = dataSize; } @@ -1077,15 +1209,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList other = (com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) obj; + com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList other = + (com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) obj; - if (!getValueList() - .equals(other.getValueList())) return false; + if (!getValueList().equals(other.getValueList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1107,87 +1239,95 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1197,44 +1337,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                * A list of float features.
                * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Common + .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Common + .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.class, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.Builder.class); + com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.class, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.Builder.class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1244,14 +1389,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Common + .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_FloatList_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList + .getDefaultInstance(); } @java.lang.Override @@ -1265,7 +1412,8 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList build( @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList buildPartial() { - com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList result = new com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList(this); + com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList result = + new com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { value_.makeImmutable(); @@ -1280,46 +1428,53 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList)other); + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList other) { - if (other == com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList + .getDefaultInstance()) return this; if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; @@ -1349,7 +1504,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1358,45 +1515,56 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.Internal.FloatList value_ = emptyFloatList(); + private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { value_ = mutableCopy(value_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
                  * Float feature value.
                  * 
          * * repeated float value = 1; + * * @return A list containing the value. */ - public java.util.List - getValueList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(value_) : value_; + public java.util.List getValueList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(value_) + : value_; } /** + * + * *
                  * Float feature value.
                  * 
          * * repeated float value = 1; + * * @return The count of value. */ public int getValueCount() { return value_.size(); } /** + * + * *
                  * Float feature value.
                  * 
          * * repeated float value = 1; + * * @param index The index of the element to return. * @return The value at the given index. */ @@ -1404,28 +1572,33 @@ public float getValue(int index) { return value_.getFloat(index); } /** + * + * *
                  * Float feature value.
                  * 
          * * repeated float value = 1; + * * @param index The index to set the value at. * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - int index, float value) { + public Builder setValue(int index, float value) { ensureValueIsMutable(); value_.setFloat(index, value); onChanged(); return this; } /** + * + * *
                  * Float feature value.
                  * 
          * * repeated float value = 1; + * * @param value The value to add. * @return This builder for chaining. */ @@ -1436,28 +1609,32 @@ public Builder addValue(float value) { return this; } /** + * + * *
                  * Float feature value.
                  * 
          * * repeated float value = 1; + * * @param values The value to add. * @return This builder for chaining. */ - public Builder addAllValue( - java.lang.Iterable values) { + public Builder addAllValue(java.lang.Iterable values) { ensureValueIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, value_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, value_); onChanged(); return this; } /** + * + * *
                  * Float feature value.
                  * 
          * * repeated float value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -1466,6 +1643,7 @@ public Builder clearValue() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1478,30 +1656,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList) - private static final com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList(); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FloatList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FloatList(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FloatList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FloatList(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1513,28 +1693,38 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int CATEGORICAL_FEATURES_FIELD_NUMBER = 1; + private static final class CategoricalFeaturesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> defaultEntry = + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.recommendationengine.v1beta1.Common + .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_CategoricalFeaturesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList + .getDefaultInstance()); } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> + categoricalFeatures_; + private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categoricalFeatures_; - private com.google.protobuf.MapField - internalGetCategoricalFeatures() { + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> + internalGetCategoricalFeatures() { if (categoricalFeatures_ == null) { return com.google.protobuf.MapField.emptyMapField( CategoricalFeaturesDefaultEntryHolder.defaultEntry); @@ -1546,6 +1736,8 @@ public int getCategoricalFeaturesCount() { return internalGetCategoricalFeatures().getMap().size(); } /** + * + * *
              * Categorical features that can take on one of a limited number of possible
              * values. Some examples would be the brand/maker of a product, or country of
          @@ -1555,24 +1747,28 @@ public int getCategoricalFeaturesCount() {
              *                 "sizes": {"value":["S", "M"]}`
              * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * */ - @java.lang.Override - public boolean containsCategoricalFeatures( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsCategoricalFeatures(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetCategoricalFeatures().getMap().containsKey(key); } - /** - * Use {@link #getCategoricalFeaturesMap()} instead. - */ + /** Use {@link #getCategoricalFeaturesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getCategoricalFeatures() { + public java.util.Map< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> + getCategoricalFeatures() { return getCategoricalFeaturesMap(); } /** + * + * *
              * Categorical features that can take on one of a limited number of possible
              * values. Some examples would be the brand/maker of a product, or country of
          @@ -1582,14 +1778,19 @@ public java.util.Map
              *
          -   * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1;
          +   * 
          +   * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1;
          +   * 
              */
             @java.lang.Override
          -
          -  public java.util.Map getCategoricalFeaturesMap() {
          +  public java.util.Map<
          +          java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList>
          +      getCategoricalFeaturesMap() {
               return internalGetCategoricalFeatures().getMap();
             }
             /**
          +   *
          +   *
              * 
              * Categorical features that can take on one of a limited number of possible
              * values. Some examples would be the brand/maker of a product, or country of
          @@ -1599,19 +1800,26 @@ public java.util.Map
              *
          -   * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1;
          +   * 
          +   * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1;
          +   * 
              */
             @java.lang.Override
          -
          -  public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCategoricalFeaturesOrDefault(
          -      java.lang.String key,
          -      com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList defaultValue) {
          -    if (key == null) { throw new NullPointerException("map key"); }
          -    java.util.Map map =
          -        internalGetCategoricalFeatures().getMap();
          +  public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList
          +      getCategoricalFeaturesOrDefault(
          +          java.lang.String key,
          +          com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList defaultValue) {
          +    if (key == null) {
          +      throw new NullPointerException("map key");
          +    }
          +    java.util.Map<
          +            java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList>
          +        map = internalGetCategoricalFeatures().getMap();
               return map.containsKey(key) ? map.get(key) : defaultValue;
             }
             /**
          +   *
          +   *
              * 
              * Categorical features that can take on one of a limited number of possible
              * values. Some examples would be the brand/maker of a product, or country of
          @@ -1621,15 +1829,19 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCa
              *                 "sizes": {"value":["S", "M"]}`
              * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * */ @java.lang.Override - - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCategoricalFeaturesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCategoricalFeatures().getMap(); + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList + getCategoricalFeaturesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> + map = internalGetCategoricalFeatures().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1637,21 +1849,31 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCa } public static final int NUMERICAL_FEATURES_FIELD_NUMBER = 2; + private static final class NumericalFeaturesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> defaultEntry = + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.recommendationengine.v1beta1.Common + .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_NumericalFeaturesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList + .getDefaultInstance()); } + private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numericalFeatures_; - private com.google.protobuf.MapField - internalGetNumericalFeatures() { + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> + numericalFeatures_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> + internalGetNumericalFeatures() { if (numericalFeatures_ == null) { return com.google.protobuf.MapField.emptyMapField( NumericalFeaturesDefaultEntryHolder.defaultEntry); @@ -1663,6 +1885,8 @@ public int getNumericalFeaturesCount() { return internalGetNumericalFeatures().getMap().size(); } /** + * + * *
              * Numerical features. Some examples would be the height/weight of a product,
              * or age of a customer.
          @@ -1671,24 +1895,28 @@ public int getNumericalFeaturesCount() {
              *                 "heights_cm": {"value":[8.1, 6.4]} }`
              * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * */ - @java.lang.Override - public boolean containsNumericalFeatures( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsNumericalFeatures(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetNumericalFeatures().getMap().containsKey(key); } - /** - * Use {@link #getNumericalFeaturesMap()} instead. - */ + /** Use {@link #getNumericalFeaturesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getNumericalFeatures() { + public java.util.Map< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> + getNumericalFeatures() { return getNumericalFeaturesMap(); } /** + * + * *
              * Numerical features. Some examples would be the height/weight of a product,
              * or age of a customer.
          @@ -1697,14 +1925,19 @@ public java.util.Map
              *
          -   * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2;
          +   * 
          +   * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2;
          +   * 
              */
             @java.lang.Override
          -
          -  public java.util.Map getNumericalFeaturesMap() {
          +  public java.util.Map<
          +          java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList>
          +      getNumericalFeaturesMap() {
               return internalGetNumericalFeatures().getMap();
             }
             /**
          +   *
          +   *
              * 
              * Numerical features. Some examples would be the height/weight of a product,
              * or age of a customer.
          @@ -1713,19 +1946,26 @@ public java.util.Map
              *
          -   * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2;
          +   * 
          +   * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2;
          +   * 
              */
             @java.lang.Override
          -
          -  public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getNumericalFeaturesOrDefault(
          -      java.lang.String key,
          -      com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList defaultValue) {
          -    if (key == null) { throw new NullPointerException("map key"); }
          -    java.util.Map map =
          -        internalGetNumericalFeatures().getMap();
          +  public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList
          +      getNumericalFeaturesOrDefault(
          +          java.lang.String key,
          +          com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList defaultValue) {
          +    if (key == null) {
          +      throw new NullPointerException("map key");
          +    }
          +    java.util.Map<
          +            java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList>
          +        map = internalGetNumericalFeatures().getMap();
               return map.containsKey(key) ? map.get(key) : defaultValue;
             }
             /**
          +   *
          +   *
              * 
              * Numerical features. Some examples would be the height/weight of a product,
              * or age of a customer.
          @@ -1734,15 +1974,19 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getNum
              *                 "heights_cm": {"value":[8.1, 6.4]} }`
              * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * */ @java.lang.Override - - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getNumericalFeaturesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetNumericalFeatures().getMap(); + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList + getNumericalFeaturesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> + map = internalGetNumericalFeatures().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1750,6 +1994,7 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getNum } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1761,16 +2006,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetCategoricalFeatures(), CategoricalFeaturesDefaultEntryHolder.defaultEntry, 1); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetNumericalFeatures(), NumericalFeaturesDefaultEntryHolder.defaultEntry, @@ -1784,25 +2026,31 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetCategoricalFeatures().getMap().entrySet()) { - com.google.protobuf.MapEntry - categoricalFeatures__ = CategoricalFeaturesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, categoricalFeatures__); - } - for (java.util.Map.Entry entry - : internalGetNumericalFeatures().getMap().entrySet()) { - com.google.protobuf.MapEntry - numericalFeatures__ = NumericalFeaturesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, numericalFeatures__); + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> + entry : internalGetCategoricalFeatures().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> + categoricalFeatures__ = + CategoricalFeaturesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, categoricalFeatures__); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> + entry : internalGetNumericalFeatures().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> + numericalFeatures__ = + NumericalFeaturesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, numericalFeatures__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1812,17 +2060,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.FeatureMap)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.FeatureMap other = (com.google.cloud.recommendationengine.v1beta1.FeatureMap) obj; + com.google.cloud.recommendationengine.v1beta1.FeatureMap other = + (com.google.cloud.recommendationengine.v1beta1.FeatureMap) obj; - if (!internalGetCategoricalFeatures().equals( - other.internalGetCategoricalFeatures())) return false; - if (!internalGetNumericalFeatures().equals( - other.internalGetNumericalFeatures())) return false; + if (!internalGetCategoricalFeatures().equals(other.internalGetCategoricalFeatures())) + return false; + if (!internalGetNumericalFeatures().equals(other.internalGetNumericalFeatures())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1848,96 +2096,104 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.FeatureMap parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.FeatureMap prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.FeatureMap prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * FeatureMap represents extra features that customers want to include in the
              * recommendation model for catalogs/user events as categorical/numerical
          @@ -1946,47 +2202,47 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.cloud.recommendationengine.v1beta1.FeatureMap}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.FeatureMap)
                 com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.cloud.recommendationengine.v1beta1.Common
          +          .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor;
               }
           
               @SuppressWarnings({"rawtypes"})
          -    protected com.google.protobuf.MapField internalGetMapField(
          -        int number) {
          +    protected com.google.protobuf.MapField internalGetMapField(int number) {
                 switch (number) {
                   case 1:
                     return internalGetCategoricalFeatures();
                   case 2:
                     return internalGetNumericalFeatures();
                   default:
          -          throw new RuntimeException(
          -              "Invalid map field number: " + number);
          +          throw new RuntimeException("Invalid map field number: " + number);
                 }
               }
          +
               @SuppressWarnings({"rawtypes"})
          -    protected com.google.protobuf.MapField internalGetMutableMapField(
          -        int number) {
          +    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
                 switch (number) {
                   case 1:
                     return internalGetMutableCategoricalFeatures();
                   case 2:
                     return internalGetMutableNumericalFeatures();
                   default:
          -          throw new RuntimeException(
          -              "Invalid map field number: " + number);
          +          throw new RuntimeException("Invalid map field number: " + number);
                 }
               }
          +
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_fieldAccessorTable
          +      return com.google.cloud.recommendationengine.v1beta1.Common
          +          .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.cloud.recommendationengine.v1beta1.FeatureMap.class, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder.class);
          +              com.google.cloud.recommendationengine.v1beta1.FeatureMap.class,
          +              com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder.class);
               }
           
               // Construct using com.google.cloud.recommendationengine.v1beta1.FeatureMap.newBuilder()
          @@ -1994,16 +2250,15 @@ private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          +
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3
          -              .alwaysUseFieldBuilders) {
          -      }
          +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -2013,9 +2268,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.cloud.recommendationengine.v1beta1.Common.internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.cloud.recommendationengine.v1beta1.Common
          +          .internal_static_google_cloud_recommendationengine_v1beta1_FeatureMap_descriptor;
               }
           
               @java.lang.Override
          @@ -2034,7 +2289,8 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap build() {
           
               @java.lang.Override
               public com.google.cloud.recommendationengine.v1beta1.FeatureMap buildPartial() {
          -      com.google.cloud.recommendationengine.v1beta1.FeatureMap result = new com.google.cloud.recommendationengine.v1beta1.FeatureMap(this);
          +      com.google.cloud.recommendationengine.v1beta1.FeatureMap result =
          +          new com.google.cloud.recommendationengine.v1beta1.FeatureMap(this);
                 int from_bitField0_ = bitField0_;
                 result.categoricalFeatures_ = internalGetCategoricalFeatures();
                 result.categoricalFeatures_.makeImmutable();
          @@ -2048,38 +2304,39 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap buildPartial() {
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                 return super.setField(field, value);
               }
          +
               @java.lang.Override
          -    public Builder clearField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field) {
          +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                 return super.clearField(field);
               }
          +
               @java.lang.Override
          -    public Builder clearOneof(
          -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
          +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                 return super.clearOneof(oneof);
               }
          +
               @java.lang.Override
               public Builder setRepeatedField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        int index, java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                 return super.setRepeatedField(field, index, value);
               }
          +
               @java.lang.Override
               public Builder addRepeatedField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                 return super.addRepeatedField(field, value);
               }
          +
               @java.lang.Override
               public Builder mergeFrom(com.google.protobuf.Message other) {
                 if (other instanceof com.google.cloud.recommendationengine.v1beta1.FeatureMap) {
          -        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.FeatureMap)other);
          +        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.FeatureMap) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -2087,11 +2344,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.FeatureMap other) {
          -      if (other == com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance()) return this;
          -      internalGetMutableCategoricalFeatures().mergeFrom(
          -          other.internalGetCategoricalFeatures());
          -      internalGetMutableNumericalFeatures().mergeFrom(
          -          other.internalGetNumericalFeatures());
          +      if (other == com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance())
          +        return this;
          +      internalGetMutableCategoricalFeatures().mergeFrom(other.internalGetCategoricalFeatures());
          +      internalGetMutableNumericalFeatures().mergeFrom(other.internalGetNumericalFeatures());
                 this.mergeUnknownFields(other.unknownFields);
                 onChanged();
                 return this;
          @@ -2111,7 +2367,8 @@ public Builder mergeFrom(
                 try {
                   parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          -        parsedMessage = (com.google.cloud.recommendationengine.v1beta1.FeatureMap) e.getUnfinishedMessage();
          +        parsedMessage =
          +            (com.google.cloud.recommendationengine.v1beta1.FeatureMap) e.getUnfinishedMessage();
                   throw e.unwrapIOException();
                 } finally {
                   if (parsedMessage != null) {
          @@ -2120,24 +2377,32 @@ public Builder mergeFrom(
                 }
                 return this;
               }
          +
               private int bitField0_;
           
               private com.google.protobuf.MapField<
          -        java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categoricalFeatures_;
          -    private com.google.protobuf.MapField
          -    internalGetCategoricalFeatures() {
          +            java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList>
          +        categoricalFeatures_;
          +
          +    private com.google.protobuf.MapField<
          +            java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList>
          +        internalGetCategoricalFeatures() {
                 if (categoricalFeatures_ == null) {
                   return com.google.protobuf.MapField.emptyMapField(
                       CategoricalFeaturesDefaultEntryHolder.defaultEntry);
                 }
                 return categoricalFeatures_;
               }
          -    private com.google.protobuf.MapField
          -    internalGetMutableCategoricalFeatures() {
          -      onChanged();;
          +
          +    private com.google.protobuf.MapField<
          +            java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList>
          +        internalGetMutableCategoricalFeatures() {
          +      onChanged();
          +      ;
                 if (categoricalFeatures_ == null) {
          -        categoricalFeatures_ = com.google.protobuf.MapField.newMapField(
          -            CategoricalFeaturesDefaultEntryHolder.defaultEntry);
          +        categoricalFeatures_ =
          +            com.google.protobuf.MapField.newMapField(
          +                CategoricalFeaturesDefaultEntryHolder.defaultEntry);
                 }
                 if (!categoricalFeatures_.isMutable()) {
                   categoricalFeatures_ = categoricalFeatures_.copy();
          @@ -2149,6 +2414,8 @@ public int getCategoricalFeaturesCount() {
                 return internalGetCategoricalFeatures().getMap().size();
               }
               /**
          +     *
          +     *
                * 
                * Categorical features that can take on one of a limited number of possible
                * values. Some examples would be the brand/maker of a product, or country of
          @@ -2158,24 +2425,28 @@ public int getCategoricalFeaturesCount() {
                *                 "sizes": {"value":["S", "M"]}`
                * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * */ - @java.lang.Override - public boolean containsCategoricalFeatures( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsCategoricalFeatures(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetCategoricalFeatures().getMap().containsKey(key); } - /** - * Use {@link #getCategoricalFeaturesMap()} instead. - */ + /** Use {@link #getCategoricalFeaturesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getCategoricalFeatures() { + public java.util.Map< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> + getCategoricalFeatures() { return getCategoricalFeaturesMap(); } /** + * + * *
                * Categorical features that can take on one of a limited number of possible
                * values. Some examples would be the brand/maker of a product, or country of
          @@ -2185,14 +2456,19 @@ public java.util.Map
                *
          -     * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1;
          +     * 
          +     * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1;
          +     * 
                */
               @java.lang.Override
          -
          -    public java.util.Map getCategoricalFeaturesMap() {
          +    public java.util.Map<
          +            java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList>
          +        getCategoricalFeaturesMap() {
                 return internalGetCategoricalFeatures().getMap();
               }
               /**
          +     *
          +     *
                * 
                * Categorical features that can take on one of a limited number of possible
                * values. Some examples would be the brand/maker of a product, or country of
          @@ -2202,19 +2478,26 @@ public java.util.Map
                *
          -     * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1;
          +     * 
          +     * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1;
          +     * 
                */
               @java.lang.Override
          -
          -    public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCategoricalFeaturesOrDefault(
          -        java.lang.String key,
          -        com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList defaultValue) {
          -      if (key == null) { throw new NullPointerException("map key"); }
          -      java.util.Map map =
          -          internalGetCategoricalFeatures().getMap();
          +    public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList
          +        getCategoricalFeaturesOrDefault(
          +            java.lang.String key,
          +            com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList defaultValue) {
          +      if (key == null) {
          +        throw new NullPointerException("map key");
          +      }
          +      java.util.Map<
          +              java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList>
          +          map = internalGetCategoricalFeatures().getMap();
                 return map.containsKey(key) ? map.get(key) : defaultValue;
               }
               /**
          +     *
          +     *
                * 
                * Categorical features that can take on one of a limited number of possible
                * values. Some examples would be the brand/maker of a product, or country of
          @@ -2224,15 +2507,19 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCa
                *                 "sizes": {"value":["S", "M"]}`
                * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * */ @java.lang.Override - - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCategoricalFeaturesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCategoricalFeatures().getMap(); + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList + getCategoricalFeaturesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> + map = internalGetCategoricalFeatures().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2240,11 +2527,12 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCa } public Builder clearCategoricalFeatures() { - internalGetMutableCategoricalFeatures().getMutableMap() - .clear(); + internalGetMutableCategoricalFeatures().getMutableMap().clear(); return this; } /** + * + * *
                * Categorical features that can take on one of a limited number of possible
                * values. Some examples would be the brand/maker of a product, or country of
          @@ -2254,25 +2542,27 @@ public Builder clearCategoricalFeatures() {
                *                 "sizes": {"value":["S", "M"]}`
                * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * */ - - public Builder removeCategoricalFeatures( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableCategoricalFeatures().getMutableMap() - .remove(key); + public Builder removeCategoricalFeatures(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableCategoricalFeatures().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableCategoricalFeatures() { + public java.util.Map< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> + getMutableCategoricalFeatures() { return internalGetMutableCategoricalFeatures().getMutableMap(); } /** + * + * *
                * Categorical features that can take on one of a limited number of possible
                * values. Some examples would be the brand/maker of a product, or country of
          @@ -2282,21 +2572,26 @@ public Builder removeCategoricalFeatures(
                *                 "sizes": {"value":["S", "M"]}`
                * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * */ public Builder putCategoricalFeatures( java.lang.String key, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList value) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableCategoricalFeatures().getMutableMap() - .put(key, value); + internalGetMutableCategoricalFeatures().getMutableMap().put(key, value); return this; } /** + * + * *
                * Categorical features that can take on one of a limited number of possible
                * values. Some examples would be the brand/maker of a product, or country of
          @@ -2306,32 +2601,42 @@ public Builder putCategoricalFeatures(
                *                 "sizes": {"value":["S", "M"]}`
                * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * */ - public Builder putAllCategoricalFeatures( - java.util.Map values) { - internalGetMutableCategoricalFeatures().getMutableMap() - .putAll(values); + java.util.Map< + java.lang.String, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> + values) { + internalGetMutableCategoricalFeatures().getMutableMap().putAll(values); return this; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numericalFeatures_; - private com.google.protobuf.MapField - internalGetNumericalFeatures() { + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> + numericalFeatures_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> + internalGetNumericalFeatures() { if (numericalFeatures_ == null) { return com.google.protobuf.MapField.emptyMapField( NumericalFeaturesDefaultEntryHolder.defaultEntry); } return numericalFeatures_; } - private com.google.protobuf.MapField - internalGetMutableNumericalFeatures() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> + internalGetMutableNumericalFeatures() { + onChanged(); + ; if (numericalFeatures_ == null) { - numericalFeatures_ = com.google.protobuf.MapField.newMapField( - NumericalFeaturesDefaultEntryHolder.defaultEntry); + numericalFeatures_ = + com.google.protobuf.MapField.newMapField( + NumericalFeaturesDefaultEntryHolder.defaultEntry); } if (!numericalFeatures_.isMutable()) { numericalFeatures_ = numericalFeatures_.copy(); @@ -2343,6 +2648,8 @@ public int getNumericalFeaturesCount() { return internalGetNumericalFeatures().getMap().size(); } /** + * + * *
                * Numerical features. Some examples would be the height/weight of a product,
                * or age of a customer.
          @@ -2351,24 +2658,28 @@ public int getNumericalFeaturesCount() {
                *                 "heights_cm": {"value":[8.1, 6.4]} }`
                * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * */ - @java.lang.Override - public boolean containsNumericalFeatures( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsNumericalFeatures(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetNumericalFeatures().getMap().containsKey(key); } - /** - * Use {@link #getNumericalFeaturesMap()} instead. - */ + /** Use {@link #getNumericalFeaturesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getNumericalFeatures() { + public java.util.Map< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> + getNumericalFeatures() { return getNumericalFeaturesMap(); } /** + * + * *
                * Numerical features. Some examples would be the height/weight of a product,
                * or age of a customer.
          @@ -2377,14 +2688,19 @@ public java.util.Map
                *
          -     * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2;
          +     * 
          +     * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2;
          +     * 
                */
               @java.lang.Override
          -
          -    public java.util.Map getNumericalFeaturesMap() {
          +    public java.util.Map<
          +            java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList>
          +        getNumericalFeaturesMap() {
                 return internalGetNumericalFeatures().getMap();
               }
               /**
          +     *
          +     *
                * 
                * Numerical features. Some examples would be the height/weight of a product,
                * or age of a customer.
          @@ -2393,19 +2709,26 @@ public java.util.Map
                *
          -     * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2;
          +     * 
          +     * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2;
          +     * 
                */
               @java.lang.Override
          -
          -    public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getNumericalFeaturesOrDefault(
          -        java.lang.String key,
          -        com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList defaultValue) {
          -      if (key == null) { throw new NullPointerException("map key"); }
          -      java.util.Map map =
          -          internalGetNumericalFeatures().getMap();
          +    public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList
          +        getNumericalFeaturesOrDefault(
          +            java.lang.String key,
          +            com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList defaultValue) {
          +      if (key == null) {
          +        throw new NullPointerException("map key");
          +      }
          +      java.util.Map<
          +              java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList>
          +          map = internalGetNumericalFeatures().getMap();
                 return map.containsKey(key) ? map.get(key) : defaultValue;
               }
               /**
          +     *
          +     *
                * 
                * Numerical features. Some examples would be the height/weight of a product,
                * or age of a customer.
          @@ -2414,15 +2737,19 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getNum
                *                 "heights_cm": {"value":[8.1, 6.4]} }`
                * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * */ @java.lang.Override - - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getNumericalFeaturesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetNumericalFeatures().getMap(); + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList + getNumericalFeaturesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> + map = internalGetNumericalFeatures().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2430,11 +2757,12 @@ public com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getNum } public Builder clearNumericalFeatures() { - internalGetMutableNumericalFeatures().getMutableMap() - .clear(); + internalGetMutableNumericalFeatures().getMutableMap().clear(); return this; } /** + * + * *
                * Numerical features. Some examples would be the height/weight of a product,
                * or age of a customer.
          @@ -2443,25 +2771,27 @@ public Builder clearNumericalFeatures() {
                *                 "heights_cm": {"value":[8.1, 6.4]} }`
                * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * */ - - public Builder removeNumericalFeatures( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableNumericalFeatures().getMutableMap() - .remove(key); + public Builder removeNumericalFeatures(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableNumericalFeatures().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableNumericalFeatures() { + public java.util.Map< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> + getMutableNumericalFeatures() { return internalGetMutableNumericalFeatures().getMutableMap(); } /** + * + * *
                * Numerical features. Some examples would be the height/weight of a product,
                * or age of a customer.
          @@ -2470,21 +2800,26 @@ public Builder removeNumericalFeatures(
                *                 "heights_cm": {"value":[8.1, 6.4]} }`
                * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * */ public Builder putNumericalFeatures( java.lang.String key, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList value) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableNumericalFeatures().getMutableMap() - .put(key, value); + internalGetMutableNumericalFeatures().getMutableMap().put(key, value); return this; } /** + * + * *
                * Numerical features. Some examples would be the height/weight of a product,
                * or age of a customer.
          @@ -2493,18 +2828,21 @@ public Builder putNumericalFeatures(
                *                 "heights_cm": {"value":[8.1, 6.4]} }`
                * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * */ - public Builder putAllNumericalFeatures( - java.util.Map values) { - internalGetMutableNumericalFeatures().getMutableMap() - .putAll(values); + java.util.Map< + java.lang.String, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> + values) { + internalGetMutableNumericalFeatures().getMutableMap().putAll(values); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2514,12 +2852,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.FeatureMap) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.FeatureMap) private static final com.google.cloud.recommendationengine.v1beta1.FeatureMap DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.FeatureMap(); } @@ -2528,16 +2866,16 @@ public static com.google.cloud.recommendationengine.v1beta1.FeatureMap getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureMap parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureMap(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureMap(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2552,6 +2890,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.recommendationengine.v1beta1.FeatureMap getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMapOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMapOrBuilder.java similarity index 56% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMapOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMapOrBuilder.java index 1131383b..44132bc2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMapOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/FeatureMapOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/common.proto package com.google.cloud.recommendationengine.v1beta1; -public interface FeatureMapOrBuilder extends +public interface FeatureMapOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.FeatureMap) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Categorical features that can take on one of a limited number of possible
              * values. Some examples would be the brand/maker of a product, or country of
          @@ -17,10 +35,14 @@ public interface FeatureMapOrBuilder extends
              *                 "sizes": {"value":["S", "M"]}`
              * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * */ int getCategoricalFeaturesCount(); /** + * + * *
              * Categorical features that can take on one of a limited number of possible
              * values. Some examples would be the brand/maker of a product, or country of
          @@ -30,17 +52,19 @@ public interface FeatureMapOrBuilder extends
              *                 "sizes": {"value":["S", "M"]}`
              * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; - */ - boolean containsCategoricalFeatures( - java.lang.String key); - /** - * Use {@link #getCategoricalFeaturesMap()} instead. + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * */ + boolean containsCategoricalFeatures(java.lang.String key); + /** Use {@link #getCategoricalFeaturesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getCategoricalFeatures(); + java.util.Map< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> + getCategoricalFeatures(); /** + * + * *
              * Categorical features that can take on one of a limited number of possible
              * values. Some examples would be the brand/maker of a product, or country of
          @@ -50,11 +74,16 @@ boolean containsCategoricalFeatures(
              *                 "sizes": {"value":["S", "M"]}`
              * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * */ - java.util.Map - getCategoricalFeaturesMap(); + java.util.Map< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> + getCategoricalFeaturesMap(); /** + * + * *
              * Categorical features that can take on one of a limited number of possible
              * values. Some examples would be the brand/maker of a product, or country of
          @@ -64,15 +93,20 @@ boolean containsCategoricalFeatures(
              *                 "sizes": {"value":["S", "M"]}`
              * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * */ /* nullable */ -com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCategoricalFeaturesOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList defaultValue); + com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList + getCategoricalFeaturesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList defaultValue); /** + * + * *
              * Categorical features that can take on one of a limited number of possible
              * values. Some examples would be the brand/maker of a product, or country of
          @@ -82,13 +116,16 @@ com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCategoric
              *                 "sizes": {"value":["S", "M"]}`
              * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.StringList> categorical_features = 1; + * */ - com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCategoricalFeaturesOrThrow( java.lang.String key); /** + * + * *
              * Numerical features. Some examples would be the height/weight of a product,
              * or age of a customer.
          @@ -97,10 +134,14 @@ com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCategoric
              *                 "heights_cm": {"value":[8.1, 6.4]} }`
              * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * */ int getNumericalFeaturesCount(); /** + * + * *
              * Numerical features. Some examples would be the height/weight of a product,
              * or age of a customer.
          @@ -109,17 +150,19 @@ com.google.cloud.recommendationengine.v1beta1.FeatureMap.StringList getCategoric
              *                 "heights_cm": {"value":[8.1, 6.4]} }`
              * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; - */ - boolean containsNumericalFeatures( - java.lang.String key); - /** - * Use {@link #getNumericalFeaturesMap()} instead. + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * */ + boolean containsNumericalFeatures(java.lang.String key); + /** Use {@link #getNumericalFeaturesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getNumericalFeatures(); + java.util.Map< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> + getNumericalFeatures(); /** + * + * *
              * Numerical features. Some examples would be the height/weight of a product,
              * or age of a customer.
          @@ -128,11 +171,16 @@ boolean containsNumericalFeatures(
              *                 "heights_cm": {"value":[8.1, 6.4]} }`
              * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * */ - java.util.Map - getNumericalFeaturesMap(); + java.util.Map< + java.lang.String, com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> + getNumericalFeaturesMap(); /** + * + * *
              * Numerical features. Some examples would be the height/weight of a product,
              * or age of a customer.
          @@ -141,15 +189,19 @@ boolean containsNumericalFeatures(
              *                 "heights_cm": {"value":[8.1, 6.4]} }`
              * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * */ /* nullable */ -com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getNumericalFeaturesOrDefault( + com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getNumericalFeaturesOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList defaultValue); + com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList defaultValue); /** + * + * *
              * Numerical features. Some examples would be the height/weight of a product,
              * or age of a customer.
          @@ -158,9 +210,10 @@ com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getNumericalF
              *                 "heights_cm": {"value":[8.1, 6.4]} }`
              * 
          * - * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * + * map<string, .google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList> numerical_features = 2; + * */ - com.google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList getNumericalFeaturesOrThrow( java.lang.String key); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSource.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSource.java similarity index 76% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSource.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSource.java index 34e1c79f..758f466f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSource.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSource.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Google Cloud Storage location for input content.
            * format.
          @@ -11,31 +28,31 @@
            *
            * Protobuf type {@code google.cloud.recommendationengine.v1beta1.GcsSource}
            */
          -public final class GcsSource extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class GcsSource extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.GcsSource)
               GcsSourceOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use GcsSource.newBuilder() to construct.
             private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          +
             private GcsSource() {
               inputUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new GcsSource();
             }
           
             @java.lang.Override
          -  public final com.google.protobuf.UnknownFieldSet
          -  getUnknownFields() {
          +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
               return this.unknownFields;
             }
          +
             private GcsSource(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          @@ -55,22 +72,23 @@ private GcsSource(
                     case 0:
                       done = true;
                       break;
          -          case 10: {
          -            java.lang.String s = input.readStringRequireUtf8();
          -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          -              inputUris_ = new com.google.protobuf.LazyStringArrayList();
          -              mutable_bitField0_ |= 0x00000001;
          +          case 10:
          +            {
          +              java.lang.String s = input.readStringRequireUtf8();
          +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          +                inputUris_ = new com.google.protobuf.LazyStringArrayList();
          +                mutable_bitField0_ |= 0x00000001;
          +              }
          +              inputUris_.add(s);
          +              break;
                       }
          -            inputUris_.add(s);
          -            break;
          -          }
          -          default: {
          -            if (!parseUnknownField(
          -                input, unknownFields, extensionRegistry, tag)) {
          -              done = true;
          +          default:
          +            {
          +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
          +                done = true;
          +              }
          +              break;
                       }
          -            break;
          -          }
                   }
                 }
               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          @@ -78,8 +96,7 @@ private GcsSource(
               } catch (com.google.protobuf.UninitializedMessageException e) {
                 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
               } catch (java.io.IOException e) {
          -      throw new com.google.protobuf.InvalidProtocolBufferException(
          -          e).setUnfinishedMessage(this);
          +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
               } finally {
                 if (((mutable_bitField0_ & 0x00000001) != 0)) {
                   inputUris_ = inputUris_.getUnmodifiableView();
          @@ -88,22 +105,27 @@ private GcsSource(
                 makeExtensionsImmutable();
               }
             }
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor;
          +
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.cloud.recommendationengine.v1beta1.Import
          +        .internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_fieldAccessorTable
          +    return com.google.cloud.recommendationengine.v1beta1.Import
          +        .internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.cloud.recommendationengine.v1beta1.GcsSource.class, com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder.class);
          +            com.google.cloud.recommendationengine.v1beta1.GcsSource.class,
          +            com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder.class);
             }
           
             public static final int INPUT_URIS_FIELD_NUMBER = 1;
             private com.google.protobuf.LazyStringList inputUris_;
             /**
          +   *
          +   *
              * 
              * Required. Google Cloud Storage URIs to input files. URI can be up to
              * 2000 characters long. URIs can match the full object path (for example,
          @@ -115,13 +137,15 @@ private GcsSource(
              * 
          * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the inputUris. */ - public com.google.protobuf.ProtocolStringList - getInputUrisList() { + public com.google.protobuf.ProtocolStringList getInputUrisList() { return inputUris_; } /** + * + * *
              * Required. Google Cloud Storage URIs to input files. URI can be up to
              * 2000 characters long. URIs can match the full object path (for example,
          @@ -133,12 +157,15 @@ private GcsSource(
              * 
          * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of inputUris. */ public int getInputUrisCount() { return inputUris_.size(); } /** + * + * *
              * Required. Google Cloud Storage URIs to input files. URI can be up to
              * 2000 characters long. URIs can match the full object path (for example,
          @@ -150,6 +177,7 @@ public int getInputUrisCount() {
              * 
          * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The inputUris at the given index. */ @@ -157,6 +185,8 @@ public java.lang.String getInputUris(int index) { return inputUris_.get(index); } /** + * + * *
              * Required. Google Cloud Storage URIs to input files. URI can be up to
              * 2000 characters long. URIs can match the full object path (for example,
          @@ -168,15 +198,16 @@ public java.lang.String getInputUris(int index) {
              * 
          * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the inputUris at the given index. */ - public com.google.protobuf.ByteString - getInputUrisBytes(int index) { + public com.google.protobuf.ByteString getInputUrisBytes(int index) { return inputUris_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,8 +219,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < inputUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUris_.getRaw(i)); } @@ -218,15 +248,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.GcsSource)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.GcsSource other = (com.google.cloud.recommendationengine.v1beta1.GcsSource) obj; + com.google.cloud.recommendationengine.v1beta1.GcsSource other = + (com.google.cloud.recommendationengine.v1beta1.GcsSource) obj; - if (!getInputUrisList() - .equals(other.getInputUrisList())) return false; + if (!getInputUrisList().equals(other.getInputUrisList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -248,96 +278,104 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.GcsSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.GcsSource prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.GcsSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Google Cloud Storage location for input content.
              * format.
          @@ -345,21 +383,23 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.cloud.recommendationengine.v1beta1.GcsSource}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.GcsSource)
                 com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.cloud.recommendationengine.v1beta1.Import
          +          .internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_fieldAccessorTable
          +      return com.google.cloud.recommendationengine.v1beta1.Import
          +          .internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.cloud.recommendationengine.v1beta1.GcsSource.class, com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder.class);
          +              com.google.cloud.recommendationengine.v1beta1.GcsSource.class,
          +              com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder.class);
               }
           
               // Construct using com.google.cloud.recommendationengine.v1beta1.GcsSource.newBuilder()
          @@ -367,16 +407,15 @@ private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          +
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3
          -              .alwaysUseFieldBuilders) {
          -      }
          +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -386,9 +425,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.cloud.recommendationengine.v1beta1.Import
          +          .internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor;
               }
           
               @java.lang.Override
          @@ -407,7 +446,8 @@ public com.google.cloud.recommendationengine.v1beta1.GcsSource build() {
           
               @java.lang.Override
               public com.google.cloud.recommendationengine.v1beta1.GcsSource buildPartial() {
          -      com.google.cloud.recommendationengine.v1beta1.GcsSource result = new com.google.cloud.recommendationengine.v1beta1.GcsSource(this);
          +      com.google.cloud.recommendationengine.v1beta1.GcsSource result =
          +          new com.google.cloud.recommendationengine.v1beta1.GcsSource(this);
                 int from_bitField0_ = bitField0_;
                 if (((bitField0_ & 0x00000001) != 0)) {
                   inputUris_ = inputUris_.getUnmodifiableView();
          @@ -422,38 +462,39 @@ public com.google.cloud.recommendationengine.v1beta1.GcsSource buildPartial() {
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                 return super.setField(field, value);
               }
          +
               @java.lang.Override
          -    public Builder clearField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field) {
          +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                 return super.clearField(field);
               }
          +
               @java.lang.Override
          -    public Builder clearOneof(
          -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
          +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                 return super.clearOneof(oneof);
               }
          +
               @java.lang.Override
               public Builder setRepeatedField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        int index, java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                 return super.setRepeatedField(field, index, value);
               }
          +
               @java.lang.Override
               public Builder addRepeatedField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                 return super.addRepeatedField(field, value);
               }
          +
               @java.lang.Override
               public Builder mergeFrom(com.google.protobuf.Message other) {
                 if (other instanceof com.google.cloud.recommendationengine.v1beta1.GcsSource) {
          -        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.GcsSource)other);
          +        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.GcsSource) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -461,7 +502,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.GcsSource other) {
          -      if (other == com.google.cloud.recommendationengine.v1beta1.GcsSource.getDefaultInstance()) return this;
          +      if (other == com.google.cloud.recommendationengine.v1beta1.GcsSource.getDefaultInstance())
          +        return this;
                 if (!other.inputUris_.isEmpty()) {
                   if (inputUris_.isEmpty()) {
                     inputUris_ = other.inputUris_;
          @@ -491,7 +533,8 @@ public Builder mergeFrom(
                 try {
                   parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          -        parsedMessage = (com.google.cloud.recommendationengine.v1beta1.GcsSource) e.getUnfinishedMessage();
          +        parsedMessage =
          +            (com.google.cloud.recommendationengine.v1beta1.GcsSource) e.getUnfinishedMessage();
                   throw e.unwrapIOException();
                 } finally {
                   if (parsedMessage != null) {
          @@ -500,16 +543,21 @@ public Builder mergeFrom(
                 }
                 return this;
               }
          +
               private int bitField0_;
           
          -    private com.google.protobuf.LazyStringList inputUris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
          +    private com.google.protobuf.LazyStringList inputUris_ =
          +        com.google.protobuf.LazyStringArrayList.EMPTY;
          +
               private void ensureInputUrisIsMutable() {
                 if (!((bitField0_ & 0x00000001) != 0)) {
                   inputUris_ = new com.google.protobuf.LazyStringArrayList(inputUris_);
                   bitField0_ |= 0x00000001;
          -       }
          +      }
               }
               /**
          +     *
          +     *
                * 
                * Required. Google Cloud Storage URIs to input files. URI can be up to
                * 2000 characters long. URIs can match the full object path (for example,
          @@ -521,13 +569,15 @@ private void ensureInputUrisIsMutable() {
                * 
          * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the inputUris. */ - public com.google.protobuf.ProtocolStringList - getInputUrisList() { + public com.google.protobuf.ProtocolStringList getInputUrisList() { return inputUris_.getUnmodifiableView(); } /** + * + * *
                * Required. Google Cloud Storage URIs to input files. URI can be up to
                * 2000 characters long. URIs can match the full object path (for example,
          @@ -539,12 +589,15 @@ private void ensureInputUrisIsMutable() {
                * 
          * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of inputUris. */ public int getInputUrisCount() { return inputUris_.size(); } /** + * + * *
                * Required. Google Cloud Storage URIs to input files. URI can be up to
                * 2000 characters long. URIs can match the full object path (for example,
          @@ -556,6 +609,7 @@ public int getInputUrisCount() {
                * 
          * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The inputUris at the given index. */ @@ -563,6 +617,8 @@ public java.lang.String getInputUris(int index) { return inputUris_.get(index); } /** + * + * *
                * Required. Google Cloud Storage URIs to input files. URI can be up to
                * 2000 characters long. URIs can match the full object path (for example,
          @@ -574,14 +630,16 @@ public java.lang.String getInputUris(int index) {
                * 
          * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the inputUris at the given index. */ - public com.google.protobuf.ByteString - getInputUrisBytes(int index) { + public com.google.protobuf.ByteString getInputUrisBytes(int index) { return inputUris_.getByteString(index); } /** + * + * *
                * Required. Google Cloud Storage URIs to input files. URI can be up to
                * 2000 characters long. URIs can match the full object path (for example,
          @@ -593,21 +651,23 @@ public java.lang.String getInputUris(int index) {
                * 
          * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The inputUris to set. * @return This builder for chaining. */ - public Builder setInputUris( - int index, java.lang.String value) { + public Builder setInputUris(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInputUrisIsMutable(); + throw new NullPointerException(); + } + ensureInputUrisIsMutable(); inputUris_.set(index, value); onChanged(); return this; } /** + * + * *
                * Required. Google Cloud Storage URIs to input files. URI can be up to
                * 2000 characters long. URIs can match the full object path (for example,
          @@ -619,20 +679,22 @@ public Builder setInputUris(
                * 
          * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The inputUris to add. * @return This builder for chaining. */ - public Builder addInputUris( - java.lang.String value) { + public Builder addInputUris(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInputUrisIsMutable(); + throw new NullPointerException(); + } + ensureInputUrisIsMutable(); inputUris_.add(value); onChanged(); return this; } /** + * + * *
                * Required. Google Cloud Storage URIs to input files. URI can be up to
                * 2000 characters long. URIs can match the full object path (for example,
          @@ -644,18 +706,19 @@ public Builder addInputUris(
                * 
          * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The inputUris to add. * @return This builder for chaining. */ - public Builder addAllInputUris( - java.lang.Iterable values) { + public Builder addAllInputUris(java.lang.Iterable values) { ensureInputUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inputUris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputUris_); onChanged(); return this; } /** + * + * *
                * Required. Google Cloud Storage URIs to input files. URI can be up to
                * 2000 characters long. URIs can match the full object path (for example,
          @@ -667,6 +730,7 @@ public Builder addAllInputUris(
                * 
          * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearInputUris() { @@ -676,6 +740,8 @@ public Builder clearInputUris() { return this; } /** + * + * *
                * Required. Google Cloud Storage URIs to input files. URI can be up to
                * 2000 characters long. URIs can match the full object path (for example,
          @@ -687,23 +753,23 @@ public Builder clearInputUris() {
                * 
          * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the inputUris to add. * @return This builder for chaining. */ - public Builder addInputUrisBytes( - com.google.protobuf.ByteString value) { + public Builder addInputUrisBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureInputUrisIsMutable(); inputUris_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -713,12 +779,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.GcsSource) private static final com.google.cloud.recommendationengine.v1beta1.GcsSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.GcsSource(); } @@ -727,16 +793,16 @@ public static com.google.cloud.recommendationengine.v1beta1.GcsSource getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -751,6 +817,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.recommendationengine.v1beta1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSourceOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSourceOrBuilder.java similarity index 79% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSourceOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSourceOrBuilder.java index 41a4ab40..692c096c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSourceOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GcsSourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; -public interface GcsSourceOrBuilder extends +public interface GcsSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.GcsSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required. Google Cloud Storage URIs to input files. URI can be up to
              * 2000 characters long. URIs can match the full object path (for example,
          @@ -19,11 +37,13 @@ public interface GcsSourceOrBuilder extends
              * 
          * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the inputUris. */ - java.util.List - getInputUrisList(); + java.util.List getInputUrisList(); /** + * + * *
              * Required. Google Cloud Storage URIs to input files. URI can be up to
              * 2000 characters long. URIs can match the full object path (for example,
          @@ -35,10 +55,13 @@ public interface GcsSourceOrBuilder extends
              * 
          * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of inputUris. */ int getInputUrisCount(); /** + * + * *
              * Required. Google Cloud Storage URIs to input files. URI can be up to
              * 2000 characters long. URIs can match the full object path (for example,
          @@ -50,11 +73,14 @@ public interface GcsSourceOrBuilder extends
              * 
          * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The inputUris at the given index. */ java.lang.String getInputUris(int index); /** + * + * *
              * Required. Google Cloud Storage URIs to input files. URI can be up to
              * 2000 characters long. URIs can match the full object path (for example,
          @@ -66,9 +92,9 @@ public interface GcsSourceOrBuilder extends
              * 
          * * repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the inputUris at the given index. */ - com.google.protobuf.ByteString - getInputUrisBytes(int index); + com.google.protobuf.ByteString getInputUrisBytes(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequest.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequest.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequest.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequest.java index e0f96bd2..6ae45a3d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequest.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog_service.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Request message for GetCatalogItem method.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest} */ -public final class GetCatalogItemRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetCatalogItemRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) GetCatalogItemRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetCatalogItemRequest.newBuilder() to construct. private GetCatalogItemRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetCatalogItemRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetCatalogItemRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetCatalogItemRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetCatalogItemRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetCatalogItemRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.class, com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.class, + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
              * Required. Full resource name of catalog item, such as
              * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
              * Required. Full resource name of catalog item, such as
              * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest other = (com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) obj; + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest other = + (com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,134 +233,145 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Request message for GetCatalogItem method.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.class, com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.class, + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.Builder.class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,14 +381,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_GetCatalogItemRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest + .getDefaultInstance(); } @java.lang.Override @@ -364,7 +404,8 @@ public com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest build @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest result = new com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest(this); + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest result = + new com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +415,51 @@ public com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest)other); + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest other) { - if (other == com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +483,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +497,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
                * Required. Full resource name of catalog item, such as
                * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +522,24 @@ public java.lang.String getName() { } } /** + * + * *
                * Required. Full resource name of catalog item, such as
                * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +547,77 @@ public java.lang.String getName() { } } /** + * + * *
                * Required. Full resource name of catalog item, such as
                * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                * Required. Full resource name of catalog item, such as
                * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                * Required. Full resource name of catalog item, such as
                * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +627,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) - private static final com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCatalogItemRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCatalogItemRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCatalogItemRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCatalogItemRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +664,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequestOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequestOrBuilder.java new file mode 100644 index 00000000..f658c5ec --- /dev/null +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/GetCatalogItemRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/catalog_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public interface GetCatalogItemRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.GetCatalogItemRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Full resource name of catalog item, such as
          +   * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Required. Full resource name of catalog item, such as
          +   * `projects/*/locations/global/catalogs/default_catalog/catalogitems/some_catalog_item_id`.
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Image.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Image.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Image.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Image.java index 5980625e..dba86e39 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Image.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Image.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Catalog item thumbnail/detail image.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.Image} */ -public final class Image extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Image extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.Image) ImageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Image.newBuilder() to construct. private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Image() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Image(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Image( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,29 +70,30 @@ private Image( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - uri_ = s; - break; - } - case 16: { - - height_ = input.readInt32(); - break; - } - case 24: { - - width_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + uri_ = s; + break; + } + case 16: + { + height_ = input.readInt32(); + break; + } + case 24: + { + width_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -83,34 +101,39 @@ private Image( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_Image_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.Image.class, com.google.cloud.recommendationengine.v1beta1.Image.Builder.class); + com.google.cloud.recommendationengine.v1beta1.Image.class, + com.google.cloud.recommendationengine.v1beta1.Image.Builder.class); } public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** + * + * *
              * Required. URL of the image with a length limit of 5 KiB.
              * 
          * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ @java.lang.Override @@ -119,29 +142,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
              * Required. URL of the image with a length limit of 5 KiB.
              * 
          * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -152,11 +175,14 @@ public java.lang.String getUri() { public static final int HEIGHT_FIELD_NUMBER = 2; private int height_; /** + * + * *
              * Optional. Height of the image in number of pixels.
              * 
          * * int32 height = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The height. */ @java.lang.Override @@ -167,11 +193,14 @@ public int getHeight() { public static final int WIDTH_FIELD_NUMBER = 3; private int width_; /** + * + * *
              * Optional. Width of the image in number of pixels.
              * 
          * * int32 width = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The width. */ @java.lang.Override @@ -180,6 +209,7 @@ public int getWidth() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +221,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -215,12 +244,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (height_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, height_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, height_); } if (width_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, width_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, width_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -230,19 +257,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.Image)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.Image other = (com.google.cloud.recommendationengine.v1beta1.Image) obj; + com.google.cloud.recommendationengine.v1beta1.Image other = + (com.google.cloud.recommendationengine.v1beta1.Image) obj; - if (!getUri() - .equals(other.getUri())) return false; - if (getHeight() - != other.getHeight()) return false; - if (getWidth() - != other.getWidth()) return false; + if (!getUri().equals(other.getUri())) return false; + if (getHeight() != other.getHeight()) return false; + if (getWidth() != other.getWidth()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -266,117 +291,126 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.Image parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.Image parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.Image parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.Image parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.Image prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Catalog item thumbnail/detail image.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.Image} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.Image) com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_Image_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_Image_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.Image.class, com.google.cloud.recommendationengine.v1beta1.Image.Builder.class); + com.google.cloud.recommendationengine.v1beta1.Image.class, + com.google.cloud.recommendationengine.v1beta1.Image.Builder.class); } // Construct using com.google.cloud.recommendationengine.v1beta1.Image.newBuilder() @@ -384,16 +418,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -407,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_Image_descriptor; } @java.lang.Override @@ -428,7 +461,8 @@ public com.google.cloud.recommendationengine.v1beta1.Image build() { @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.Image buildPartial() { - com.google.cloud.recommendationengine.v1beta1.Image result = new com.google.cloud.recommendationengine.v1beta1.Image(this); + com.google.cloud.recommendationengine.v1beta1.Image result = + new com.google.cloud.recommendationengine.v1beta1.Image(this); result.uri_ = uri_; result.height_ = height_; result.width_ = width_; @@ -440,38 +474,39 @@ public com.google.cloud.recommendationengine.v1beta1.Image buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.Image) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.Image)other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.Image) other); } else { super.mergeFrom(other); return this; @@ -479,7 +514,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.Image other) { - if (other == com.google.cloud.recommendationengine.v1beta1.Image.getDefaultInstance()) return this; + if (other == com.google.cloud.recommendationengine.v1beta1.Image.getDefaultInstance()) + return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); @@ -509,7 +545,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.Image) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.Image) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -521,18 +558,20 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** + * + * *
                * Required. URL of the image with a length limit of 5 KiB.
                * 
          * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -541,20 +580,21 @@ public java.lang.String getUri() { } } /** + * + * *
                * Required. URL of the image with a length limit of 5 KiB.
                * 
          * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -562,66 +602,76 @@ public java.lang.String getUri() { } } /** + * + * *
                * Required. URL of the image with a length limit of 5 KiB.
                * 
          * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
                * Required. URL of the image with a length limit of 5 KiB.
                * 
          * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
                * Required. URL of the image with a length limit of 5 KiB.
                * 
          * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - private int height_ ; + private int height_; /** + * + * *
                * Optional. Height of the image in number of pixels.
                * 
          * * int32 height = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The height. */ @java.lang.Override @@ -629,42 +679,51 @@ public int getHeight() { return height_; } /** + * + * *
                * Optional. Height of the image in number of pixels.
                * 
          * * int32 height = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The height to set. * @return This builder for chaining. */ public Builder setHeight(int value) { - + height_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Height of the image in number of pixels.
                * 
          * * int32 height = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearHeight() { - + height_ = 0; onChanged(); return this; } - private int width_ ; + private int width_; /** + * + * *
                * Optional. Width of the image in number of pixels.
                * 
          * * int32 width = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The width. */ @java.lang.Override @@ -672,37 +731,43 @@ public int getWidth() { return width_; } /** + * + * *
                * Optional. Width of the image in number of pixels.
                * 
          * * int32 width = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The width to set. * @return This builder for chaining. */ public Builder setWidth(int value) { - + width_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Width of the image in number of pixels.
                * 
          * * int32 width = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearWidth() { - + width_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -712,12 +777,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.Image) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.Image) private static final com.google.cloud.recommendationengine.v1beta1.Image DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.Image(); } @@ -726,16 +791,16 @@ public static com.google.cloud.recommendationengine.v1beta1.Image getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Image parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Image(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Image parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Image(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -750,6 +815,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.recommendationengine.v1beta1.Image getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImageOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImageOrBuilder.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImageOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImageOrBuilder.java index dd659da3..42c2d31e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImageOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImageOrBuilder.java @@ -1,48 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ImageOrBuilder extends +public interface ImageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.Image) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required. URL of the image with a length limit of 5 KiB.
              * 
          * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
              * Required. URL of the image with a length limit of 5 KiB.
              * 
          * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
              * Optional. Height of the image in number of pixels.
              * 
          * * int32 height = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The height. */ int getHeight(); /** + * + * *
              * Optional. Width of the image in number of pixels.
              * 
          * * int32 width = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The width. */ int getWidth(); diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Import.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Import.java new file mode 100644 index 00000000..75912287 --- /dev/null +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/Import.java @@ -0,0 +1,275 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/import.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public final class Import { + private Import() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/recommendationengine/v1be" + + "ta1/import.proto\022)google.cloud.recommend" + + "ationengine.v1beta1\032\037google/api/field_be" + + "havior.proto\032\031google/api/resource.proto\032" + + "7google/cloud/recommendationengine/v1bet" + + "a1/catalog.proto\032:google/cloud/recommend" + + "ationengine/v1beta1/user_event.proto\032Ngo" + + "ogle/cloud/recommendationengine/v1beta1/" + + "recommendationengine_resources.proto\032\037go" + + "ogle/protobuf/timestamp.proto\032\027google/rp" + + "c/status.proto\032\034google/api/annotations.p" + + "roto\"$\n\tGcsSource\022\027\n\ninput_uris\030\001 \003(\tB\003\340" + + "A\002\"i\n\023CatalogInlineSource\022R\n\rcatalog_ite" + + "ms\030\001 \003(\01326.google.cloud.recommendationen" + + "gine.v1beta1.CatalogItemB\003\340A\001\"g\n\025UserEve" + + "ntInlineSource\022N\n\013user_events\030\001 \003(\01324.go" + + "ogle.cloud.recommendationengine.v1beta1." + + "UserEventB\003\340A\001\"9\n\022ImportErrorsConfig\022\024\n\n" + + "gcs_prefix\030\001 \001(\tH\000B\r\n\013destination\"\247\002\n\031Im" + + "portCatalogItemsRequest\022C\n\006parent\030\001 \001(\tB" + + "3\340A\002\372A-\n+recommendationengine.googleapis" + + ".com/Catalog\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022Q\n" + + "\014input_config\030\003 \001(\01326.google.cloud.recom" + + "mendationengine.v1beta1.InputConfigB\003\340A\002" + + "\022Y\n\rerrors_config\030\004 \001(\0132=.google.cloud.r" + + "ecommendationengine.v1beta1.ImportErrors" + + "ConfigB\003\340A\001\"\250\002\n\027ImportUserEventsRequest\022" + + "F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.recommendatione" + + "ngine.googleapis.com/EventStore\022\027\n\nreque" + + "st_id\030\002 \001(\tB\003\340A\001\022Q\n\014input_config\030\003 \001(\01326" + + ".google.cloud.recommendationengine.v1bet" + + "a1.InputConfigB\003\340A\002\022Y\n\rerrors_config\030\004 \001" + + "(\0132=.google.cloud.recommendationengine.v" + + "1beta1.ImportErrorsConfigB\003\340A\001\"\252\002\n\013Input" + + "Config\022_\n\025catalog_inline_source\030\001 \001(\0132>." + + "google.cloud.recommendationengine.v1beta" + + "1.CatalogInlineSourceH\000\022J\n\ngcs_source\030\002 " + + "\001(\01324.google.cloud.recommendationengine." + + "v1beta1.GcsSourceH\000\022d\n\030user_event_inline" + + "_source\030\003 \001(\0132@.google.cloud.recommendat" + + "ionengine.v1beta1.UserEventInlineSourceH" + + "\000B\010\n\006source\"\314\001\n\016ImportMetadata\022\026\n\016operat" + + "ion_name\030\005 \001(\t\022\022\n\nrequest_id\030\003 \001(\t\022/\n\013cr" + + "eate_time\030\004 \001(\0132\032.google.protobuf.Timest" + + "amp\022\025\n\rsuccess_count\030\001 \001(\003\022\025\n\rfailure_co" + + "unt\030\002 \001(\003\022/\n\013update_time\030\006 \001(\0132\032.google." + + "protobuf.Timestamp\"\235\001\n\032ImportCatalogItem" + + "sResponse\022)\n\rerror_samples\030\001 \003(\0132\022.googl" + + "e.rpc.Status\022T\n\rerrors_config\030\002 \001(\0132=.go" + + "ogle.cloud.recommendationengine.v1beta1." + + "ImportErrorsConfig\"\366\001\n\030ImportUserEventsR" + + "esponse\022)\n\rerror_samples\030\001 \003(\0132\022.google." + + "rpc.Status\022T\n\rerrors_config\030\002 \001(\0132=.goog" + + "le.cloud.recommendationengine.v1beta1.Im" + + "portErrorsConfig\022Y\n\016import_summary\030\003 \001(\013" + + "2A.google.cloud.recommendationengine.v1b" + + "eta1.UserEventImportSummary\"T\n\026UserEvent" + + "ImportSummary\022\033\n\023joined_events_count\030\001 \001" + + "(\003\022\035\n\025unjoined_events_count\030\002 \001(\003B\237\002\n-co" + + "m.google.cloud.recommendationengine.v1be" + + "ta1P\001Z]google.golang.org/genproto/google" + + "apis/cloud/recommendationengine/v1beta1;" + + "recommendationengine\242\002\005RECAI\252\002)Google.Cl" + + "oud.RecommendationEngine.V1Beta1\312\002)Googl" + + "e\\Cloud\\RecommendationEngine\\V1beta1\352\002,G" + + "oogle::Cloud::RecommendationEngine::V1be" + + "ta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources + .getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_GcsSource_descriptor, + new java.lang.String[] { + "InputUris", + }); + internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_CatalogInlineSource_descriptor, + new java.lang.String[] { + "CatalogItems", + }); + internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor, + new java.lang.String[] { + "UserEvents", + }); + internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor, + new java.lang.String[] { + "GcsPrefix", "Destination", + }); + internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor, + new java.lang.String[] { + "Parent", "RequestId", "InputConfig", "ErrorsConfig", + }); + internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor, + new java.lang.String[] { + "Parent", "RequestId", "InputConfig", "ErrorsConfig", + }); + internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor, + new java.lang.String[] { + "CatalogInlineSource", "GcsSource", "UserEventInlineSource", "Source", + }); + internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor, + new java.lang.String[] { + "OperationName", + "RequestId", + "CreateTime", + "SuccessCount", + "FailureCount", + "UpdateTime", + }); + internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor, + new java.lang.String[] { + "ErrorSamples", "ErrorsConfig", + }); + internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor, + new java.lang.String[] { + "ErrorSamples", "ErrorsConfig", "ImportSummary", + }); + internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor, + new java.lang.String[] { + "JoinedEventsCount", "UnjoinedEventsCount", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequest.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequest.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequest.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequest.java index 70c86760..f5b73b69 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequest.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Request message for Import methods.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest} */ -public final class ImportCatalogItemsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImportCatalogItemsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) ImportCatalogItemsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImportCatalogItemsRequest.newBuilder() to construct. private ImportCatalogItemsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImportCatalogItemsRequest() { parent_ = ""; requestId_ = ""; @@ -26,16 +44,15 @@ private ImportCatalogItemsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImportCatalogItemsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImportCatalogItemsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,51 +71,62 @@ private ImportCatalogItemsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - case 26: { - com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder subBuilder = null; - if (errorsConfig_ != null) { - subBuilder = errorsConfig_.toBuilder(); + requestId_ = s; + break; } - errorsConfig_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(errorsConfig_); - errorsConfig_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.InputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } + + break; } + case 34: + { + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder subBuilder = + null; + if (errorsConfig_ != null) { + subBuilder = errorsConfig_.toBuilder(); + } + errorsConfig_ = + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(errorsConfig_); + errorsConfig_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,34 +134,41 @@ private ImportCatalogItemsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.class, com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.class, + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
              * Required. `projects/1234/locations/global/catalogs/default_catalog`
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -142,29 +177,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
              * Required. `projects/1234/locations/global/catalogs/default_catalog`
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -175,6 +212,8 @@ public java.lang.String getParent() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
              * Optional. Unique identifier provided by client, within the ancestor
              * dataset scope. Ensures idempotency and used for request deduplication.
          @@ -183,6 +222,7 @@ public java.lang.String getParent() {
              * 
          * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -191,14 +231,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
              * Optional. Unique identifier provided by client, within the ancestor
              * dataset scope. Ensures idempotency and used for request deduplication.
          @@ -207,16 +248,15 @@ public java.lang.String getRequestId() {
              * 
          * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -227,11 +267,16 @@ public java.lang.String getRequestId() { public static final int INPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.recommendationengine.v1beta1.InputConfig inputConfig_; /** + * + * *
              * Required. The desired input location of the data.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -239,37 +284,54 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
              * Required. The desired input location of the data.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.InputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
              * Required. The desired input location of the data.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder + getInputConfigOrBuilder() { return getInputConfig(); } public static final int ERRORS_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errorsConfig_; /** + * + * *
              * Optional. The desired location of errors incurred during the Import.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the errorsConfig field is set. */ @java.lang.Override @@ -277,30 +339,43 @@ public boolean hasErrorsConfig() { return errorsConfig_ != null; } /** + * + * *
              * Optional. The desired location of errors incurred during the Import.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The errorsConfig. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig() { - return errorsConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; + return errorsConfig_ == null + ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() + : errorsConfig_; } /** + * + * *
              * Optional. The desired location of errors incurred during the Import.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder + getErrorsConfigOrBuilder() { return getErrorsConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -312,8 +387,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -342,12 +416,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputConfig()); } if (errorsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getErrorsConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getErrorsConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -357,26 +429,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest other = (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) obj; + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest other = + (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } if (hasErrorsConfig() != other.hasErrorsConfig()) return false; if (hasErrorsConfig()) { - if (!getErrorsConfig() - .equals(other.getErrorsConfig())) return false; + if (!getErrorsConfig().equals(other.getErrorsConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -407,134 +476,146 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Request message for Import methods.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.class, com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.class, + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.Builder + .class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -558,19 +639,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest build() { - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest result = buildPartial(); + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -579,7 +663,8 @@ public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest b @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest result = new com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest(this); + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest result = + new com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest(this); result.parent_ = parent_; result.requestId_ = requestId_; if (inputConfigBuilder_ == null) { @@ -600,46 +685,52 @@ public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest b public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest)other); + if (other + instanceof com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) { + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest other) { - if (other == com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -673,7 +764,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -685,18 +778,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                * Required. `projects/1234/locations/global/catalogs/default_catalog`
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -705,20 +802,23 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required. `projects/1234/locations/global/catalogs/default_catalog`
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -726,54 +826,67 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required. `projects/1234/locations/global/catalogs/default_catalog`
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                * Required. `projects/1234/locations/global/catalogs/default_catalog`
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                * Required. `projects/1234/locations/global/catalogs/default_catalog`
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -781,6 +894,8 @@ public Builder setParentBytes( private java.lang.Object requestId_ = ""; /** + * + * *
                * Optional. Unique identifier provided by client, within the ancestor
                * dataset scope. Ensures idempotency and used for request deduplication.
          @@ -789,13 +904,13 @@ public Builder setParentBytes(
                * 
          * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -804,6 +919,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
                * Optional. Unique identifier provided by client, within the ancestor
                * dataset scope. Ensures idempotency and used for request deduplication.
          @@ -812,15 +929,14 @@ public java.lang.String getRequestId() {
                * 
          * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -828,6 +944,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
                * Optional. Unique identifier provided by client, within the ancestor
                * dataset scope. Ensures idempotency and used for request deduplication.
          @@ -836,20 +954,22 @@ public java.lang.String getRequestId() {
                * 
          * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Unique identifier provided by client, within the ancestor
                * dataset scope. Ensures idempotency and used for request deduplication.
          @@ -858,15 +978,18 @@ public Builder setRequestId(
                * 
          * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
                * Optional. Unique identifier provided by client, within the ancestor
                * dataset scope. Ensures idempotency and used for request deduplication.
          @@ -875,16 +998,16 @@ public Builder clearRequestId() {
                * 
          * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; @@ -892,39 +1015,58 @@ public Builder setRequestIdBytes( private com.google.cloud.recommendationengine.v1beta1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.InputConfig, com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.recommendationengine.v1beta1.InputConfig, + com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, + com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
                * Required. The desired input location of the data.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
                * Required. The desired input location of the data.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ public com.google.cloud.recommendationengine.v1beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
                * Required. The desired input location of the data.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig(com.google.cloud.recommendationengine.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { @@ -940,11 +1082,15 @@ public Builder setInputConfig(com.google.cloud.recommendationengine.v1beta1.Inpu return this; } /** + * + * *
                * Required. The desired input location of the data.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig( com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder builderForValue) { @@ -958,17 +1104,24 @@ public Builder setInputConfig( return this; } /** + * + * *
                * Required. The desired input location of the data.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeInputConfig(com.google.cloud.recommendationengine.v1beta1.InputConfig value) { + public Builder mergeInputConfig( + com.google.cloud.recommendationengine.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.recommendationengine.v1beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.recommendationengine.v1beta1.InputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -980,11 +1133,15 @@ public Builder mergeInputConfig(com.google.cloud.recommendationengine.v1beta1.In return this; } /** + * + * *
                * Required. The desired input location of the data.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -998,48 +1155,66 @@ public Builder clearInputConfig() { return this; } /** + * + * *
                * Required. The desired input location of the data.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder getInputConfigBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder + getInputConfigBuilder() { + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
                * Required. The desired input location of the data.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder + getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
                * Required. The desired input location of the data.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.InputConfig, com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder> + com.google.cloud.recommendationengine.v1beta1.InputConfig, + com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, + com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.InputConfig, com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.InputConfig, + com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, + com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; @@ -1047,41 +1222,61 @@ public com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder getInp private com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errorsConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> errorsConfigBuilder_; + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> + errorsConfigBuilder_; /** + * + * *
                * Optional. The desired location of errors incurred during the Import.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the errorsConfig field is set. */ public boolean hasErrorsConfig() { return errorsConfigBuilder_ != null || errorsConfig_ != null; } /** + * + * *
                * Optional. The desired location of errors incurred during the Import.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The errorsConfig. */ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig() { if (errorsConfigBuilder_ == null) { - return errorsConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; + return errorsConfig_ == null + ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() + : errorsConfig_; } else { return errorsConfigBuilder_.getMessage(); } } /** + * + * *
                * Optional. The desired location of errors incurred during the Import.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setErrorsConfig(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { + public Builder setErrorsConfig( + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { if (errorsConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1095,11 +1290,15 @@ public Builder setErrorsConfig(com.google.cloud.recommendationengine.v1beta1.Imp return this; } /** + * + * *
                * Optional. The desired location of errors incurred during the Import.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setErrorsConfig( com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder builderForValue) { @@ -1113,17 +1312,25 @@ public Builder setErrorsConfig( return this; } /** + * + * *
                * Optional. The desired location of errors incurred during the Import.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeErrorsConfig(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { + public Builder mergeErrorsConfig( + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { if (errorsConfigBuilder_ == null) { if (errorsConfig_ != null) { errorsConfig_ = - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.newBuilder(errorsConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.newBuilder( + errorsConfig_) + .mergeFrom(value) + .buildPartial(); } else { errorsConfig_ = value; } @@ -1135,11 +1342,15 @@ public Builder mergeErrorsConfig(com.google.cloud.recommendationengine.v1beta1.I return this; } /** + * + * *
                * Optional. The desired location of errors incurred during the Import.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearErrorsConfig() { if (errorsConfigBuilder_ == null) { @@ -1153,55 +1364,73 @@ public Builder clearErrorsConfig() { return this; } /** + * + * *
                * Optional. The desired location of errors incurred during the Import.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder getErrorsConfigBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder + getErrorsConfigBuilder() { + onChanged(); return getErrorsConfigFieldBuilder().getBuilder(); } /** + * + * *
                * Optional. The desired location of errors incurred during the Import.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder + getErrorsConfigOrBuilder() { if (errorsConfigBuilder_ != null) { return errorsConfigBuilder_.getMessageOrBuilder(); } else { - return errorsConfig_ == null ? - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; + return errorsConfig_ == null + ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() + : errorsConfig_; } } /** + * + * *
                * Optional. The desired location of errors incurred during the Import.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> getErrorsConfigFieldBuilder() { if (errorsConfigBuilder_ == null) { - errorsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder>( - getErrorsConfig(), - getParentForChildren(), - isClean()); + errorsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder>( + getErrorsConfig(), getParentForChildren(), isClean()); errorsConfig_ = null; } return errorsConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1211,30 +1440,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) - private static final com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportCatalogItemsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportCatalogItemsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportCatalogItemsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportCatalogItemsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1246,9 +1478,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequestOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequestOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequestOrBuilder.java index a092c2e5..ac76d013 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequestOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ImportCatalogItemsRequestOrBuilder extends +public interface ImportCatalogItemsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ImportCatalogItemsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required. `projects/1234/locations/global/catalogs/default_catalog`
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
              * Required. `projects/1234/locations/global/catalogs/default_catalog`
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
              * Optional. Unique identifier provided by client, within the ancestor
              * dataset scope. Ensures idempotency and used for request deduplication.
          @@ -36,10 +63,13 @@ public interface ImportCatalogItemsRequestOrBuilder extends
              * 
          * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
              * Optional. Unique identifier provided by client, within the ancestor
              * dataset scope. Ensures idempotency and used for request deduplication.
          @@ -48,62 +78,91 @@ public interface ImportCatalogItemsRequestOrBuilder extends
              * 
          * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
              * Required. The desired input location of the data.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
              * Required. The desired input location of the data.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ com.google.cloud.recommendationengine.v1beta1.InputConfig getInputConfig(); /** + * + * *
              * Required. The desired input location of the data.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** + * + * *
              * Optional. The desired location of errors incurred during the Import.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the errorsConfig field is set. */ boolean hasErrorsConfig(); /** + * + * *
              * Optional. The desired location of errors incurred during the Import.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The errorsConfig. */ com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig(); /** + * + * *
              * Optional. The desired location of errors incurred during the Import.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder + getErrorsConfigOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponse.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponse.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponse.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponse.java index 2c12d2ea..86be350c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponse.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Response of the ImportCatalogItemsRequest. If the long running
            * operation is done, then this message is returned by the
          @@ -12,31 +29,31 @@
            *
            * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse}
            */
          -public final class ImportCatalogItemsResponse extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class ImportCatalogItemsResponse extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse)
               ImportCatalogItemsResponseOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use ImportCatalogItemsResponse.newBuilder() to construct.
             private ImportCatalogItemsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          +
             private ImportCatalogItemsResponse() {
               errorSamples_ = java.util.Collections.emptyList();
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new ImportCatalogItemsResponse();
             }
           
             @java.lang.Override
          -  public final com.google.protobuf.UnknownFieldSet
          -  getUnknownFields() {
          +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
               return this.unknownFields;
             }
          +
             private ImportCatalogItemsResponse(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          @@ -56,35 +73,41 @@ private ImportCatalogItemsResponse(
                     case 0:
                       done = true;
                       break;
          -          case 10: {
          -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          -              errorSamples_ = new java.util.ArrayList();
          -              mutable_bitField0_ |= 0x00000001;
          -            }
          -            errorSamples_.add(
          -                input.readMessage(com.google.rpc.Status.parser(), extensionRegistry));
          -            break;
          -          }
          -          case 18: {
          -            com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder subBuilder = null;
          -            if (errorsConfig_ != null) {
          -              subBuilder = errorsConfig_.toBuilder();
          -            }
          -            errorsConfig_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.parser(), extensionRegistry);
          -            if (subBuilder != null) {
          -              subBuilder.mergeFrom(errorsConfig_);
          -              errorsConfig_ = subBuilder.buildPartial();
          +          case 10:
          +            {
          +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          +                errorSamples_ = new java.util.ArrayList();
          +                mutable_bitField0_ |= 0x00000001;
          +              }
          +              errorSamples_.add(
          +                  input.readMessage(com.google.rpc.Status.parser(), extensionRegistry));
          +              break;
                       }
          +          case 18:
          +            {
          +              com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder subBuilder =
          +                  null;
          +              if (errorsConfig_ != null) {
          +                subBuilder = errorsConfig_.toBuilder();
          +              }
          +              errorsConfig_ =
          +                  input.readMessage(
          +                      com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.parser(),
          +                      extensionRegistry);
          +              if (subBuilder != null) {
          +                subBuilder.mergeFrom(errorsConfig_);
          +                errorsConfig_ = subBuilder.buildPartial();
          +              }
           
          -            break;
          -          }
          -          default: {
          -            if (!parseUnknownField(
          -                input, unknownFields, extensionRegistry, tag)) {
          -              done = true;
          +              break;
          +            }
          +          default:
          +            {
          +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
          +                done = true;
          +              }
          +              break;
                       }
          -            break;
          -          }
                   }
                 }
               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          @@ -92,8 +115,7 @@ private ImportCatalogItemsResponse(
               } catch (com.google.protobuf.UninitializedMessageException e) {
                 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
               } catch (java.io.IOException e) {
          -      throw new com.google.protobuf.InvalidProtocolBufferException(
          -          e).setUnfinishedMessage(this);
          +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
               } finally {
                 if (((mutable_bitField0_ & 0x00000001) != 0)) {
                   errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_);
          @@ -102,22 +124,27 @@ private ImportCatalogItemsResponse(
                 makeExtensionsImmutable();
               }
             }
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor;
          +
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.cloud.recommendationengine.v1beta1.Import
          +        .internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_fieldAccessorTable
          +    return com.google.cloud.recommendationengine.v1beta1.Import
          +        .internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.class, com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.Builder.class);
          +            com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.class,
          +            com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.Builder.class);
             }
           
             public static final int ERROR_SAMPLES_FIELD_NUMBER = 1;
             private java.util.List errorSamples_;
             /**
          +   *
          +   *
              * 
              * A sample of errors encountered while processing the request.
              * 
          @@ -129,6 +156,8 @@ public java.util.List getErrorSamplesList() { return errorSamples_; } /** + * + * *
              * A sample of errors encountered while processing the request.
              * 
          @@ -136,11 +165,12 @@ public java.util.List getErrorSamplesList() { * repeated .google.rpc.Status error_samples = 1; */ @java.lang.Override - public java.util.List - getErrorSamplesOrBuilderList() { + public java.util.List getErrorSamplesOrBuilderList() { return errorSamples_; } /** + * + * *
              * A sample of errors encountered while processing the request.
              * 
          @@ -152,6 +182,8 @@ public int getErrorSamplesCount() { return errorSamples_.size(); } /** + * + * *
              * A sample of errors encountered while processing the request.
              * 
          @@ -163,6 +195,8 @@ public com.google.rpc.Status getErrorSamples(int index) { return errorSamples_.get(index); } /** + * + * *
              * A sample of errors encountered while processing the request.
              * 
          @@ -170,19 +204,21 @@ public com.google.rpc.Status getErrorSamples(int index) { * repeated .google.rpc.Status error_samples = 1; */ @java.lang.Override - public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder( - int index) { + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { return errorSamples_.get(index); } public static final int ERRORS_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errorsConfig_; /** + * + * *
              * Echoes the destination for the complete errors in the request if set.
              * 
          * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; + * * @return Whether the errorsConfig field is set. */ @java.lang.Override @@ -190,18 +226,25 @@ public boolean hasErrorsConfig() { return errorsConfig_ != null; } /** + * + * *
              * Echoes the destination for the complete errors in the request if set.
              * 
          * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; + * * @return The errorsConfig. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig() { - return errorsConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; + return errorsConfig_ == null + ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() + : errorsConfig_; } /** + * + * *
              * Echoes the destination for the complete errors in the request if set.
              * 
          @@ -209,11 +252,13 @@ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getError * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder + getErrorsConfigOrBuilder() { return getErrorsConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +270,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < errorSamples_.size(); i++) { output.writeMessage(1, errorSamples_.get(i)); } @@ -243,12 +287,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < errorSamples_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, errorSamples_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, errorSamples_.get(i)); } if (errorsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getErrorsConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getErrorsConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -258,19 +300,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse)) { + if (!(obj + instanceof com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse other = (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse) obj; + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse other = + (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse) obj; - if (!getErrorSamplesList() - .equals(other.getErrorSamplesList())) return false; + if (!getErrorSamplesList().equals(other.getErrorSamplesList())) return false; if (hasErrorsConfig() != other.hasErrorsConfig()) return false; if (hasErrorsConfig()) { - if (!getErrorsConfig() - .equals(other.getErrorsConfig())) return false; + if (!getErrorsConfig().equals(other.getErrorsConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -297,96 +339,105 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Response of the ImportCatalogItemsRequest. If the long running
              * operation is done, then this message is returned by the
          @@ -395,39 +446,43 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse)
                 com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponseOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.cloud.recommendationengine.v1beta1.Import
          +          .internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_fieldAccessorTable
          +      return com.google.cloud.recommendationengine.v1beta1.Import
          +          .internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.class, com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.Builder.class);
          +              com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.class,
          +              com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.Builder
          +                  .class);
               }
           
          -    // Construct using com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.newBuilder()
          +    // Construct using
          +    // com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.newBuilder()
               private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          +
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3
          -              .alwaysUseFieldBuilders) {
          +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                   getErrorSamplesFieldBuilder();
                 }
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -447,19 +502,22 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.cloud.recommendationengine.v1beta1.Import
          +          .internal_static_google_cloud_recommendationengine_v1beta1_ImportCatalogItemsResponse_descriptor;
               }
           
               @java.lang.Override
          -    public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse getDefaultInstanceForType() {
          -      return com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.getDefaultInstance();
          +    public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse
          +        getDefaultInstanceForType() {
          +      return com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse
          +          .getDefaultInstance();
               }
           
               @java.lang.Override
               public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse build() {
          -      com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse result = buildPartial();
          +      com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse result =
          +          buildPartial();
                 if (!result.isInitialized()) {
                   throw newUninitializedMessageException(result);
                 }
          @@ -468,7 +526,8 @@ public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse
           
               @java.lang.Override
               public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse buildPartial() {
          -      com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse result = new com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse(this);
          +      com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse result =
          +          new com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse(this);
                 int from_bitField0_ = bitField0_;
                 if (errorSamplesBuilder_ == null) {
                   if (((bitField0_ & 0x00000001) != 0)) {
          @@ -492,46 +551,52 @@ public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                 return super.setField(field, value);
               }
          +
               @java.lang.Override
          -    public Builder clearField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field) {
          +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                 return super.clearField(field);
               }
          +
               @java.lang.Override
          -    public Builder clearOneof(
          -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
          +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                 return super.clearOneof(oneof);
               }
          +
               @java.lang.Override
               public Builder setRepeatedField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        int index, java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                 return super.setRepeatedField(field, index, value);
               }
          +
               @java.lang.Override
               public Builder addRepeatedField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                 return super.addRepeatedField(field, value);
               }
          +
               @java.lang.Override
               public Builder mergeFrom(com.google.protobuf.Message other) {
          -      if (other instanceof com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse) {
          -        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse)other);
          +      if (other
          +          instanceof com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse) {
          +        return mergeFrom(
          +            (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
                 }
               }
           
          -    public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse other) {
          -      if (other == com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse.getDefaultInstance()) return this;
          +    public Builder mergeFrom(
          +        com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse other) {
          +      if (other
          +          == com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse
          +              .getDefaultInstance()) return this;
                 if (errorSamplesBuilder_ == null) {
                   if (!other.errorSamples_.isEmpty()) {
                     if (errorSamples_.isEmpty()) {
          @@ -550,9 +615,10 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ImportCat
                       errorSamplesBuilder_ = null;
                       errorSamples_ = other.errorSamples_;
                       bitField0_ = (bitField0_ & ~0x00000001);
          -            errorSamplesBuilder_ = 
          -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          -                 getErrorSamplesFieldBuilder() : null;
          +            errorSamplesBuilder_ =
          +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          +                    ? getErrorSamplesFieldBuilder()
          +                    : null;
                     } else {
                       errorSamplesBuilder_.addAllMessages(other.errorSamples_);
                     }
          @@ -580,7 +646,9 @@ public Builder mergeFrom(
                 try {
                   parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          -        parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse) e.getUnfinishedMessage();
          +        parsedMessage =
          +            (com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse)
          +                e.getUnfinishedMessage();
                   throw e.unwrapIOException();
                 } finally {
                   if (parsedMessage != null) {
          @@ -589,21 +657,25 @@ public Builder mergeFrom(
                 }
                 return this;
               }
          +
               private int bitField0_;
           
          -    private java.util.List errorSamples_ =
          -      java.util.Collections.emptyList();
          +    private java.util.List errorSamples_ = java.util.Collections.emptyList();
          +
               private void ensureErrorSamplesIsMutable() {
                 if (!((bitField0_ & 0x00000001) != 0)) {
                   errorSamples_ = new java.util.ArrayList(errorSamples_);
                   bitField0_ |= 0x00000001;
          -       }
          +      }
               }
           
               private com.google.protobuf.RepeatedFieldBuilderV3<
          -        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorSamplesBuilder_;
          +            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
          +        errorSamplesBuilder_;
           
               /**
          +     *
          +     *
                * 
                * A sample of errors encountered while processing the request.
                * 
          @@ -618,6 +690,8 @@ public java.util.List getErrorSamplesList() { } } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          @@ -632,6 +706,8 @@ public int getErrorSamplesCount() { } } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          @@ -646,14 +722,15 @@ public com.google.rpc.Status getErrorSamples(int index) { } } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public Builder setErrorSamples( - int index, com.google.rpc.Status value) { + public Builder setErrorSamples(int index, com.google.rpc.Status value) { if (errorSamplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -667,14 +744,15 @@ public Builder setErrorSamples( return this; } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public Builder setErrorSamples( - int index, com.google.rpc.Status.Builder builderForValue) { + public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { if (errorSamplesBuilder_ == null) { ensureErrorSamplesIsMutable(); errorSamples_.set(index, builderForValue.build()); @@ -685,6 +763,8 @@ public Builder setErrorSamples( return this; } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          @@ -705,14 +785,15 @@ public Builder addErrorSamples(com.google.rpc.Status value) { return this; } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public Builder addErrorSamples( - int index, com.google.rpc.Status value) { + public Builder addErrorSamples(int index, com.google.rpc.Status value) { if (errorSamplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -726,14 +807,15 @@ public Builder addErrorSamples( return this; } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public Builder addErrorSamples( - com.google.rpc.Status.Builder builderForValue) { + public Builder addErrorSamples(com.google.rpc.Status.Builder builderForValue) { if (errorSamplesBuilder_ == null) { ensureErrorSamplesIsMutable(); errorSamples_.add(builderForValue.build()); @@ -744,14 +826,15 @@ public Builder addErrorSamples( return this; } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public Builder addErrorSamples( - int index, com.google.rpc.Status.Builder builderForValue) { + public Builder addErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { if (errorSamplesBuilder_ == null) { ensureErrorSamplesIsMutable(); errorSamples_.add(index, builderForValue.build()); @@ -762,18 +845,18 @@ public Builder addErrorSamples( return this; } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public Builder addAllErrorSamples( - java.lang.Iterable values) { + public Builder addAllErrorSamples(java.lang.Iterable values) { if (errorSamplesBuilder_ == null) { ensureErrorSamplesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, errorSamples_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorSamples_); onChanged(); } else { errorSamplesBuilder_.addAllMessages(values); @@ -781,6 +864,8 @@ public Builder addAllErrorSamples( return this; } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          @@ -798,6 +883,8 @@ public Builder clearErrorSamples() { return this; } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          @@ -815,39 +902,43 @@ public Builder removeErrorSamples(int index) { return this; } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public com.google.rpc.Status.Builder getErrorSamplesBuilder( - int index) { + public com.google.rpc.Status.Builder getErrorSamplesBuilder(int index) { return getErrorSamplesFieldBuilder().getBuilder(index); } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder( - int index) { + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { if (errorSamplesBuilder_ == null) { - return errorSamples_.get(index); } else { + return errorSamples_.get(index); + } else { return errorSamplesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public java.util.List - getErrorSamplesOrBuilderList() { + public java.util.List getErrorSamplesOrBuilderList() { if (errorSamplesBuilder_ != null) { return errorSamplesBuilder_.getMessageOrBuilderList(); } else { @@ -855,6 +946,8 @@ public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder( } } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          @@ -862,42 +955,44 @@ public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder( * repeated .google.rpc.Status error_samples = 1; */ public com.google.rpc.Status.Builder addErrorSamplesBuilder() { - return getErrorSamplesFieldBuilder().addBuilder( - com.google.rpc.Status.getDefaultInstance()); + return getErrorSamplesFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public com.google.rpc.Status.Builder addErrorSamplesBuilder( - int index) { - return getErrorSamplesFieldBuilder().addBuilder( - index, com.google.rpc.Status.getDefaultInstance()); + public com.google.rpc.Status.Builder addErrorSamplesBuilder(int index) { + return getErrorSamplesFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public java.util.List - getErrorSamplesBuilderList() { + public java.util.List getErrorSamplesBuilderList() { return getErrorSamplesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getErrorSamplesFieldBuilder() { if (errorSamplesBuilder_ == null) { - errorSamplesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - errorSamples_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + errorSamplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + errorSamples_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); errorSamples_ = null; } return errorSamplesBuilder_; @@ -905,41 +1000,55 @@ public com.google.rpc.Status.Builder addErrorSamplesBuilder( private com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errorsConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> errorsConfigBuilder_; + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> + errorsConfigBuilder_; /** + * + * *
                * Echoes the destination for the complete errors in the request if set.
                * 
          * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; + * * @return Whether the errorsConfig field is set. */ public boolean hasErrorsConfig() { return errorsConfigBuilder_ != null || errorsConfig_ != null; } /** + * + * *
                * Echoes the destination for the complete errors in the request if set.
                * 
          * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; + * * @return The errorsConfig. */ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig() { if (errorsConfigBuilder_ == null) { - return errorsConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; + return errorsConfig_ == null + ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() + : errorsConfig_; } else { return errorsConfigBuilder_.getMessage(); } } /** + * + * *
                * Echoes the destination for the complete errors in the request if set.
                * 
          * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; */ - public Builder setErrorsConfig(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { + public Builder setErrorsConfig( + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { if (errorsConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -953,6 +1062,8 @@ public Builder setErrorsConfig(com.google.cloud.recommendationengine.v1beta1.Imp return this; } /** + * + * *
                * Echoes the destination for the complete errors in the request if set.
                * 
          @@ -971,17 +1082,23 @@ public Builder setErrorsConfig( return this; } /** + * + * *
                * Echoes the destination for the complete errors in the request if set.
                * 
          * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; */ - public Builder mergeErrorsConfig(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { + public Builder mergeErrorsConfig( + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { if (errorsConfigBuilder_ == null) { if (errorsConfig_ != null) { errorsConfig_ = - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.newBuilder(errorsConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.newBuilder( + errorsConfig_) + .mergeFrom(value) + .buildPartial(); } else { errorsConfig_ = value; } @@ -993,6 +1110,8 @@ public Builder mergeErrorsConfig(com.google.cloud.recommendationengine.v1beta1.I return this; } /** + * + * *
                * Echoes the destination for the complete errors in the request if set.
                * 
          @@ -1011,33 +1130,42 @@ public Builder clearErrorsConfig() { return this; } /** + * + * *
                * Echoes the destination for the complete errors in the request if set.
                * 
          * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; */ - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder getErrorsConfigBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder + getErrorsConfigBuilder() { + onChanged(); return getErrorsConfigFieldBuilder().getBuilder(); } /** + * + * *
                * Echoes the destination for the complete errors in the request if set.
                * 
          * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; */ - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder + getErrorsConfigOrBuilder() { if (errorsConfigBuilder_ != null) { return errorsConfigBuilder_.getMessageOrBuilder(); } else { - return errorsConfig_ == null ? - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; + return errorsConfig_ == null + ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() + : errorsConfig_; } } /** + * + * *
                * Echoes the destination for the complete errors in the request if set.
                * 
          @@ -1045,21 +1173,24 @@ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> getErrorsConfigFieldBuilder() { if (errorsConfigBuilder_ == null) { - errorsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder>( - getErrorsConfig(), - getParentForChildren(), - isClean()); + errorsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder>( + getErrorsConfig(), getParentForChildren(), isClean()); errorsConfig_ = null; } return errorsConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1069,30 +1200,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse) - private static final com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse(); } - public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportCatalogItemsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportCatalogItemsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportCatalogItemsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportCatalogItemsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1104,9 +1238,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponseOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponseOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponseOrBuilder.java index 97ccfe26..bede3c5c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponseOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportCatalogItemsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ImportCatalogItemsResponseOrBuilder extends +public interface ImportCatalogItemsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * A sample of errors encountered while processing the request.
              * 
          * * repeated .google.rpc.Status error_samples = 1; */ - java.util.List - getErrorSamplesList(); + java.util.List getErrorSamplesList(); /** + * + * *
              * A sample of errors encountered while processing the request.
              * 
          @@ -25,6 +44,8 @@ public interface ImportCatalogItemsResponseOrBuilder extends */ com.google.rpc.Status getErrorSamples(int index); /** + * + * *
              * A sample of errors encountered while processing the request.
              * 
          @@ -33,48 +54,59 @@ public interface ImportCatalogItemsResponseOrBuilder extends */ int getErrorSamplesCount(); /** + * + * *
              * A sample of errors encountered while processing the request.
              * 
          * * repeated .google.rpc.Status error_samples = 1; */ - java.util.List - getErrorSamplesOrBuilderList(); + java.util.List getErrorSamplesOrBuilderList(); /** + * + * *
              * A sample of errors encountered while processing the request.
              * 
          * * repeated .google.rpc.Status error_samples = 1; */ - com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder( - int index); + com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index); /** + * + * *
              * Echoes the destination for the complete errors in the request if set.
              * 
          * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; + * * @return Whether the errorsConfig field is set. */ boolean hasErrorsConfig(); /** + * + * *
              * Echoes the destination for the complete errors in the request if set.
              * 
          * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; + * * @return The errorsConfig. */ com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig(); /** + * + * *
              * Echoes the destination for the complete errors in the request if set.
              * 
          * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; */ - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder + getErrorsConfigOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfig.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfig.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfig.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfig.java index bf7f9e09..61d2104b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfig.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Configuration of destination for Import related errors.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportErrorsConfig} */ -public final class ImportErrorsConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImportErrorsConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) ImportErrorsConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImportErrorsConfig.newBuilder() to construct. private ImportErrorsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImportErrorsConfig() { - } + + private ImportErrorsConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImportErrorsConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImportErrorsConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,19 +68,20 @@ private ImportErrorsConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - destinationCase_ = 1; - destination_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + destinationCase_ = 1; + destination_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -72,34 +89,39 @@ private ImportErrorsConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.class, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.class, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_PREFIX(1), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -115,24 +137,28 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_PREFIX; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_PREFIX; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int GCS_PREFIX_FIELD_NUMBER = 1; /** + * + * *
              * Google Cloud Storage path for import errors. This must be an empty,
              * existing Cloud Storage bucket. Import errors will be written to a file in
          @@ -141,12 +167,15 @@ public int getNumber() {
              * 
          * * string gcs_prefix = 1; + * * @return Whether the gcsPrefix field is set. */ public boolean hasGcsPrefix() { return destinationCase_ == 1; } /** + * + * *
              * Google Cloud Storage path for import errors. This must be an empty,
              * existing Cloud Storage bucket. Import errors will be written to a file in
          @@ -155,6 +184,7 @@ public boolean hasGcsPrefix() {
              * 
          * * string gcs_prefix = 1; + * * @return The gcsPrefix. */ public java.lang.String getGcsPrefix() { @@ -165,8 +195,7 @@ public java.lang.String getGcsPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (destinationCase_ == 1) { destination_ = s; @@ -175,6 +204,8 @@ public java.lang.String getGcsPrefix() { } } /** + * + * *
              * Google Cloud Storage path for import errors. This must be an empty,
              * existing Cloud Storage bucket. Import errors will be written to a file in
          @@ -183,18 +214,17 @@ public java.lang.String getGcsPrefix() {
              * 
          * * string gcs_prefix = 1; + * * @return The bytes for gcsPrefix. */ - public com.google.protobuf.ByteString - getGcsPrefixBytes() { + public com.google.protobuf.ByteString getGcsPrefixBytes() { java.lang.Object ref = ""; if (destinationCase_ == 1) { ref = destination_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (destinationCase_ == 1) { destination_ = b; } @@ -205,6 +235,7 @@ public java.lang.String getGcsPrefix() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,8 +247,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (destinationCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destination_); } @@ -241,18 +271,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig other = (com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) obj; + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig other = + (com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) obj; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 1: - if (!getGcsPrefix() - .equals(other.getGcsPrefix())) return false; + if (!getGcsPrefix().equals(other.getGcsPrefix())) return false; break; case 0: default: @@ -282,117 +312,127 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Configuration of destination for Import related errors.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportErrorsConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.class, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.class, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder.class); } // Construct using com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.newBuilder() @@ -400,16 +440,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -419,13 +458,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_ImportErrorsConfig_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig + getDefaultInstanceForType() { return com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance(); } @@ -440,7 +480,8 @@ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig build() @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig result = new com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig(this); + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig result = + new com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig(this); if (destinationCase_ == 1) { result.destination_ = destination_; } @@ -453,56 +494,62 @@ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig)other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig other) { - if (other == com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance()) + return this; switch (other.getDestinationCase()) { - case GCS_PREFIX: { - destinationCase_ = 1; - destination_ = other.destination_; - onChanged(); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_PREFIX: + { + destinationCase_ = 1; + destination_ = other.destination_; + onChanged(); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -523,7 +570,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -532,12 +581,12 @@ public Builder mergeFrom( } return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -547,8 +596,9 @@ public Builder clearDestination() { return this; } - /** + * + * *
                * Google Cloud Storage path for import errors. This must be an empty,
                * existing Cloud Storage bucket. Import errors will be written to a file in
          @@ -557,6 +607,7 @@ public Builder clearDestination() {
                * 
          * * string gcs_prefix = 1; + * * @return Whether the gcsPrefix field is set. */ @java.lang.Override @@ -564,6 +615,8 @@ public boolean hasGcsPrefix() { return destinationCase_ == 1; } /** + * + * *
                * Google Cloud Storage path for import errors. This must be an empty,
                * existing Cloud Storage bucket. Import errors will be written to a file in
          @@ -572,6 +625,7 @@ public boolean hasGcsPrefix() {
                * 
          * * string gcs_prefix = 1; + * * @return The gcsPrefix. */ @java.lang.Override @@ -581,8 +635,7 @@ public java.lang.String getGcsPrefix() { ref = destination_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (destinationCase_ == 1) { destination_ = s; @@ -593,6 +646,8 @@ public java.lang.String getGcsPrefix() { } } /** + * + * *
                * Google Cloud Storage path for import errors. This must be an empty,
                * existing Cloud Storage bucket. Import errors will be written to a file in
          @@ -601,19 +656,18 @@ public java.lang.String getGcsPrefix() {
                * 
          * * string gcs_prefix = 1; + * * @return The bytes for gcsPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsPrefixBytes() { + public com.google.protobuf.ByteString getGcsPrefixBytes() { java.lang.Object ref = ""; if (destinationCase_ == 1) { ref = destination_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (destinationCase_ == 1) { destination_ = b; } @@ -623,6 +677,8 @@ public java.lang.String getGcsPrefix() { } } /** + * + * *
                * Google Cloud Storage path for import errors. This must be an empty,
                * existing Cloud Storage bucket. Import errors will be written to a file in
          @@ -631,20 +687,22 @@ public java.lang.String getGcsPrefix() {
                * 
          * * string gcs_prefix = 1; + * * @param value The gcsPrefix to set. * @return This builder for chaining. */ - public Builder setGcsPrefix( - java.lang.String value) { + public Builder setGcsPrefix(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - destinationCase_ = 1; + throw new NullPointerException(); + } + destinationCase_ = 1; destination_ = value; onChanged(); return this; } /** + * + * *
                * Google Cloud Storage path for import errors. This must be an empty,
                * existing Cloud Storage bucket. Import errors will be written to a file in
          @@ -653,6 +711,7 @@ public Builder setGcsPrefix(
                * 
          * * string gcs_prefix = 1; + * * @return This builder for chaining. */ public Builder clearGcsPrefix() { @@ -664,6 +723,8 @@ public Builder clearGcsPrefix() { return this; } /** + * + * *
                * Google Cloud Storage path for import errors. This must be an empty,
                * existing Cloud Storage bucket. Import errors will be written to a file in
          @@ -672,23 +733,23 @@ public Builder clearGcsPrefix() {
                * 
          * * string gcs_prefix = 1; + * * @param value The bytes for gcsPrefix to set. * @return This builder for chaining. */ - public Builder setGcsPrefixBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsPrefixBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); destinationCase_ = 1; destination_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -698,30 +759,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) - private static final com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig(); } - public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportErrorsConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportErrorsConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportErrorsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportErrorsConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -733,9 +796,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfigOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfigOrBuilder.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfigOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfigOrBuilder.java index 9323c06f..e2f1355b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfigOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportErrorsConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ImportErrorsConfigOrBuilder extends +public interface ImportErrorsConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ImportErrorsConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Google Cloud Storage path for import errors. This must be an empty,
              * existing Cloud Storage bucket. Import errors will be written to a file in
          @@ -16,10 +34,13 @@ public interface ImportErrorsConfigOrBuilder extends
              * 
          * * string gcs_prefix = 1; + * * @return Whether the gcsPrefix field is set. */ boolean hasGcsPrefix(); /** + * + * *
              * Google Cloud Storage path for import errors. This must be an empty,
              * existing Cloud Storage bucket. Import errors will be written to a file in
          @@ -28,10 +49,13 @@ public interface ImportErrorsConfigOrBuilder extends
              * 
          * * string gcs_prefix = 1; + * * @return The gcsPrefix. */ java.lang.String getGcsPrefix(); /** + * + * *
              * Google Cloud Storage path for import errors. This must be an empty,
              * existing Cloud Storage bucket. Import errors will be written to a file in
          @@ -40,10 +64,11 @@ public interface ImportErrorsConfigOrBuilder extends
              * 
          * * string gcs_prefix = 1; + * * @return The bytes for gcsPrefix. */ - com.google.protobuf.ByteString - getGcsPrefixBytes(); + com.google.protobuf.ByteString getGcsPrefixBytes(); - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.DestinationCase getDestinationCase(); + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.DestinationCase + getDestinationCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadata.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadata.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadata.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadata.java index 13f2603b..86c732b9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadata.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Metadata related to the progress of the Import operation. This will be
            * returned by the google.longrunning.Operation.metadata field.
          @@ -11,15 +28,16 @@
            *
            * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportMetadata}
            */
          -public final class ImportMetadata extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class ImportMetadata extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ImportMetadata)
               ImportMetadataOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use ImportMetadata.newBuilder() to construct.
             private ImportMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          +
             private ImportMetadata() {
               operationName_ = "";
               requestId_ = "";
          @@ -27,16 +45,15 @@ private ImportMetadata() {
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new ImportMetadata();
             }
           
             @java.lang.Override
          -  public final com.google.protobuf.UnknownFieldSet
          -  getUnknownFields() {
          +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
               return this.unknownFields;
             }
          +
             private ImportMetadata(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          @@ -55,61 +72,67 @@ private ImportMetadata(
                     case 0:
                       done = true;
                       break;
          -          case 8: {
          -
          -            successCount_ = input.readInt64();
          -            break;
          -          }
          -          case 16: {
          -
          -            failureCount_ = input.readInt64();
          -            break;
          -          }
          -          case 26: {
          -            java.lang.String s = input.readStringRequireUtf8();
          -
          -            requestId_ = s;
          -            break;
          -          }
          -          case 34: {
          -            com.google.protobuf.Timestamp.Builder subBuilder = null;
          -            if (createTime_ != null) {
          -              subBuilder = createTime_.toBuilder();
          +          case 8:
          +            {
          +              successCount_ = input.readInt64();
          +              break;
                       }
          -            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
          -            if (subBuilder != null) {
          -              subBuilder.mergeFrom(createTime_);
          -              createTime_ = subBuilder.buildPartial();
          +          case 16:
          +            {
          +              failureCount_ = input.readInt64();
          +              break;
                       }
          +          case 26:
          +            {
          +              java.lang.String s = input.readStringRequireUtf8();
           
          -            break;
          -          }
          -          case 42: {
          -            java.lang.String s = input.readStringRequireUtf8();
          -
          -            operationName_ = s;
          -            break;
          -          }
          -          case 50: {
          -            com.google.protobuf.Timestamp.Builder subBuilder = null;
          -            if (updateTime_ != null) {
          -              subBuilder = updateTime_.toBuilder();
          +              requestId_ = s;
          +              break;
                       }
          -            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
          -            if (subBuilder != null) {
          -              subBuilder.mergeFrom(updateTime_);
          -              updateTime_ = subBuilder.buildPartial();
          +          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:
          +            {
          +              java.lang.String s = input.readStringRequireUtf8();
           
          -            break;
          -          }
          -          default: {
          -            if (!parseUnknownField(
          -                input, unknownFields, extensionRegistry, tag)) {
          -              done = true;
          +              operationName_ = s;
          +              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;
          +            }
          +          default:
          +            {
          +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
          +                done = true;
          +              }
          +              break;
                       }
          -            break;
          -          }
                   }
                 }
               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          @@ -117,34 +140,39 @@ private ImportMetadata(
               } catch (com.google.protobuf.UninitializedMessageException e) {
                 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
               } catch (java.io.IOException e) {
          -      throw new com.google.protobuf.InvalidProtocolBufferException(
          -          e).setUnfinishedMessage(this);
          +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
               } finally {
                 this.unknownFields = unknownFields.build();
                 makeExtensionsImmutable();
               }
             }
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor;
          +
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.cloud.recommendationengine.v1beta1.Import
          +        .internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_fieldAccessorTable
          +    return com.google.cloud.recommendationengine.v1beta1.Import
          +        .internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.cloud.recommendationengine.v1beta1.ImportMetadata.class, com.google.cloud.recommendationengine.v1beta1.ImportMetadata.Builder.class);
          +            com.google.cloud.recommendationengine.v1beta1.ImportMetadata.class,
          +            com.google.cloud.recommendationengine.v1beta1.ImportMetadata.Builder.class);
             }
           
             public static final int OPERATION_NAME_FIELD_NUMBER = 5;
             private volatile java.lang.Object operationName_;
             /**
          +   *
          +   *
              * 
              * Name of the operation.
              * 
          * * string operation_name = 5; + * * @return The operationName. */ @java.lang.Override @@ -153,29 +181,29 @@ public java.lang.String getOperationName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationName_ = s; return s; } } /** + * + * *
              * Name of the operation.
              * 
          * * string operation_name = 5; + * * @return The bytes for operationName. */ @java.lang.Override - public com.google.protobuf.ByteString - getOperationNameBytes() { + public com.google.protobuf.ByteString getOperationNameBytes() { java.lang.Object ref = operationName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operationName_ = b; return b; } else { @@ -186,12 +214,15 @@ public java.lang.String getOperationName() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** + * + * *
              * Id of the request / operation. This is parroting back the requestId that
              * was passed in the request.
              * 
          * * string request_id = 3; + * * @return The requestId. */ @java.lang.Override @@ -200,30 +231,30 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
              * Id of the request / operation. This is parroting back the requestId that
              * was passed in the request.
              * 
          * * string request_id = 3; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -234,11 +265,14 @@ public java.lang.String getRequestId() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** + * + * *
              * Operation create time.
              * 
          * * .google.protobuf.Timestamp create_time = 4; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -246,11 +280,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
              * Operation create time.
              * 
          * * .google.protobuf.Timestamp create_time = 4; + * * @return The createTime. */ @java.lang.Override @@ -258,6 +295,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
              * Operation create time.
              * 
          @@ -272,11 +311,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int SUCCESS_COUNT_FIELD_NUMBER = 1; private long successCount_; /** + * + * *
              * Count of entries that were processed successfully.
              * 
          * * int64 success_count = 1; + * * @return The successCount. */ @java.lang.Override @@ -287,11 +329,14 @@ public long getSuccessCount() { public static final int FAILURE_COUNT_FIELD_NUMBER = 2; private long failureCount_; /** + * + * *
              * Count of entries that encountered errors while processing.
              * 
          * * int64 failure_count = 2; + * * @return The failureCount. */ @java.lang.Override @@ -302,12 +347,15 @@ public long getFailureCount() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
              * Operation last update time. If the operation is done, this is also the
              * finish time.
              * 
          * * .google.protobuf.Timestamp update_time = 6; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -315,12 +363,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
              * Operation last update time. If the operation is done, this is also the
              * finish time.
              * 
          * * .google.protobuf.Timestamp update_time = 6; + * * @return The updateTime. */ @java.lang.Override @@ -328,6 +379,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
              * Operation last update time. If the operation is done, this is also the
              * finish time.
          @@ -341,6 +394,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
             }
           
             private byte memoizedIsInitialized = -1;
          +
             @java.lang.Override
             public final boolean isInitialized() {
               byte isInitialized = memoizedIsInitialized;
          @@ -352,8 +406,7 @@ public final boolean isInitialized() {
             }
           
             @java.lang.Override
          -  public void writeTo(com.google.protobuf.CodedOutputStream output)
          -                      throws java.io.IOException {
          +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
               if (successCount_ != 0L) {
                 output.writeInt64(1, successCount_);
               }
          @@ -382,26 +435,22 @@ public int getSerializedSize() {
           
               size = 0;
               if (successCount_ != 0L) {
          -      size += com.google.protobuf.CodedOutputStream
          -        .computeInt64Size(1, successCount_);
          +      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, successCount_);
               }
               if (failureCount_ != 0L) {
          -      size += com.google.protobuf.CodedOutputStream
          -        .computeInt64Size(2, failureCount_);
          +      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, failureCount_);
               }
               if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) {
                 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_);
               }
               if (createTime_ != null) {
          -      size += com.google.protobuf.CodedOutputStream
          -        .computeMessageSize(4, getCreateTime());
          +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime());
               }
               if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationName_)) {
                 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, operationName_);
               }
               if (updateTime_ != null) {
          -      size += com.google.protobuf.CodedOutputStream
          -        .computeMessageSize(6, getUpdateTime());
          +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime());
               }
               size += unknownFields.getSerializedSize();
               memoizedSize = size;
          @@ -411,30 +460,25 @@ public int getSerializedSize() {
             @java.lang.Override
             public boolean equals(final java.lang.Object obj) {
               if (obj == this) {
          -     return true;
          +      return true;
               }
               if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ImportMetadata)) {
                 return super.equals(obj);
               }
          -    com.google.cloud.recommendationengine.v1beta1.ImportMetadata other = (com.google.cloud.recommendationengine.v1beta1.ImportMetadata) obj;
          +    com.google.cloud.recommendationengine.v1beta1.ImportMetadata other =
          +        (com.google.cloud.recommendationengine.v1beta1.ImportMetadata) obj;
           
          -    if (!getOperationName()
          -        .equals(other.getOperationName())) return false;
          -    if (!getRequestId()
          -        .equals(other.getRequestId())) return false;
          +    if (!getOperationName().equals(other.getOperationName())) return false;
          +    if (!getRequestId().equals(other.getRequestId())) return false;
               if (hasCreateTime() != other.hasCreateTime()) return false;
               if (hasCreateTime()) {
          -      if (!getCreateTime()
          -          .equals(other.getCreateTime())) return false;
          +      if (!getCreateTime().equals(other.getCreateTime())) return false;
               }
          -    if (getSuccessCount()
          -        != other.getSuccessCount()) return false;
          -    if (getFailureCount()
          -        != other.getFailureCount()) return false;
          +    if (getSuccessCount() != other.getSuccessCount()) return false;
          +    if (getFailureCount() != other.getFailureCount()) return false;
               if (hasUpdateTime() != other.hasUpdateTime()) return false;
               if (hasUpdateTime()) {
          -      if (!getUpdateTime()
          -          .equals(other.getUpdateTime())) return false;
          +      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
               }
               if (!unknownFields.equals(other.unknownFields)) return false;
               return true;
          @@ -456,11 +500,9 @@ public int hashCode() {
                 hash = (53 * hash) + getCreateTime().hashCode();
               }
               hash = (37 * hash) + SUCCESS_COUNT_FIELD_NUMBER;
          -    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          -        getSuccessCount());
          +    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSuccessCount());
               hash = (37 * hash) + FAILURE_COUNT_FIELD_NUMBER;
          -    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          -        getFailureCount());
          +    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailureCount());
               if (hasUpdateTime()) {
                 hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
                 hash = (53 * hash) + getUpdateTime().hashCode();
          @@ -471,96 +513,104 @@ public int hashCode() {
             }
           
             public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(
          -      java.nio.ByteBuffer data)
          -      throws com.google.protobuf.InvalidProtocolBufferException {
          +      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(
          -      java.nio.ByteBuffer data,
          -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data, extensionRegistry);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(
                 com.google.protobuf.ByteString data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(
                 com.google.protobuf.ByteString data,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data, extensionRegistry);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(byte[] data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(
          -      byte[] data,
          -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data, extensionRegistry);
             }
          -  public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(java.io.InputStream input)
          -      throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseWithIOException(PARSER, input);
          +
          +  public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(
          +      java.io.InputStream input) throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(
          -      java.io.InputStream input,
          -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseWithIOException(PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          +        PARSER, input, extensionRegistry);
             }
          -  public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseDelimitedFrom(java.io.InputStream input)
          -      throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseDelimitedWithIOException(PARSER, input);
          +
          +  public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseDelimitedFrom(
          +      java.io.InputStream input) throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseDelimitedFrom(
          -      java.io.InputStream input,
          -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          +        PARSER, input, extensionRegistry);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(
          -      com.google.protobuf.CodedInputStream input)
          -      throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseWithIOException(PARSER, input);
          +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata parseFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseWithIOException(PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          +        PARSER, input, extensionRegistry);
             }
           
             @java.lang.Override
          -  public Builder newBuilderForType() { return newBuilder(); }
          +  public Builder newBuilderForType() {
          +    return newBuilder();
          +  }
          +
             public static Builder newBuilder() {
               return DEFAULT_INSTANCE.toBuilder();
             }
          -  public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ImportMetadata prototype) {
          +
          +  public static Builder newBuilder(
          +      com.google.cloud.recommendationengine.v1beta1.ImportMetadata prototype) {
               return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
             }
          +
             @java.lang.Override
             public Builder toBuilder() {
          -    return this == DEFAULT_INSTANCE
          -        ? new Builder() : new Builder().mergeFrom(this);
          +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
             }
           
             @java.lang.Override
          -  protected Builder newBuilderForType(
          -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
               Builder builder = new Builder(parent);
               return builder;
             }
             /**
          +   *
          +   *
              * 
              * Metadata related to the progress of the Import operation. This will be
              * returned by the google.longrunning.Operation.metadata field.
          @@ -568,21 +618,23 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportMetadata}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ImportMetadata)
                 com.google.cloud.recommendationengine.v1beta1.ImportMetadataOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.cloud.recommendationengine.v1beta1.Import
          +          .internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_fieldAccessorTable
          +      return com.google.cloud.recommendationengine.v1beta1.Import
          +          .internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.cloud.recommendationengine.v1beta1.ImportMetadata.class, com.google.cloud.recommendationengine.v1beta1.ImportMetadata.Builder.class);
          +              com.google.cloud.recommendationengine.v1beta1.ImportMetadata.class,
          +              com.google.cloud.recommendationengine.v1beta1.ImportMetadata.Builder.class);
               }
           
               // Construct using com.google.cloud.recommendationengine.v1beta1.ImportMetadata.newBuilder()
          @@ -590,16 +642,15 @@ private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          +
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3
          -              .alwaysUseFieldBuilders) {
          -      }
          +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -627,13 +678,14 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.cloud.recommendationengine.v1beta1.Import
          +          .internal_static_google_cloud_recommendationengine_v1beta1_ImportMetadata_descriptor;
               }
           
               @java.lang.Override
          -    public com.google.cloud.recommendationengine.v1beta1.ImportMetadata getDefaultInstanceForType() {
          +    public com.google.cloud.recommendationengine.v1beta1.ImportMetadata
          +        getDefaultInstanceForType() {
                 return com.google.cloud.recommendationengine.v1beta1.ImportMetadata.getDefaultInstance();
               }
           
          @@ -648,7 +700,8 @@ public com.google.cloud.recommendationengine.v1beta1.ImportMetadata build() {
           
               @java.lang.Override
               public com.google.cloud.recommendationengine.v1beta1.ImportMetadata buildPartial() {
          -      com.google.cloud.recommendationengine.v1beta1.ImportMetadata result = new com.google.cloud.recommendationengine.v1beta1.ImportMetadata(this);
          +      com.google.cloud.recommendationengine.v1beta1.ImportMetadata result =
          +          new com.google.cloud.recommendationengine.v1beta1.ImportMetadata(this);
                 result.operationName_ = operationName_;
                 result.requestId_ = requestId_;
                 if (createTimeBuilder_ == null) {
          @@ -671,38 +724,39 @@ public com.google.cloud.recommendationengine.v1beta1.ImportMetadata buildPartial
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                 return super.setField(field, value);
               }
          +
               @java.lang.Override
          -    public Builder clearField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field) {
          +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                 return super.clearField(field);
               }
          +
               @java.lang.Override
          -    public Builder clearOneof(
          -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
          +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                 return super.clearOneof(oneof);
               }
          +
               @java.lang.Override
               public Builder setRepeatedField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        int index, java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                 return super.setRepeatedField(field, index, value);
               }
          +
               @java.lang.Override
               public Builder addRepeatedField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                 return super.addRepeatedField(field, value);
               }
          +
               @java.lang.Override
               public Builder mergeFrom(com.google.protobuf.Message other) {
                 if (other instanceof com.google.cloud.recommendationengine.v1beta1.ImportMetadata) {
          -        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ImportMetadata)other);
          +        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ImportMetadata) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -710,7 +764,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ImportMetadata other) {
          -      if (other == com.google.cloud.recommendationengine.v1beta1.ImportMetadata.getDefaultInstance()) return this;
          +      if (other
          +          == com.google.cloud.recommendationengine.v1beta1.ImportMetadata.getDefaultInstance())
          +        return this;
                 if (!other.getOperationName().isEmpty()) {
                   operationName_ = other.operationName_;
                   onChanged();
          @@ -750,7 +806,8 @@ public Builder mergeFrom(
                 try {
                   parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          -        parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ImportMetadata) e.getUnfinishedMessage();
          +        parsedMessage =
          +            (com.google.cloud.recommendationengine.v1beta1.ImportMetadata) e.getUnfinishedMessage();
                   throw e.unwrapIOException();
                 } finally {
                   if (parsedMessage != null) {
          @@ -762,18 +819,20 @@ public Builder mergeFrom(
           
               private java.lang.Object operationName_ = "";
               /**
          +     *
          +     *
                * 
                * Name of the operation.
                * 
          * * string operation_name = 5; + * * @return The operationName. */ public java.lang.String getOperationName() { java.lang.Object ref = operationName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationName_ = s; return s; @@ -782,20 +841,21 @@ public java.lang.String getOperationName() { } } /** + * + * *
                * Name of the operation.
                * 
          * * string operation_name = 5; + * * @return The bytes for operationName. */ - public com.google.protobuf.ByteString - getOperationNameBytes() { + public com.google.protobuf.ByteString getOperationNameBytes() { java.lang.Object ref = operationName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operationName_ = b; return b; } else { @@ -803,54 +863,61 @@ public java.lang.String getOperationName() { } } /** + * + * *
                * Name of the operation.
                * 
          * * string operation_name = 5; + * * @param value The operationName to set. * @return This builder for chaining. */ - public Builder setOperationName( - java.lang.String value) { + public Builder setOperationName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + operationName_ = value; onChanged(); return this; } /** + * + * *
                * Name of the operation.
                * 
          * * string operation_name = 5; + * * @return This builder for chaining. */ public Builder clearOperationName() { - + operationName_ = getDefaultInstance().getOperationName(); onChanged(); return this; } /** + * + * *
                * Name of the operation.
                * 
          * * string operation_name = 5; + * * @param value The bytes for operationName to set. * @return This builder for chaining. */ - public Builder setOperationNameBytes( - com.google.protobuf.ByteString value) { + public Builder setOperationNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operationName_ = value; onChanged(); return this; @@ -858,19 +925,21 @@ public Builder setOperationNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
                * Id of the request / operation. This is parroting back the requestId that
                * was passed in the request.
                * 
          * * string request_id = 3; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -879,21 +948,22 @@ public java.lang.String getRequestId() { } } /** + * + * *
                * Id of the request / operation. This is parroting back the requestId that
                * was passed in the request.
                * 
          * * string request_id = 3; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -901,57 +971,64 @@ public java.lang.String getRequestId() { } } /** + * + * *
                * Id of the request / operation. This is parroting back the requestId that
                * was passed in the request.
                * 
          * * string request_id = 3; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
                * Id of the request / operation. This is parroting back the requestId that
                * was passed in the request.
                * 
          * * string request_id = 3; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
                * Id of the request / operation. This is parroting back the requestId that
                * was passed in the request.
                * 
          * * string request_id = 3; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; @@ -959,34 +1036,47 @@ public Builder setRequestIdBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
                * Operation create time.
                * 
          * * .google.protobuf.Timestamp create_time = 4; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
                * Operation create time.
                * 
          * * .google.protobuf.Timestamp create_time = 4; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
                * Operation create time.
                * 
          @@ -1007,14 +1097,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                * Operation create time.
                * 
          * * .google.protobuf.Timestamp create_time = 4; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1025,6 +1116,8 @@ public Builder setCreateTime( return this; } /** + * + * *
                * Operation create time.
                * 
          @@ -1035,7 +1128,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1047,6 +1140,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                * Operation create time.
                * 
          @@ -1065,6 +1160,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
                * Operation create time.
                * 
          @@ -1072,11 +1169,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 4; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
                * Operation create time.
                * 
          @@ -1087,11 +1186,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
                * Operation create time.
                * 
          @@ -1099,26 +1201,32 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } - private long successCount_ ; + private long successCount_; /** + * + * *
                * Count of entries that were processed successfully.
                * 
          * * int64 success_count = 1; + * * @return The successCount. */ @java.lang.Override @@ -1126,42 +1234,51 @@ public long getSuccessCount() { return successCount_; } /** + * + * *
                * Count of entries that were processed successfully.
                * 
          * * int64 success_count = 1; + * * @param value The successCount to set. * @return This builder for chaining. */ public Builder setSuccessCount(long value) { - + successCount_ = value; onChanged(); return this; } /** + * + * *
                * Count of entries that were processed successfully.
                * 
          * * int64 success_count = 1; + * * @return This builder for chaining. */ public Builder clearSuccessCount() { - + successCount_ = 0L; onChanged(); return this; } - private long failureCount_ ; + private long failureCount_; /** + * + * *
                * Count of entries that encountered errors while processing.
                * 
          * * int64 failure_count = 2; + * * @return The failureCount. */ @java.lang.Override @@ -1169,30 +1286,36 @@ public long getFailureCount() { return failureCount_; } /** + * + * *
                * Count of entries that encountered errors while processing.
                * 
          * * int64 failure_count = 2; + * * @param value The failureCount to set. * @return This builder for chaining. */ public Builder setFailureCount(long value) { - + failureCount_ = value; onChanged(); return this; } /** + * + * *
                * Count of entries that encountered errors while processing.
                * 
          * * int64 failure_count = 2; + * * @return This builder for chaining. */ public Builder clearFailureCount() { - + failureCount_ = 0L; onChanged(); return this; @@ -1200,36 +1323,49 @@ public Builder clearFailureCount() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
                * Operation last update time. If the operation is done, this is also the
                * finish time.
                * 
          * * .google.protobuf.Timestamp update_time = 6; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
                * Operation last update time. If the operation is done, this is also the
                * finish time.
                * 
          * * .google.protobuf.Timestamp update_time = 6; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
                * Operation last update time. If the operation is done, this is also the
                * finish time.
          @@ -1251,6 +1387,8 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Operation last update time. If the operation is done, this is also the
                * finish time.
          @@ -1258,8 +1396,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
                *
                * .google.protobuf.Timestamp update_time = 6;
                */
          -    public Builder setUpdateTime(
          -        com.google.protobuf.Timestamp.Builder builderForValue) {
          +    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
                 if (updateTimeBuilder_ == null) {
                   updateTime_ = builderForValue.build();
                   onChanged();
          @@ -1270,6 +1407,8 @@ public Builder setUpdateTime(
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Operation last update time. If the operation is done, this is also the
                * finish time.
          @@ -1281,7 +1420,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
                 if (updateTimeBuilder_ == null) {
                   if (updateTime_ != null) {
                     updateTime_ =
          -            com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
          +              com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
                   } else {
                     updateTime_ = value;
                   }
          @@ -1293,6 +1432,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Operation last update time. If the operation is done, this is also the
                * finish time.
          @@ -1312,6 +1453,8 @@ public Builder clearUpdateTime() {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Operation last update time. If the operation is done, this is also the
                * finish time.
          @@ -1320,11 +1463,13 @@ public Builder clearUpdateTime() {
                * .google.protobuf.Timestamp update_time = 6;
                */
               public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
          -      
          +
                 onChanged();
                 return getUpdateTimeFieldBuilder().getBuilder();
               }
               /**
          +     *
          +     *
                * 
                * Operation last update time. If the operation is done, this is also the
                * finish time.
          @@ -1336,11 +1481,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
                 if (updateTimeBuilder_ != null) {
                   return updateTimeBuilder_.getMessageOrBuilder();
                 } else {
          -        return updateTime_ == null ?
          -            com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
          +        return updateTime_ == null
          +            ? com.google.protobuf.Timestamp.getDefaultInstance()
          +            : updateTime_;
                 }
               }
               /**
          +     *
          +     *
                * 
                * Operation last update time. If the operation is done, this is also the
                * finish time.
          @@ -1349,21 +1497,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
                * .google.protobuf.Timestamp update_time = 6;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
          +            com.google.protobuf.Timestamp,
          +            com.google.protobuf.Timestamp.Builder,
          +            com.google.protobuf.TimestampOrBuilder>
                   getUpdateTimeFieldBuilder() {
                 if (updateTimeBuilder_ == null) {
          -        updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
          -                getUpdateTime(),
          -                getParentForChildren(),
          -                isClean());
          +        updateTimeBuilder_ =
          +            new com.google.protobuf.SingleFieldBuilderV3<
          +                com.google.protobuf.Timestamp,
          +                com.google.protobuf.Timestamp.Builder,
          +                com.google.protobuf.TimestampOrBuilder>(
          +                getUpdateTime(), getParentForChildren(), isClean());
                   updateTime_ = null;
                 }
                 return updateTimeBuilder_;
               }
          +
               @java.lang.Override
          -    public final Builder setUnknownFields(
          -        final com.google.protobuf.UnknownFieldSet unknownFields) {
          +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                 return super.setUnknownFields(unknownFields);
               }
           
          @@ -1373,12 +1524,13 @@ public final Builder mergeUnknownFields(
                 return super.mergeUnknownFields(unknownFields);
               }
           
          -
               // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ImportMetadata)
             }
           
             // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ImportMetadata)
          -  private static final com.google.cloud.recommendationengine.v1beta1.ImportMetadata DEFAULT_INSTANCE;
          +  private static final com.google.cloud.recommendationengine.v1beta1.ImportMetadata
          +      DEFAULT_INSTANCE;
          +
             static {
               DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ImportMetadata();
             }
          @@ -1387,16 +1539,16 @@ public static com.google.cloud.recommendationengine.v1beta1.ImportMetadata getDe
               return DEFAULT_INSTANCE;
             }
           
          -  private static final com.google.protobuf.Parser
          -      PARSER = new com.google.protobuf.AbstractParser() {
          -    @java.lang.Override
          -    public ImportMetadata parsePartialFrom(
          -        com.google.protobuf.CodedInputStream input,
          -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          -        throws com.google.protobuf.InvalidProtocolBufferException {
          -      return new ImportMetadata(input, extensionRegistry);
          -    }
          -  };
          +  private static final com.google.protobuf.Parser PARSER =
          +      new com.google.protobuf.AbstractParser() {
          +        @java.lang.Override
          +        public ImportMetadata parsePartialFrom(
          +            com.google.protobuf.CodedInputStream input,
          +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +            throws com.google.protobuf.InvalidProtocolBufferException {
          +          return new ImportMetadata(input, extensionRegistry);
          +        }
          +      };
           
             public static com.google.protobuf.Parser parser() {
               return PARSER;
          @@ -1411,6 +1563,4 @@ public com.google.protobuf.Parser getParserForType() {
             public com.google.cloud.recommendationengine.v1beta1.ImportMetadata getDefaultInstanceForType() {
               return DEFAULT_INSTANCE;
             }
          -
           }
          -
          diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadataOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadataOrBuilder.java
          similarity index 76%
          rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadataOrBuilder.java
          rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadataOrBuilder.java
          index 2a6584b3..9c231add 100644
          --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadataOrBuilder.java
          +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportMetadataOrBuilder.java
          @@ -1,73 +1,107 @@
          +/*
          + * Copyright 2020 Google LLC
          + *
          + * Licensed under the Apache License, Version 2.0 (the "License");
          + * you may not use this file except in compliance with the License.
          + * You may obtain a copy of the License at
          + *
          + *     https://www.apache.org/licenses/LICENSE-2.0
          + *
          + * Unless required by applicable law or agreed to in writing, software
          + * distributed under the License is distributed on an "AS IS" BASIS,
          + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
          + * See the License for the specific language governing permissions and
          + * limitations under the License.
          + */
           // Generated by the protocol buffer compiler.  DO NOT EDIT!
           // source: google/cloud/recommendationengine/v1beta1/import.proto
           
           package com.google.cloud.recommendationengine.v1beta1;
           
          -public interface ImportMetadataOrBuilder extends
          +public interface ImportMetadataOrBuilder
          +    extends
               // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ImportMetadata)
               com.google.protobuf.MessageOrBuilder {
           
             /**
          +   *
          +   *
              * 
              * Name of the operation.
              * 
          * * string operation_name = 5; + * * @return The operationName. */ java.lang.String getOperationName(); /** + * + * *
              * Name of the operation.
              * 
          * * string operation_name = 5; + * * @return The bytes for operationName. */ - com.google.protobuf.ByteString - getOperationNameBytes(); + com.google.protobuf.ByteString getOperationNameBytes(); /** + * + * *
              * Id of the request / operation. This is parroting back the requestId that
              * was passed in the request.
              * 
          * * string request_id = 3; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
              * Id of the request / operation. This is parroting back the requestId that
              * was passed in the request.
              * 
          * * string request_id = 3; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
              * Operation create time.
              * 
          * * .google.protobuf.Timestamp create_time = 4; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
              * Operation create time.
              * 
          * * .google.protobuf.Timestamp create_time = 4; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
              * Operation create time.
              * 
          @@ -77,46 +111,60 @@ public interface ImportMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
              * Count of entries that were processed successfully.
              * 
          * * int64 success_count = 1; + * * @return The successCount. */ long getSuccessCount(); /** + * + * *
              * Count of entries that encountered errors while processing.
              * 
          * * int64 failure_count = 2; + * * @return The failureCount. */ long getFailureCount(); /** + * + * *
              * Operation last update time. If the operation is done, this is also the
              * finish time.
              * 
          * * .google.protobuf.Timestamp update_time = 6; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
              * Operation last update time. If the operation is done, this is also the
              * finish time.
              * 
          * * .google.protobuf.Timestamp update_time = 6; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
              * Operation last update time. If the operation is done, this is also the
              * finish time.
          diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequest.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequest.java
          similarity index 62%
          rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequest.java
          rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequest.java
          index 4d293da8..fa9c02fe 100644
          --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequest.java
          +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequest.java
          @@ -1,24 +1,42 @@
          +/*
          + * Copyright 2020 Google LLC
          + *
          + * Licensed under the Apache License, Version 2.0 (the "License");
          + * you may not use this file except in compliance with the License.
          + * You may obtain a copy of the License at
          + *
          + *     https://www.apache.org/licenses/LICENSE-2.0
          + *
          + * Unless required by applicable law or agreed to in writing, software
          + * distributed under the License is distributed on an "AS IS" BASIS,
          + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
          + * See the License for the specific language governing permissions and
          + * limitations under the License.
          + */
           // Generated by the protocol buffer compiler.  DO NOT EDIT!
           // source: google/cloud/recommendationengine/v1beta1/import.proto
           
           package com.google.cloud.recommendationengine.v1beta1;
           
           /**
          + *
          + *
            * 
            * Request message for the ImportUserEvents request.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest} */ -public final class ImportUserEventsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImportUserEventsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) ImportUserEventsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImportUserEventsRequest.newBuilder() to construct. private ImportUserEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImportUserEventsRequest() { parent_ = ""; requestId_ = ""; @@ -26,16 +44,15 @@ private ImportUserEventsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImportUserEventsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImportUserEventsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,51 +71,62 @@ private ImportUserEventsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - case 26: { - com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); + parent_ = s; + break; } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder subBuilder = null; - if (errorsConfig_ != null) { - subBuilder = errorsConfig_.toBuilder(); + requestId_ = s; + break; } - errorsConfig_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(errorsConfig_); - errorsConfig_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.InputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } + + break; } + case 34: + { + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder subBuilder = + null; + if (errorsConfig_ != null) { + subBuilder = errorsConfig_.toBuilder(); + } + errorsConfig_ = + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(errorsConfig_); + errorsConfig_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,35 +134,42 @@ private ImportUserEventsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.class, com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.class, + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
              * Required.
              * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -143,30 +178,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
              * Required.
              * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -177,6 +214,8 @@ public java.lang.String getParent() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
              * Optional. Unique identifier provided by client, within the ancestor
              * dataset scope. Ensures idempotency for expensive long running operations.
          @@ -187,6 +226,7 @@ public java.lang.String getParent() {
              * 
          * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -195,14 +235,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
              * Optional. Unique identifier provided by client, within the ancestor
              * dataset scope. Ensures idempotency for expensive long running operations.
          @@ -213,16 +254,15 @@ public java.lang.String getRequestId() {
              * 
          * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -233,11 +273,16 @@ public java.lang.String getRequestId() { public static final int INPUT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.recommendationengine.v1beta1.InputConfig inputConfig_; /** + * + * *
              * Required. The desired input location of the data.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -245,37 +290,54 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
              * Required. The desired input location of the data.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.InputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
              * Required. The desired input location of the data.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder + getInputConfigOrBuilder() { return getInputConfig(); } public static final int ERRORS_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errorsConfig_; /** + * + * *
              * Optional. The desired location of errors incurred during the Import.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the errorsConfig field is set. */ @java.lang.Override @@ -283,30 +345,43 @@ public boolean hasErrorsConfig() { return errorsConfig_ != null; } /** + * + * *
              * Optional. The desired location of errors incurred during the Import.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The errorsConfig. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig() { - return errorsConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; + return errorsConfig_ == null + ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() + : errorsConfig_; } /** + * + * *
              * Optional. The desired location of errors incurred during the Import.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder + getErrorsConfigOrBuilder() { return getErrorsConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -318,8 +393,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -348,12 +422,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputConfig()); } if (errorsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getErrorsConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getErrorsConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -363,26 +435,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest other = (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) obj; + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest other = + (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } if (hasErrorsConfig() != other.hasErrorsConfig()) return false; if (hasErrorsConfig()) { - if (!getErrorsConfig() - .equals(other.getErrorsConfig())) return false; + if (!getErrorsConfig().equals(other.getErrorsConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -413,134 +482,145 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Request message for the ImportUserEvents request.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.class, com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.class, + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.Builder.class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -564,14 +644,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest + .getDefaultInstance(); } @java.lang.Override @@ -585,7 +667,8 @@ public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest bui @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest result = new com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest(this); + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest result = + new com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest(this); result.parent_ = parent_; result.requestId_ = requestId_; if (inputConfigBuilder_ == null) { @@ -606,46 +689,51 @@ public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest bui public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest)other); + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest other) { - if (other == com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -679,7 +767,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -691,19 +781,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                * Required.
                * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -712,21 +806,24 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required.
                * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -734,57 +831,70 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required.
                * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                * Required.
                * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                * Required.
                * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -792,6 +902,8 @@ public Builder setParentBytes( private java.lang.Object requestId_ = ""; /** + * + * *
                * Optional. Unique identifier provided by client, within the ancestor
                * dataset scope. Ensures idempotency for expensive long running operations.
          @@ -802,13 +914,13 @@ public Builder setParentBytes(
                * 
          * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -817,6 +929,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
                * Optional. Unique identifier provided by client, within the ancestor
                * dataset scope. Ensures idempotency for expensive long running operations.
          @@ -827,15 +941,14 @@ public java.lang.String getRequestId() {
                * 
          * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -843,6 +956,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
                * Optional. Unique identifier provided by client, within the ancestor
                * dataset scope. Ensures idempotency for expensive long running operations.
          @@ -853,20 +968,22 @@ public java.lang.String getRequestId() {
                * 
          * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Unique identifier provided by client, within the ancestor
                * dataset scope. Ensures idempotency for expensive long running operations.
          @@ -877,15 +994,18 @@ public Builder setRequestId(
                * 
          * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
                * Optional. Unique identifier provided by client, within the ancestor
                * dataset scope. Ensures idempotency for expensive long running operations.
          @@ -896,16 +1016,16 @@ public Builder clearRequestId() {
                * 
          * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; @@ -913,39 +1033,58 @@ public Builder setRequestIdBytes( private com.google.cloud.recommendationengine.v1beta1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.InputConfig, com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.recommendationengine.v1beta1.InputConfig, + com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, + com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
                * Required. The desired input location of the data.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
                * Required. The desired input location of the data.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ public com.google.cloud.recommendationengine.v1beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
                * Required. The desired input location of the data.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig(com.google.cloud.recommendationengine.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { @@ -961,11 +1100,15 @@ public Builder setInputConfig(com.google.cloud.recommendationengine.v1beta1.Inpu return this; } /** + * + * *
                * Required. The desired input location of the data.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig( com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder builderForValue) { @@ -979,17 +1122,24 @@ public Builder setInputConfig( return this; } /** + * + * *
                * Required. The desired input location of the data.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeInputConfig(com.google.cloud.recommendationengine.v1beta1.InputConfig value) { + public Builder mergeInputConfig( + com.google.cloud.recommendationengine.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.recommendationengine.v1beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.recommendationengine.v1beta1.InputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -1001,11 +1151,15 @@ public Builder mergeInputConfig(com.google.cloud.recommendationengine.v1beta1.In return this; } /** + * + * *
                * Required. The desired input location of the data.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -1019,48 +1173,66 @@ public Builder clearInputConfig() { return this; } /** + * + * *
                * Required. The desired input location of the data.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder getInputConfigBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder + getInputConfigBuilder() { + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
                * Required. The desired input location of the data.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder + getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
                * Required. The desired input location of the data.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.InputConfig, com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder> + com.google.cloud.recommendationengine.v1beta1.InputConfig, + com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, + com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.InputConfig, com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.InputConfig, + com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder, + com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; @@ -1068,41 +1240,61 @@ public com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder getInp private com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errorsConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> errorsConfigBuilder_; + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> + errorsConfigBuilder_; /** + * + * *
                * Optional. The desired location of errors incurred during the Import.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the errorsConfig field is set. */ public boolean hasErrorsConfig() { return errorsConfigBuilder_ != null || errorsConfig_ != null; } /** + * + * *
                * Optional. The desired location of errors incurred during the Import.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The errorsConfig. */ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig() { if (errorsConfigBuilder_ == null) { - return errorsConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; + return errorsConfig_ == null + ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() + : errorsConfig_; } else { return errorsConfigBuilder_.getMessage(); } } /** + * + * *
                * Optional. The desired location of errors incurred during the Import.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setErrorsConfig(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { + public Builder setErrorsConfig( + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { if (errorsConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1116,11 +1308,15 @@ public Builder setErrorsConfig(com.google.cloud.recommendationengine.v1beta1.Imp return this; } /** + * + * *
                * Optional. The desired location of errors incurred during the Import.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setErrorsConfig( com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder builderForValue) { @@ -1134,17 +1330,25 @@ public Builder setErrorsConfig( return this; } /** + * + * *
                * Optional. The desired location of errors incurred during the Import.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeErrorsConfig(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { + public Builder mergeErrorsConfig( + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) { if (errorsConfigBuilder_ == null) { if (errorsConfig_ != null) { errorsConfig_ = - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.newBuilder(errorsConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.newBuilder( + errorsConfig_) + .mergeFrom(value) + .buildPartial(); } else { errorsConfig_ = value; } @@ -1156,11 +1360,15 @@ public Builder mergeErrorsConfig(com.google.cloud.recommendationengine.v1beta1.I return this; } /** + * + * *
                * Optional. The desired location of errors incurred during the Import.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearErrorsConfig() { if (errorsConfigBuilder_ == null) { @@ -1174,55 +1382,73 @@ public Builder clearErrorsConfig() { return this; } /** + * + * *
                * Optional. The desired location of errors incurred during the Import.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder getErrorsConfigBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder + getErrorsConfigBuilder() { + onChanged(); return getErrorsConfigFieldBuilder().getBuilder(); } /** + * + * *
                * Optional. The desired location of errors incurred during the Import.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder + getErrorsConfigOrBuilder() { if (errorsConfigBuilder_ != null) { return errorsConfigBuilder_.getMessageOrBuilder(); } else { - return errorsConfig_ == null ? - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; + return errorsConfig_ == null + ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() + : errorsConfig_; } } /** + * + * *
                * Optional. The desired location of errors incurred during the Import.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> getErrorsConfigFieldBuilder() { if (errorsConfigBuilder_ == null) { - errorsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder>( - getErrorsConfig(), - getParentForChildren(), - isClean()); + errorsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder>( + getErrorsConfig(), getParentForChildren(), isClean()); errorsConfig_ = null; } return errorsConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1232,30 +1458,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) - private static final com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportUserEventsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportUserEventsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportUserEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportUserEventsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1267,9 +1495,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequestOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequestOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequestOrBuilder.java index 4ad3cb75..953d67c9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequestOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ImportUserEventsRequestOrBuilder extends +public interface ImportUserEventsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ImportUserEventsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required.
              * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
              * Required.
              * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
              * Optional. Unique identifier provided by client, within the ancestor
              * dataset scope. Ensures idempotency for expensive long running operations.
          @@ -40,10 +67,13 @@ public interface ImportUserEventsRequestOrBuilder extends
              * 
          * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
              * Optional. Unique identifier provided by client, within the ancestor
              * dataset scope. Ensures idempotency for expensive long running operations.
          @@ -54,62 +84,91 @@ public interface ImportUserEventsRequestOrBuilder extends
              * 
          * * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
              * Required. The desired input location of the data.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
              * Required. The desired input location of the data.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ com.google.cloud.recommendationengine.v1beta1.InputConfig getInputConfig(); /** + * + * *
              * Required. The desired input location of the data.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.InputConfig input_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** + * + * *
              * Optional. The desired location of errors incurred during the Import.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the errorsConfig field is set. */ boolean hasErrorsConfig(); /** + * + * *
              * Optional. The desired location of errors incurred during the Import.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The errorsConfig. */ com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig(); /** + * + * *
              * Optional. The desired location of errors incurred during the Import.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder + getErrorsConfigOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponse.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponse.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponse.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponse.java index 19665b90..cb5634b4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponse.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Response of the ImportUserEventsRequest. If the long running
            * operation was successful, then this message is returned by the
          @@ -12,31 +29,31 @@
            *
            * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse}
            */
          -public final class ImportUserEventsResponse extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class ImportUserEventsResponse extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse)
               ImportUserEventsResponseOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use ImportUserEventsResponse.newBuilder() to construct.
             private ImportUserEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          +
             private ImportUserEventsResponse() {
               errorSamples_ = java.util.Collections.emptyList();
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new ImportUserEventsResponse();
             }
           
             @java.lang.Override
          -  public final com.google.protobuf.UnknownFieldSet
          -  getUnknownFields() {
          +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
               return this.unknownFields;
             }
          +
             private ImportUserEventsResponse(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          @@ -56,48 +73,59 @@ private ImportUserEventsResponse(
                     case 0:
                       done = true;
                       break;
          -          case 10: {
          -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          -              errorSamples_ = new java.util.ArrayList();
          -              mutable_bitField0_ |= 0x00000001;
          -            }
          -            errorSamples_.add(
          -                input.readMessage(com.google.rpc.Status.parser(), extensionRegistry));
          -            break;
          -          }
          -          case 18: {
          -            com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder subBuilder = null;
          -            if (errorsConfig_ != null) {
          -              subBuilder = errorsConfig_.toBuilder();
          -            }
          -            errorsConfig_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.parser(), extensionRegistry);
          -            if (subBuilder != null) {
          -              subBuilder.mergeFrom(errorsConfig_);
          -              errorsConfig_ = subBuilder.buildPartial();
          +          case 10:
          +            {
          +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          +                errorSamples_ = new java.util.ArrayList();
          +                mutable_bitField0_ |= 0x00000001;
          +              }
          +              errorSamples_.add(
          +                  input.readMessage(com.google.rpc.Status.parser(), extensionRegistry));
          +              break;
                       }
          +          case 18:
          +            {
          +              com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder subBuilder =
          +                  null;
          +              if (errorsConfig_ != null) {
          +                subBuilder = errorsConfig_.toBuilder();
          +              }
          +              errorsConfig_ =
          +                  input.readMessage(
          +                      com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.parser(),
          +                      extensionRegistry);
          +              if (subBuilder != null) {
          +                subBuilder.mergeFrom(errorsConfig_);
          +                errorsConfig_ = subBuilder.buildPartial();
          +              }
           
          -            break;
          -          }
          -          case 26: {
          -            com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder subBuilder = null;
          -            if (importSummary_ != null) {
          -              subBuilder = importSummary_.toBuilder();
          -            }
          -            importSummary_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.parser(), extensionRegistry);
          -            if (subBuilder != null) {
          -              subBuilder.mergeFrom(importSummary_);
          -              importSummary_ = subBuilder.buildPartial();
          +              break;
                       }
          +          case 26:
          +            {
          +              com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder
          +                  subBuilder = null;
          +              if (importSummary_ != null) {
          +                subBuilder = importSummary_.toBuilder();
          +              }
          +              importSummary_ =
          +                  input.readMessage(
          +                      com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.parser(),
          +                      extensionRegistry);
          +              if (subBuilder != null) {
          +                subBuilder.mergeFrom(importSummary_);
          +                importSummary_ = subBuilder.buildPartial();
          +              }
           
          -            break;
          -          }
          -          default: {
          -            if (!parseUnknownField(
          -                input, unknownFields, extensionRegistry, tag)) {
          -              done = true;
          +              break;
          +            }
          +          default:
          +            {
          +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
          +                done = true;
          +              }
          +              break;
                       }
          -            break;
          -          }
                   }
                 }
               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          @@ -105,8 +133,7 @@ private ImportUserEventsResponse(
               } catch (com.google.protobuf.UninitializedMessageException e) {
                 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
               } catch (java.io.IOException e) {
          -      throw new com.google.protobuf.InvalidProtocolBufferException(
          -          e).setUnfinishedMessage(this);
          +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
               } finally {
                 if (((mutable_bitField0_ & 0x00000001) != 0)) {
                   errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_);
          @@ -115,22 +142,27 @@ private ImportUserEventsResponse(
                 makeExtensionsImmutable();
               }
             }
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor;
          +
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.cloud.recommendationengine.v1beta1.Import
          +        .internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_fieldAccessorTable
          +    return com.google.cloud.recommendationengine.v1beta1.Import
          +        .internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.class, com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.Builder.class);
          +            com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.class,
          +            com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.Builder.class);
             }
           
             public static final int ERROR_SAMPLES_FIELD_NUMBER = 1;
             private java.util.List errorSamples_;
             /**
          +   *
          +   *
              * 
              * A sample of errors encountered while processing the request.
              * 
          @@ -142,6 +174,8 @@ public java.util.List getErrorSamplesList() { return errorSamples_; } /** + * + * *
              * A sample of errors encountered while processing the request.
              * 
          @@ -149,11 +183,12 @@ public java.util.List getErrorSamplesList() { * repeated .google.rpc.Status error_samples = 1; */ @java.lang.Override - public java.util.List - getErrorSamplesOrBuilderList() { + public java.util.List getErrorSamplesOrBuilderList() { return errorSamples_; } /** + * + * *
              * A sample of errors encountered while processing the request.
              * 
          @@ -165,6 +200,8 @@ public int getErrorSamplesCount() { return errorSamples_.size(); } /** + * + * *
              * A sample of errors encountered while processing the request.
              * 
          @@ -176,6 +213,8 @@ public com.google.rpc.Status getErrorSamples(int index) { return errorSamples_.get(index); } /** + * + * *
              * A sample of errors encountered while processing the request.
              * 
          @@ -183,20 +222,22 @@ public com.google.rpc.Status getErrorSamples(int index) { * repeated .google.rpc.Status error_samples = 1; */ @java.lang.Override - public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder( - int index) { + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { return errorSamples_.get(index); } public static final int ERRORS_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errorsConfig_; /** + * + * *
              * Echoes the destination for the complete errors if this field was set in
              * the request.
              * 
          * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; + * * @return Whether the errorsConfig field is set. */ @java.lang.Override @@ -204,19 +245,26 @@ public boolean hasErrorsConfig() { return errorsConfig_ != null; } /** + * + * *
              * Echoes the destination for the complete errors if this field was set in
              * the request.
              * 
          * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; + * * @return The errorsConfig. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig() { - return errorsConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; + return errorsConfig_ == null + ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() + : errorsConfig_; } /** + * + * *
              * Echoes the destination for the complete errors if this field was set in
              * the request.
          @@ -225,18 +273,23 @@ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getError
              * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2;
              */
             @java.lang.Override
          -  public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder() {
          +  public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder
          +      getErrorsConfigOrBuilder() {
               return getErrorsConfig();
             }
           
             public static final int IMPORT_SUMMARY_FIELD_NUMBER = 3;
             private com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary importSummary_;
             /**
          +   *
          +   *
              * 
              * Aggregated statistics of user event import status.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * + * * @return Whether the importSummary field is set. */ @java.lang.Override @@ -244,30 +297,41 @@ public boolean hasImportSummary() { return importSummary_ != null; } /** + * + * *
              * Aggregated statistics of user event import status.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * + * * @return The importSummary. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary getImportSummary() { - return importSummary_ == null ? com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.getDefaultInstance() : importSummary_; + return importSummary_ == null + ? com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.getDefaultInstance() + : importSummary_; } /** + * + * *
              * Aggregated statistics of user event import status.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder getImportSummaryOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder + getImportSummaryOrBuilder() { return getImportSummary(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -279,8 +343,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < errorSamples_.size(); i++) { output.writeMessage(1, errorSamples_.get(i)); } @@ -300,16 +363,13 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < errorSamples_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, errorSamples_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, errorSamples_.get(i)); } if (errorsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getErrorsConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getErrorsConfig()); } if (importSummary_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getImportSummary()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImportSummary()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -319,24 +379,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse other = (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse) obj; + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse other = + (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse) obj; - if (!getErrorSamplesList() - .equals(other.getErrorSamplesList())) return false; + if (!getErrorSamplesList().equals(other.getErrorSamplesList())) return false; if (hasErrorsConfig() != other.hasErrorsConfig()) return false; if (hasErrorsConfig()) { - if (!getErrorsConfig() - .equals(other.getErrorsConfig())) return false; + if (!getErrorsConfig().equals(other.getErrorsConfig())) return false; } if (hasImportSummary() != other.hasImportSummary()) return false; if (hasImportSummary()) { - if (!getImportSummary() - .equals(other.getImportSummary())) return false; + if (!getImportSummary().equals(other.getImportSummary())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -367,96 +425,105 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Response of the ImportUserEventsRequest. If the long running
              * operation was successful, then this message is returned by the
          @@ -465,39 +532,42 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse)
                 com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponseOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.cloud.recommendationengine.v1beta1.Import
          +          .internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_fieldAccessorTable
          +      return com.google.cloud.recommendationengine.v1beta1.Import
          +          .internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.class, com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.Builder.class);
          +              com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.class,
          +              com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.Builder.class);
               }
           
          -    // Construct using com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.newBuilder()
          +    // Construct using
          +    // com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.newBuilder()
               private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          +
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3
          -              .alwaysUseFieldBuilders) {
          +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                   getErrorSamplesFieldBuilder();
                 }
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -523,19 +593,22 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.cloud.recommendationengine.v1beta1.Import
          +          .internal_static_google_cloud_recommendationengine_v1beta1_ImportUserEventsResponse_descriptor;
               }
           
               @java.lang.Override
          -    public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse getDefaultInstanceForType() {
          -      return com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.getDefaultInstance();
          +    public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse
          +        getDefaultInstanceForType() {
          +      return com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse
          +          .getDefaultInstance();
               }
           
               @java.lang.Override
               public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse build() {
          -      com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse result = buildPartial();
          +      com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse result =
          +          buildPartial();
                 if (!result.isInitialized()) {
                   throw newUninitializedMessageException(result);
                 }
          @@ -544,7 +617,8 @@ public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse bu
           
               @java.lang.Override
               public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse buildPartial() {
          -      com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse result = new com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse(this);
          +      com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse result =
          +          new com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse(this);
                 int from_bitField0_ = bitField0_;
                 if (errorSamplesBuilder_ == null) {
                   if (((bitField0_ & 0x00000001) != 0)) {
          @@ -573,46 +647,51 @@ public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse bu
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                 return super.setField(field, value);
               }
          +
               @java.lang.Override
          -    public Builder clearField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field) {
          +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                 return super.clearField(field);
               }
          +
               @java.lang.Override
          -    public Builder clearOneof(
          -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
          +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                 return super.clearOneof(oneof);
               }
          +
               @java.lang.Override
               public Builder setRepeatedField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        int index, java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                 return super.setRepeatedField(field, index, value);
               }
          +
               @java.lang.Override
               public Builder addRepeatedField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                 return super.addRepeatedField(field, value);
               }
          +
               @java.lang.Override
               public Builder mergeFrom(com.google.protobuf.Message other) {
                 if (other instanceof com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse) {
          -        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse)other);
          +        return mergeFrom(
          +            (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
                 }
               }
           
          -    public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse other) {
          -      if (other == com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse.getDefaultInstance()) return this;
          +    public Builder mergeFrom(
          +        com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse other) {
          +      if (other
          +          == com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse
          +              .getDefaultInstance()) return this;
                 if (errorSamplesBuilder_ == null) {
                   if (!other.errorSamples_.isEmpty()) {
                     if (errorSamples_.isEmpty()) {
          @@ -631,9 +710,10 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ImportUse
                       errorSamplesBuilder_ = null;
                       errorSamples_ = other.errorSamples_;
                       bitField0_ = (bitField0_ & ~0x00000001);
          -            errorSamplesBuilder_ = 
          -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          -                 getErrorSamplesFieldBuilder() : null;
          +            errorSamplesBuilder_ =
          +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          +                    ? getErrorSamplesFieldBuilder()
          +                    : null;
                     } else {
                       errorSamplesBuilder_.addAllMessages(other.errorSamples_);
                     }
          @@ -664,7 +744,9 @@ public Builder mergeFrom(
                 try {
                   parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          -        parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse) e.getUnfinishedMessage();
          +        parsedMessage =
          +            (com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse)
          +                e.getUnfinishedMessage();
                   throw e.unwrapIOException();
                 } finally {
                   if (parsedMessage != null) {
          @@ -673,21 +755,25 @@ public Builder mergeFrom(
                 }
                 return this;
               }
          +
               private int bitField0_;
           
          -    private java.util.List errorSamples_ =
          -      java.util.Collections.emptyList();
          +    private java.util.List errorSamples_ = java.util.Collections.emptyList();
          +
               private void ensureErrorSamplesIsMutable() {
                 if (!((bitField0_ & 0x00000001) != 0)) {
                   errorSamples_ = new java.util.ArrayList(errorSamples_);
                   bitField0_ |= 0x00000001;
          -       }
          +      }
               }
           
               private com.google.protobuf.RepeatedFieldBuilderV3<
          -        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorSamplesBuilder_;
          +            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
          +        errorSamplesBuilder_;
           
               /**
          +     *
          +     *
                * 
                * A sample of errors encountered while processing the request.
                * 
          @@ -702,6 +788,8 @@ public java.util.List getErrorSamplesList() { } } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          @@ -716,6 +804,8 @@ public int getErrorSamplesCount() { } } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          @@ -730,14 +820,15 @@ public com.google.rpc.Status getErrorSamples(int index) { } } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public Builder setErrorSamples( - int index, com.google.rpc.Status value) { + public Builder setErrorSamples(int index, com.google.rpc.Status value) { if (errorSamplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -751,14 +842,15 @@ public Builder setErrorSamples( return this; } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public Builder setErrorSamples( - int index, com.google.rpc.Status.Builder builderForValue) { + public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { if (errorSamplesBuilder_ == null) { ensureErrorSamplesIsMutable(); errorSamples_.set(index, builderForValue.build()); @@ -769,6 +861,8 @@ public Builder setErrorSamples( return this; } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          @@ -789,14 +883,15 @@ public Builder addErrorSamples(com.google.rpc.Status value) { return this; } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public Builder addErrorSamples( - int index, com.google.rpc.Status value) { + public Builder addErrorSamples(int index, com.google.rpc.Status value) { if (errorSamplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -810,14 +905,15 @@ public Builder addErrorSamples( return this; } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public Builder addErrorSamples( - com.google.rpc.Status.Builder builderForValue) { + public Builder addErrorSamples(com.google.rpc.Status.Builder builderForValue) { if (errorSamplesBuilder_ == null) { ensureErrorSamplesIsMutable(); errorSamples_.add(builderForValue.build()); @@ -828,14 +924,15 @@ public Builder addErrorSamples( return this; } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public Builder addErrorSamples( - int index, com.google.rpc.Status.Builder builderForValue) { + public Builder addErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { if (errorSamplesBuilder_ == null) { ensureErrorSamplesIsMutable(); errorSamples_.add(index, builderForValue.build()); @@ -846,18 +943,18 @@ public Builder addErrorSamples( return this; } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public Builder addAllErrorSamples( - java.lang.Iterable values) { + public Builder addAllErrorSamples(java.lang.Iterable values) { if (errorSamplesBuilder_ == null) { ensureErrorSamplesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, errorSamples_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorSamples_); onChanged(); } else { errorSamplesBuilder_.addAllMessages(values); @@ -865,6 +962,8 @@ public Builder addAllErrorSamples( return this; } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          @@ -882,6 +981,8 @@ public Builder clearErrorSamples() { return this; } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          @@ -899,39 +1000,43 @@ public Builder removeErrorSamples(int index) { return this; } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public com.google.rpc.Status.Builder getErrorSamplesBuilder( - int index) { + public com.google.rpc.Status.Builder getErrorSamplesBuilder(int index) { return getErrorSamplesFieldBuilder().getBuilder(index); } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder( - int index) { + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { if (errorSamplesBuilder_ == null) { - return errorSamples_.get(index); } else { + return errorSamples_.get(index); + } else { return errorSamplesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public java.util.List - getErrorSamplesOrBuilderList() { + public java.util.List getErrorSamplesOrBuilderList() { if (errorSamplesBuilder_ != null) { return errorSamplesBuilder_.getMessageOrBuilderList(); } else { @@ -939,6 +1044,8 @@ public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder( } } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          @@ -946,42 +1053,44 @@ public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder( * repeated .google.rpc.Status error_samples = 1; */ public com.google.rpc.Status.Builder addErrorSamplesBuilder() { - return getErrorSamplesFieldBuilder().addBuilder( - com.google.rpc.Status.getDefaultInstance()); + return getErrorSamplesFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public com.google.rpc.Status.Builder addErrorSamplesBuilder( - int index) { - return getErrorSamplesFieldBuilder().addBuilder( - index, com.google.rpc.Status.getDefaultInstance()); + public com.google.rpc.Status.Builder addErrorSamplesBuilder(int index) { + return getErrorSamplesFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); } /** + * + * *
                * A sample of errors encountered while processing the request.
                * 
          * * repeated .google.rpc.Status error_samples = 1; */ - public java.util.List - getErrorSamplesBuilderList() { + public java.util.List getErrorSamplesBuilderList() { return getErrorSamplesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getErrorSamplesFieldBuilder() { if (errorSamplesBuilder_ == null) { - errorSamplesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - errorSamples_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + errorSamplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + errorSamples_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); errorSamples_ = null; } return errorSamplesBuilder_; @@ -989,36 +1098,49 @@ public com.google.rpc.Status.Builder addErrorSamplesBuilder( private com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errorsConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> errorsConfigBuilder_; + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, + com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> + errorsConfigBuilder_; /** + * + * *
                * Echoes the destination for the complete errors if this field was set in
                * the request.
                * 
          * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; + * * @return Whether the errorsConfig field is set. */ public boolean hasErrorsConfig() { return errorsConfigBuilder_ != null || errorsConfig_ != null; } /** + * + * *
                * Echoes the destination for the complete errors if this field was set in
                * the request.
                * 
          * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; + * * @return The errorsConfig. */ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig() { if (errorsConfigBuilder_ == null) { - return errorsConfig_ == null ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_; + return errorsConfig_ == null + ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() + : errorsConfig_; } else { return errorsConfigBuilder_.getMessage(); } } /** + * + * *
                * Echoes the destination for the complete errors if this field was set in
                * the request.
          @@ -1026,7 +1148,8 @@ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getError
                *
                * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2;
                */
          -    public Builder setErrorsConfig(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) {
          +    public Builder setErrorsConfig(
          +        com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) {
                 if (errorsConfigBuilder_ == null) {
                   if (value == null) {
                     throw new NullPointerException();
          @@ -1040,6 +1163,8 @@ public Builder setErrorsConfig(com.google.cloud.recommendationengine.v1beta1.Imp
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Echoes the destination for the complete errors if this field was set in
                * the request.
          @@ -1059,6 +1184,8 @@ public Builder setErrorsConfig(
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Echoes the destination for the complete errors if this field was set in
                * the request.
          @@ -1066,11 +1193,15 @@ public Builder setErrorsConfig(
                *
                * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2;
                */
          -    public Builder mergeErrorsConfig(com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) {
          +    public Builder mergeErrorsConfig(
          +        com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig value) {
                 if (errorsConfigBuilder_ == null) {
                   if (errorsConfig_ != null) {
                     errorsConfig_ =
          -            com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.newBuilder(errorsConfig_).mergeFrom(value).buildPartial();
          +              com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.newBuilder(
          +                      errorsConfig_)
          +                  .mergeFrom(value)
          +                  .buildPartial();
                   } else {
                     errorsConfig_ = value;
                   }
          @@ -1082,6 +1213,8 @@ public Builder mergeErrorsConfig(com.google.cloud.recommendationengine.v1beta1.I
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Echoes the destination for the complete errors if this field was set in
                * the request.
          @@ -1101,6 +1234,8 @@ public Builder clearErrorsConfig() {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Echoes the destination for the complete errors if this field was set in
                * the request.
          @@ -1108,12 +1243,15 @@ public Builder clearErrorsConfig() {
                *
                * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2;
                */
          -    public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder getErrorsConfigBuilder() {
          -      
          +    public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder
          +        getErrorsConfigBuilder() {
          +
                 onChanged();
                 return getErrorsConfigFieldBuilder().getBuilder();
               }
               /**
          +     *
          +     *
                * 
                * Echoes the destination for the complete errors if this field was set in
                * the request.
          @@ -1121,15 +1259,19 @@ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder
                *
                * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2;
                */
          -    public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder() {
          +    public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder
          +        getErrorsConfigOrBuilder() {
                 if (errorsConfigBuilder_ != null) {
                   return errorsConfigBuilder_.getMessageOrBuilder();
                 } else {
          -        return errorsConfig_ == null ?
          -            com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance() : errorsConfig_;
          +        return errorsConfig_ == null
          +            ? com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.getDefaultInstance()
          +            : errorsConfig_;
                 }
               }
               /**
          +     *
          +     *
                * 
                * Echoes the destination for the complete errors if this field was set in
                * the request.
          @@ -1138,14 +1280,17 @@ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder
                * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder> 
          +            com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig,
          +            com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder,
          +            com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder>
                   getErrorsConfigFieldBuilder() {
                 if (errorsConfigBuilder_ == null) {
          -        errorsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder, com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder>(
          -                getErrorsConfig(),
          -                getParentForChildren(),
          -                isClean());
          +        errorsConfigBuilder_ =
          +            new com.google.protobuf.SingleFieldBuilderV3<
          +                com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig,
          +                com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig.Builder,
          +                com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder>(
          +                getErrorsConfig(), getParentForChildren(), isClean());
                   errorsConfig_ = null;
                 }
                 return errorsConfigBuilder_;
          @@ -1153,41 +1298,59 @@ public com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder
           
               private com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary importSummary_;
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary, com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder> importSummaryBuilder_;
          +            com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary,
          +            com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder,
          +            com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder>
          +        importSummaryBuilder_;
               /**
          +     *
          +     *
                * 
                * Aggregated statistics of user event import status.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * + * * @return Whether the importSummary field is set. */ public boolean hasImportSummary() { return importSummaryBuilder_ != null || importSummary_ != null; } /** + * + * *
                * Aggregated statistics of user event import status.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * + * * @return The importSummary. */ public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary getImportSummary() { if (importSummaryBuilder_ == null) { - return importSummary_ == null ? com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.getDefaultInstance() : importSummary_; + return importSummary_ == null + ? com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary + .getDefaultInstance() + : importSummary_; } else { return importSummaryBuilder_.getMessage(); } } /** + * + * *
                * Aggregated statistics of user event import status.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * */ - public Builder setImportSummary(com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary value) { + public Builder setImportSummary( + com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary value) { if (importSummaryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1201,14 +1364,18 @@ public Builder setImportSummary(com.google.cloud.recommendationengine.v1beta1.Us return this; } /** + * + * *
                * Aggregated statistics of user event import status.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * */ public Builder setImportSummary( - com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder builderForValue) { + com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder + builderForValue) { if (importSummaryBuilder_ == null) { importSummary_ = builderForValue.build(); onChanged(); @@ -1219,17 +1386,24 @@ public Builder setImportSummary( return this; } /** + * + * *
                * Aggregated statistics of user event import status.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * */ - public Builder mergeImportSummary(com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary value) { + public Builder mergeImportSummary( + com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary value) { if (importSummaryBuilder_ == null) { if (importSummary_ != null) { importSummary_ = - com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.newBuilder(importSummary_).mergeFrom(value).buildPartial(); + com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.newBuilder( + importSummary_) + .mergeFrom(value) + .buildPartial(); } else { importSummary_ = value; } @@ -1241,11 +1415,14 @@ public Builder mergeImportSummary(com.google.cloud.recommendationengine.v1beta1. return this; } /** + * + * *
                * Aggregated statistics of user event import status.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * */ public Builder clearImportSummary() { if (importSummaryBuilder_ == null) { @@ -1259,55 +1436,71 @@ public Builder clearImportSummary() { return this; } /** + * + * *
                * Aggregated statistics of user event import status.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * */ - public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder getImportSummaryBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder + getImportSummaryBuilder() { + onChanged(); return getImportSummaryFieldBuilder().getBuilder(); } /** + * + * *
                * Aggregated statistics of user event import status.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * */ - public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder getImportSummaryOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder + getImportSummaryOrBuilder() { if (importSummaryBuilder_ != null) { return importSummaryBuilder_.getMessageOrBuilder(); } else { - return importSummary_ == null ? - com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.getDefaultInstance() : importSummary_; + return importSummary_ == null + ? com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary + .getDefaultInstance() + : importSummary_; } } /** + * + * *
                * Aggregated statistics of user event import status.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary, com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder> + com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary, + com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder, + com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder> getImportSummaryFieldBuilder() { if (importSummaryBuilder_ == null) { - importSummaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary, com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder>( - getImportSummary(), - getParentForChildren(), - isClean()); + importSummaryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary, + com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder, + com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder>( + getImportSummary(), getParentForChildren(), isClean()); importSummary_ = null; } return importSummaryBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1317,30 +1510,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse) - private static final com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse(); } - public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportUserEventsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportUserEventsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportUserEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportUserEventsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1352,9 +1547,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponseOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponseOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponseOrBuilder.java index 8a9c5ee6..c960840c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponseOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ImportUserEventsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ImportUserEventsResponseOrBuilder extends +public interface ImportUserEventsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * A sample of errors encountered while processing the request.
              * 
          * * repeated .google.rpc.Status error_samples = 1; */ - java.util.List - getErrorSamplesList(); + java.util.List getErrorSamplesList(); /** + * + * *
              * A sample of errors encountered while processing the request.
              * 
          @@ -25,6 +44,8 @@ public interface ImportUserEventsResponseOrBuilder extends */ com.google.rpc.Status getErrorSamples(int index); /** + * + * *
              * A sample of errors encountered while processing the request.
              * 
          @@ -33,45 +54,55 @@ public interface ImportUserEventsResponseOrBuilder extends */ int getErrorSamplesCount(); /** + * + * *
              * A sample of errors encountered while processing the request.
              * 
          * * repeated .google.rpc.Status error_samples = 1; */ - java.util.List - getErrorSamplesOrBuilderList(); + java.util.List getErrorSamplesOrBuilderList(); /** + * + * *
              * A sample of errors encountered while processing the request.
              * 
          * * repeated .google.rpc.Status error_samples = 1; */ - com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder( - int index); + com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index); /** + * + * *
              * Echoes the destination for the complete errors if this field was set in
              * the request.
              * 
          * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; + * * @return Whether the errorsConfig field is set. */ boolean hasErrorsConfig(); /** + * + * *
              * Echoes the destination for the complete errors if this field was set in
              * the request.
              * 
          * * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2; + * * @return The errorsConfig. */ com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig getErrorsConfig(); /** + * + * *
              * Echoes the destination for the complete errors if this field was set in
              * the request.
          @@ -79,32 +110,45 @@ com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(
              *
              * .google.cloud.recommendationengine.v1beta1.ImportErrorsConfig errors_config = 2;
              */
          -  com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder getErrorsConfigOrBuilder();
          +  com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfigOrBuilder
          +      getErrorsConfigOrBuilder();
           
             /**
          +   *
          +   *
              * 
              * Aggregated statistics of user event import status.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * + * * @return Whether the importSummary field is set. */ boolean hasImportSummary(); /** + * + * *
              * Aggregated statistics of user event import status.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * + * * @return The importSummary. */ com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary getImportSummary(); /** + * + * *
              * Aggregated statistics of user event import status.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * .google.cloud.recommendationengine.v1beta1.UserEventImportSummary import_summary = 3; + * */ - com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder getImportSummaryOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder + getImportSummaryOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfig.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfig.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfig.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfig.java index bf66f48c..cec596d6 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfig.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * The input config source.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.InputConfig} */ -public final class InputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.InputConfig) InputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InputConfig.newBuilder() to construct. private InputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InputConfig() { - } + + private InputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private InputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,55 +68,74 @@ private InputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_).toBuilder(); + case 10: + { + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder subBuilder = + null; + if (sourceCase_ == 1) { + subBuilder = + ((com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_) + .toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 1; + break; } - source_ = - input.readMessage(com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_); - source_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = + ((com.google.cloud.recommendationengine.v1beta1.GcsSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.GcsSource.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.GcsSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 2; + break; } - sourceCase_ = 1; - break; - } - case 18: { - com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 2) { - subBuilder = ((com.google.cloud.recommendationengine.v1beta1.GcsSource) source_).toBuilder(); + case 26: + { + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder + subBuilder = null; + if (sourceCase_ == 3) { + subBuilder = + ((com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_) + .toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 3; + break; } - source_ = - input.readMessage(com.google.cloud.recommendationengine.v1beta1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.recommendationengine.v1beta1.GcsSource) source_); - source_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - sourceCase_ = 2; - break; - } - case 26: { - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder subBuilder = null; - if (sourceCase_ == 3) { - subBuilder = ((com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_).toBuilder(); - } - source_ = - input.readMessage(com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 3; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,36 +143,41 @@ private InputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.InputConfig.class, com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder.class); + com.google.cloud.recommendationengine.v1beta1.InputConfig.class, + com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CATALOG_INLINE_SOURCE(1), GCS_SOURCE(2), USER_EVENT_INLINE_SOURCE(3), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -153,31 +193,39 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 1: return CATALOG_INLINE_SOURCE; - case 2: return GCS_SOURCE; - case 3: return USER_EVENT_INLINE_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 1: + return CATALOG_INLINE_SOURCE; + case 2: + return GCS_SOURCE; + case 3: + return USER_EVENT_INLINE_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int CATALOG_INLINE_SOURCE_FIELD_NUMBER = 1; /** + * + * *
              * The Inline source for the input content for Catalog items.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * + * * @return Whether the catalogInlineSource field is set. */ @java.lang.Override @@ -185,42 +233,54 @@ public boolean hasCatalogInlineSource() { return sourceCase_ == 1; } /** + * + * *
              * The Inline source for the input content for Catalog items.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * + * * @return The catalogInlineSource. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource getCatalogInlineSource() { + public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource + getCatalogInlineSource() { if (sourceCase_ == 1) { - return (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_; + return (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_; } return com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.getDefaultInstance(); } /** + * + * *
              * The Inline source for the input content for Catalog items.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder getCatalogInlineSourceOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder + getCatalogInlineSourceOrBuilder() { if (sourceCase_ == 1) { - return (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_; + return (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_; } return com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.getDefaultInstance(); } public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** + * + * *
              * Google Cloud Storage location for the input content.
              * 
          * * .google.cloud.recommendationengine.v1beta1.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -228,21 +288,26 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
              * Google Cloud Storage location for the input content.
              * 
          * * .google.cloud.recommendationengine.v1beta1.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.recommendationengine.v1beta1.GcsSource) source_; + return (com.google.cloud.recommendationengine.v1beta1.GcsSource) source_; } return com.google.cloud.recommendationengine.v1beta1.GcsSource.getDefaultInstance(); } /** + * + * *
              * Google Cloud Storage location for the input content.
              * 
          @@ -252,18 +317,23 @@ public com.google.cloud.recommendationengine.v1beta1.GcsSource getGcsSource() { @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { if (sourceCase_ == 2) { - return (com.google.cloud.recommendationengine.v1beta1.GcsSource) source_; + return (com.google.cloud.recommendationengine.v1beta1.GcsSource) source_; } return com.google.cloud.recommendationengine.v1beta1.GcsSource.getDefaultInstance(); } public static final int USER_EVENT_INLINE_SOURCE_FIELD_NUMBER = 3; /** + * + * *
              * The Inline source for the input content for UserEvents.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * + * * @return Whether the userEventInlineSource field is set. */ @java.lang.Override @@ -271,36 +341,48 @@ public boolean hasUserEventInlineSource() { return sourceCase_ == 3; } /** + * + * *
              * The Inline source for the input content for UserEvents.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * + * * @return The userEventInlineSource. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource getUserEventInlineSource() { + public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource + getUserEventInlineSource() { if (sourceCase_ == 3) { - return (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_; + return (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_; } return com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.getDefaultInstance(); } /** + * + * *
              * The Inline source for the input content for UserEvents.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder getUserEventInlineSourceOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder + getUserEventInlineSourceOrBuilder() { if (sourceCase_ == 3) { - return (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_; + return (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_; } return com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -312,16 +394,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sourceCase_ == 1) { - output.writeMessage(1, (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_); + output.writeMessage( + 1, (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_); } if (sourceCase_ == 2) { output.writeMessage(2, (com.google.cloud.recommendationengine.v1beta1.GcsSource) source_); } if (sourceCase_ == 3) { - output.writeMessage(3, (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_); + output.writeMessage( + 3, (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_); } unknownFields.writeTo(output); } @@ -333,16 +416,19 @@ public int getSerializedSize() { size = 0; if (sourceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_); } if (sourceCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.recommendationengine.v1beta1.GcsSource) source_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.recommendationengine.v1beta1.GcsSource) source_); } if (sourceCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -352,26 +438,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.InputConfig)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.InputConfig other = (com.google.cloud.recommendationengine.v1beta1.InputConfig) obj; + com.google.cloud.recommendationengine.v1beta1.InputConfig other = + (com.google.cloud.recommendationengine.v1beta1.InputConfig) obj; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: - if (!getCatalogInlineSource() - .equals(other.getCatalogInlineSource())) return false; + if (!getCatalogInlineSource().equals(other.getCatalogInlineSource())) return false; break; case 2: - if (!getGcsSource() - .equals(other.getGcsSource())) return false; + if (!getGcsSource().equals(other.getGcsSource())) return false; break; case 3: - if (!getUserEventInlineSource() - .equals(other.getUserEventInlineSource())) return false; + if (!getUserEventInlineSource().equals(other.getUserEventInlineSource())) return false; break; case 0: default: @@ -409,117 +493,127 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.InputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.InputConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.InputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * The input config source.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.InputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.InputConfig) com.google.cloud.recommendationengine.v1beta1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.InputConfig.class, com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder.class); + com.google.cloud.recommendationengine.v1beta1.InputConfig.class, + com.google.cloud.recommendationengine.v1beta1.InputConfig.Builder.class); } // Construct using com.google.cloud.recommendationengine.v1beta1.InputConfig.newBuilder() @@ -527,16 +621,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -546,9 +639,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_InputConfig_descriptor; } @java.lang.Override @@ -567,7 +660,8 @@ public com.google.cloud.recommendationengine.v1beta1.InputConfig build() { @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.InputConfig buildPartial() { - com.google.cloud.recommendationengine.v1beta1.InputConfig result = new com.google.cloud.recommendationengine.v1beta1.InputConfig(this); + com.google.cloud.recommendationengine.v1beta1.InputConfig result = + new com.google.cloud.recommendationengine.v1beta1.InputConfig(this); if (sourceCase_ == 1) { if (catalogInlineSourceBuilder_ == null) { result.source_ = source_; @@ -598,38 +692,39 @@ public com.google.cloud.recommendationengine.v1beta1.InputConfig buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.InputConfig) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.InputConfig)other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.InputConfig) other); } else { super.mergeFrom(other); return this; @@ -637,23 +732,28 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.InputConfig other) { - if (other == com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.recommendationengine.v1beta1.InputConfig.getDefaultInstance()) + return this; switch (other.getSourceCase()) { - case CATALOG_INLINE_SOURCE: { - mergeCatalogInlineSource(other.getCatalogInlineSource()); - break; - } - case GCS_SOURCE: { - mergeGcsSource(other.getGcsSource()); - break; - } - case USER_EVENT_INLINE_SOURCE: { - mergeUserEventInlineSource(other.getUserEventInlineSource()); - break; - } - case SOURCE_NOT_SET: { - break; - } + case CATALOG_INLINE_SOURCE: + { + mergeCatalogInlineSource(other.getCatalogInlineSource()); + break; + } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case USER_EVENT_INLINE_SOURCE: + { + mergeUserEventInlineSource(other.getUserEventInlineSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -674,7 +774,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.InputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.InputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -683,12 +784,12 @@ public Builder mergeFrom( } return this; } + private int sourceCase_ = 0; private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public Builder clearSource() { @@ -698,15 +799,22 @@ public Builder clearSource() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource, com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder> catalogInlineSourceBuilder_; + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource, + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder, + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder> + catalogInlineSourceBuilder_; /** + * + * *
                * The Inline source for the input content for Catalog items.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * + * * @return Whether the catalogInlineSource field is set. */ @java.lang.Override @@ -714,35 +822,48 @@ public boolean hasCatalogInlineSource() { return sourceCase_ == 1; } /** + * + * *
                * The Inline source for the input content for Catalog items.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * + * * @return The catalogInlineSource. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource getCatalogInlineSource() { + public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource + getCatalogInlineSource() { if (catalogInlineSourceBuilder_ == null) { if (sourceCase_ == 1) { return (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_; } - return com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource + .getDefaultInstance(); } else { if (sourceCase_ == 1) { return catalogInlineSourceBuilder_.getMessage(); } - return com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource + .getDefaultInstance(); } } /** + * + * *
                * The Inline source for the input content for Catalog items.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * */ - public Builder setCatalogInlineSource(com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource value) { + public Builder setCatalogInlineSource( + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource value) { if (catalogInlineSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -756,11 +877,15 @@ public Builder setCatalogInlineSource(com.google.cloud.recommendationengine.v1be return this; } /** + * + * *
                * The Inline source for the input content for Catalog items.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * */ public Builder setCatalogInlineSource( com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder builderForValue) { @@ -774,18 +899,28 @@ public Builder setCatalogInlineSource( return this; } /** + * + * *
                * The Inline source for the input content for Catalog items.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * */ - public Builder mergeCatalogInlineSource(com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource value) { + public Builder mergeCatalogInlineSource( + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource value) { if (catalogInlineSourceBuilder_ == null) { - if (sourceCase_ == 1 && - source_ != com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.getDefaultInstance()) { - source_ = com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.newBuilder((com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_) - .mergeFrom(value).buildPartial(); + if (sourceCase_ == 1 + && source_ + != com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource + .getDefaultInstance()) { + source_ = + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.newBuilder( + (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -801,11 +936,15 @@ public Builder mergeCatalogInlineSource(com.google.cloud.recommendationengine.v1 return this; } /** + * + * *
                * The Inline source for the input content for Catalog items.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * */ public Builder clearCatalogInlineSource() { if (catalogInlineSourceBuilder_ == null) { @@ -824,67 +963,96 @@ public Builder clearCatalogInlineSource() { return this; } /** + * + * *
                * The Inline source for the input content for Catalog items.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * */ - public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder getCatalogInlineSourceBuilder() { + public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder + getCatalogInlineSourceBuilder() { return getCatalogInlineSourceFieldBuilder().getBuilder(); } /** + * + * *
                * The Inline source for the input content for Catalog items.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder getCatalogInlineSourceOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder + getCatalogInlineSourceOrBuilder() { if ((sourceCase_ == 1) && (catalogInlineSourceBuilder_ != null)) { return catalogInlineSourceBuilder_.getMessageOrBuilder(); } else { if (sourceCase_ == 1) { return (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_; } - return com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource + .getDefaultInstance(); } } /** + * + * *
                * The Inline source for the input content for Catalog items.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource, com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder> + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource, + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder, + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder> getCatalogInlineSourceFieldBuilder() { if (catalogInlineSourceBuilder_ == null) { if (!(sourceCase_ == 1)) { - source_ = com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.getDefaultInstance(); + source_ = + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource + .getDefaultInstance(); } - catalogInlineSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource, com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder>( + catalogInlineSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource, + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource.Builder, + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder>( (com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 1; - onChanged();; + onChanged(); + ; return catalogInlineSourceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.GcsSource, com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder, com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.recommendationengine.v1beta1.GcsSource, + com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder, + com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
                * Google Cloud Storage location for the input content.
                * 
          * * .google.cloud.recommendationengine.v1beta1.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -892,11 +1060,14 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
                * Google Cloud Storage location for the input content.
                * 
          * * .google.cloud.recommendationengine.v1beta1.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override @@ -914,6 +1085,8 @@ public com.google.cloud.recommendationengine.v1beta1.GcsSource getGcsSource() { } } /** + * + * *
                * Google Cloud Storage location for the input content.
                * 
          @@ -934,6 +1107,8 @@ public Builder setGcsSource(com.google.cloud.recommendationengine.v1beta1.GcsSou return this; } /** + * + * *
                * Google Cloud Storage location for the input content.
                * 
          @@ -952,6 +1127,8 @@ public Builder setGcsSource( return this; } /** + * + * *
                * Google Cloud Storage location for the input content.
                * 
          @@ -960,10 +1137,14 @@ public Builder setGcsSource( */ public Builder mergeGcsSource(com.google.cloud.recommendationengine.v1beta1.GcsSource value) { if (gcsSourceBuilder_ == null) { - if (sourceCase_ == 2 && - source_ != com.google.cloud.recommendationengine.v1beta1.GcsSource.getDefaultInstance()) { - source_ = com.google.cloud.recommendationengine.v1beta1.GcsSource.newBuilder((com.google.cloud.recommendationengine.v1beta1.GcsSource) source_) - .mergeFrom(value).buildPartial(); + if (sourceCase_ == 2 + && source_ + != com.google.cloud.recommendationengine.v1beta1.GcsSource.getDefaultInstance()) { + source_ = + com.google.cloud.recommendationengine.v1beta1.GcsSource.newBuilder( + (com.google.cloud.recommendationengine.v1beta1.GcsSource) source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -979,6 +1160,8 @@ public Builder mergeGcsSource(com.google.cloud.recommendationengine.v1beta1.GcsS return this; } /** + * + * *
                * Google Cloud Storage location for the input content.
                * 
          @@ -1002,6 +1185,8 @@ public Builder clearGcsSource() { return this; } /** + * + * *
                * Google Cloud Storage location for the input content.
                * 
          @@ -1012,6 +1197,8 @@ public com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder getGcsSou return getGcsSourceFieldBuilder().getBuilder(); } /** + * + * *
                * Google Cloud Storage location for the input content.
                * 
          @@ -1019,7 +1206,8 @@ public com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder getGcsSou * .google.cloud.recommendationengine.v1beta1.GcsSource gcs_source = 2; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder + getGcsSourceOrBuilder() { if ((sourceCase_ == 2) && (gcsSourceBuilder_ != null)) { return gcsSourceBuilder_.getMessageOrBuilder(); } else { @@ -1030,6 +1218,8 @@ public com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder getGcsSo } } /** + * + * *
                * Google Cloud Storage location for the input content.
                * 
          @@ -1037,32 +1227,46 @@ public com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder getGcsSo * .google.cloud.recommendationengine.v1beta1.GcsSource gcs_source = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.GcsSource, com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder, com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder> + com.google.cloud.recommendationengine.v1beta1.GcsSource, + com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder, + com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { if (!(sourceCase_ == 2)) { source_ = com.google.cloud.recommendationengine.v1beta1.GcsSource.getDefaultInstance(); } - gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.GcsSource, com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder, com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder>( + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.GcsSource, + com.google.cloud.recommendationengine.v1beta1.GcsSource.Builder, + com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder>( (com.google.cloud.recommendationengine.v1beta1.GcsSource) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 2; - onChanged();; + onChanged(); + ; return gcsSourceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource, com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder> userEventInlineSourceBuilder_; + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource, + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder, + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder> + userEventInlineSourceBuilder_; /** + * + * *
                * The Inline source for the input content for UserEvents.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * + * * @return Whether the userEventInlineSource field is set. */ @java.lang.Override @@ -1070,35 +1274,48 @@ public boolean hasUserEventInlineSource() { return sourceCase_ == 3; } /** + * + * *
                * The Inline source for the input content for UserEvents.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * + * * @return The userEventInlineSource. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource getUserEventInlineSource() { + public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource + getUserEventInlineSource() { if (userEventInlineSourceBuilder_ == null) { if (sourceCase_ == 3) { return (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_; } - return com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource + .getDefaultInstance(); } else { if (sourceCase_ == 3) { return userEventInlineSourceBuilder_.getMessage(); } - return com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource + .getDefaultInstance(); } } /** + * + * *
                * The Inline source for the input content for UserEvents.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * */ - public Builder setUserEventInlineSource(com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource value) { + public Builder setUserEventInlineSource( + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource value) { if (userEventInlineSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1112,14 +1329,19 @@ public Builder setUserEventInlineSource(com.google.cloud.recommendationengine.v1 return this; } /** + * + * *
                * The Inline source for the input content for UserEvents.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * */ public Builder setUserEventInlineSource( - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder builderForValue) { + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder + builderForValue) { if (userEventInlineSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -1130,18 +1352,28 @@ public Builder setUserEventInlineSource( return this; } /** + * + * *
                * The Inline source for the input content for UserEvents.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * */ - public Builder mergeUserEventInlineSource(com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource value) { + public Builder mergeUserEventInlineSource( + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource value) { if (userEventInlineSourceBuilder_ == null) { - if (sourceCase_ == 3 && - source_ != com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.getDefaultInstance()) { - source_ = com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.newBuilder((com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_) - .mergeFrom(value).buildPartial(); + if (sourceCase_ == 3 + && source_ + != com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource + .getDefaultInstance()) { + source_ = + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.newBuilder( + (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -1157,11 +1389,15 @@ public Builder mergeUserEventInlineSource(com.google.cloud.recommendationengine. return this; } /** + * + * *
                * The Inline source for the input content for UserEvents.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * */ public Builder clearUserEventInlineSource() { if (userEventInlineSourceBuilder_ == null) { @@ -1180,61 +1416,84 @@ public Builder clearUserEventInlineSource() { return this; } /** + * + * *
                * The Inline source for the input content for UserEvents.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * */ - public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder getUserEventInlineSourceBuilder() { + public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder + getUserEventInlineSourceBuilder() { return getUserEventInlineSourceFieldBuilder().getBuilder(); } /** + * + * *
                * The Inline source for the input content for UserEvents.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder getUserEventInlineSourceOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder + getUserEventInlineSourceOrBuilder() { if ((sourceCase_ == 3) && (userEventInlineSourceBuilder_ != null)) { return userEventInlineSourceBuilder_.getMessageOrBuilder(); } else { if (sourceCase_ == 3) { return (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_; } - return com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource + .getDefaultInstance(); } } /** + * + * *
                * The Inline source for the input content for UserEvents.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource, com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder> + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource, + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder, + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder> getUserEventInlineSourceFieldBuilder() { if (userEventInlineSourceBuilder_ == null) { if (!(sourceCase_ == 3)) { - source_ = com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.getDefaultInstance(); + source_ = + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource + .getDefaultInstance(); } - userEventInlineSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource, com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder>( + userEventInlineSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource, + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder, + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder>( (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 3; - onChanged();; + onChanged(); + ; return userEventInlineSourceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1244,12 +1503,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.InputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.InputConfig) private static final com.google.cloud.recommendationengine.v1beta1.InputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.InputConfig(); } @@ -1258,16 +1517,16 @@ public static com.google.cloud.recommendationengine.v1beta1.InputConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1282,6 +1541,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.recommendationengine.v1beta1.InputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfigOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfigOrBuilder.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfigOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfigOrBuilder.java index 1e116f2f..03a77960 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfigOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/InputConfigOrBuilder.java @@ -1,58 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; -public interface InputConfigOrBuilder extends +public interface InputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.InputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * The Inline source for the input content for Catalog items.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * + * * @return Whether the catalogInlineSource field is set. */ boolean hasCatalogInlineSource(); /** + * + * *
              * The Inline source for the input content for Catalog items.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * + * * @return The catalogInlineSource. */ com.google.cloud.recommendationengine.v1beta1.CatalogInlineSource getCatalogInlineSource(); /** + * + * *
              * The Inline source for the input content for Catalog items.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * .google.cloud.recommendationengine.v1beta1.CatalogInlineSource catalog_inline_source = 1; + * */ - com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder getCatalogInlineSourceOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.CatalogInlineSourceOrBuilder + getCatalogInlineSourceOrBuilder(); /** + * + * *
              * Google Cloud Storage location for the input content.
              * 
          * * .google.cloud.recommendationengine.v1beta1.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
              * Google Cloud Storage location for the input content.
              * 
          * * .google.cloud.recommendationengine.v1beta1.GcsSource gcs_source = 2; + * * @return The gcsSource. */ com.google.cloud.recommendationengine.v1beta1.GcsSource getGcsSource(); /** + * + * *
              * Google Cloud Storage location for the input content.
              * 
          @@ -62,31 +98,46 @@ public interface InputConfigOrBuilder extends com.google.cloud.recommendationengine.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(); /** + * + * *
              * The Inline source for the input content for UserEvents.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * + * * @return Whether the userEventInlineSource field is set. */ boolean hasUserEventInlineSource(); /** + * + * *
              * The Inline source for the input content for UserEvents.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * + * * @return The userEventInlineSource. */ com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource getUserEventInlineSource(); /** + * + * *
              * The Inline source for the input content for UserEvents.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * + * .google.cloud.recommendationengine.v1beta1.UserEventInlineSource user_event_inline_source = 3; + * */ - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder getUserEventInlineSourceOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder + getUserEventInlineSourceOrBuilder(); public com.google.cloud.recommendationengine.v1beta1.InputConfig.SourceCase getSourceCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequest.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequest.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequest.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequest.java index 1ee0c52d..5baef236 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequest.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog_service.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Request message for ListCatalogItems method.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest} */ -public final class ListCatalogItemsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCatalogItemsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) ListCatalogItemsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCatalogItemsRequest.newBuilder() to construct. private ListCatalogItemsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCatalogItemsRequest() { parent_ = ""; pageToken_ = ""; @@ -27,16 +45,15 @@ private ListCatalogItemsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCatalogItemsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCatalogItemsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListCatalogItemsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - 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; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,35 +112,42 @@ private ListCatalogItemsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.class, com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.class, + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
              * Required. The parent catalog resource name, such as
              * `projects/*/locations/global/catalogs/default_catalog`.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -129,30 +156,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
              * Required. The parent catalog resource name, such as
              * `projects/*/locations/global/catalogs/default_catalog`.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -163,12 +192,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
              * Optional. Maximum number of results to return per page. If zero, the
              * service will choose a reasonable default.
              * 
          * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -179,11 +211,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
              * Optional. The previous ListCatalogItemsResponse.next_page_token.
              * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -192,29 +227,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
              * Optional. The previous ListCatalogItemsResponse.next_page_token.
              * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -225,11 +260,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
              * Optional. A filter to apply on the list results.
              * 
          * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -238,29 +276,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
              * Optional. A filter to apply on the list results.
              * 
          * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -269,6 +307,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -280,8 +319,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -307,8 +345,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -324,21 +361,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest other = (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) obj; + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest other = + (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -364,134 +398,145 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Request message for ListCatalogItems method.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.class, com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.class, + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.Builder.class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -507,14 +552,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest + .getDefaultInstance(); } @java.lang.Override @@ -528,7 +575,8 @@ public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest bui @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest result = new com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest(this); + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest result = + new com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -541,46 +589,51 @@ public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest bui public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest)other); + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest other) { - if (other == com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -615,7 +668,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -627,19 +682,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                * Required. The parent catalog resource name, such as
                * `projects/*/locations/global/catalogs/default_catalog`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -648,21 +707,24 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required. The parent catalog resource name, such as
                * `projects/*/locations/global/catalogs/default_catalog`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -670,70 +732,86 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required. The parent catalog resource name, such as
                * `projects/*/locations/global/catalogs/default_catalog`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                * Required. The parent catalog resource name, such as
                * `projects/*/locations/global/catalogs/default_catalog`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                * Required. The parent catalog resource name, such as
                * `projects/*/locations/global/catalogs/default_catalog`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
                * Optional. Maximum number of results to return per page. If zero, the
                * service will choose a reasonable default.
                * 
          * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -741,32 +819,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
                * Optional. Maximum number of results to return per page. If zero, the
                * service will choose a reasonable default.
                * 
          * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Maximum number of results to return per page. If zero, the
                * service will choose a reasonable default.
                * 
          * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -774,18 +858,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
                * Optional. The previous ListCatalogItemsResponse.next_page_token.
                * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -794,20 +880,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
                * Optional. The previous ListCatalogItemsResponse.next_page_token.
                * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -815,54 +902,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
                * Optional. The previous ListCatalogItemsResponse.next_page_token.
                * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
                * Optional. The previous ListCatalogItemsResponse.next_page_token.
                * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
                * Optional. The previous ListCatalogItemsResponse.next_page_token.
                * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -870,18 +964,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
                * Optional. A filter to apply on the list results.
                * 
          * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -890,20 +986,21 @@ public java.lang.String getFilter() { } } /** + * + * *
                * Optional. A filter to apply on the list results.
                * 
          * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -911,61 +1008,68 @@ public java.lang.String getFilter() { } } /** + * + * *
                * Optional. A filter to apply on the list results.
                * 
          * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
                * Optional. A filter to apply on the list results.
                * 
          * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
                * Optional. A filter to apply on the list results.
                * 
          * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -975,30 +1079,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) - private static final com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCatalogItemsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCatalogItemsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCatalogItemsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCatalogItemsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1010,9 +1116,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequestOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequestOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequestOrBuilder.java index ef3b9366..fb4838a2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequestOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsRequestOrBuilder.java @@ -1,82 +1,120 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ListCatalogItemsRequestOrBuilder extends +public interface ListCatalogItemsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ListCatalogItemsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required. The parent catalog resource name, such as
              * `projects/*/locations/global/catalogs/default_catalog`.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
              * Required. The parent catalog resource name, such as
              * `projects/*/locations/global/catalogs/default_catalog`.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
              * Optional. Maximum number of results to return per page. If zero, the
              * service will choose a reasonable default.
              * 
          * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
              * Optional. The previous ListCatalogItemsResponse.next_page_token.
              * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
              * Optional. The previous ListCatalogItemsResponse.next_page_token.
              * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
              * Optional. A filter to apply on the list results.
              * 
          * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
              * Optional. A filter to apply on the list results.
              * 
          * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponse.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponse.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponse.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponse.java index 28215c44..fddb0b18 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponse.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog_service.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Response message for ListCatalogItems method.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse} */ -public final class ListCatalogItemsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCatalogItemsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) ListCatalogItemsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCatalogItemsResponse.newBuilder() to construct. private ListCatalogItemsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCatalogItemsResponse() { catalogItems_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListCatalogItemsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCatalogItemsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCatalogItemsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,34 @@ private ListCatalogItemsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - catalogItems_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + catalogItems_ = + new java.util.ArrayList< + com.google.cloud.recommendationengine.v1beta1.CatalogItem>(); + mutable_bitField0_ |= 0x00000001; + } + catalogItems_.add( + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.CatalogItem.parser(), + extensionRegistry)); + break; } - catalogItems_.add( - input.readMessage(com.google.cloud.recommendationengine.v1beta1.CatalogItem.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +107,7 @@ private ListCatalogItemsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { catalogItems_ = java.util.Collections.unmodifiableList(catalogItems_); @@ -94,22 +116,27 @@ private ListCatalogItemsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.class, com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.class, + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.Builder.class); } public static final int CATALOG_ITEMS_FIELD_NUMBER = 1; private java.util.List catalogItems_; /** + * + * *
              * The catalog items.
              * 
          @@ -117,10 +144,13 @@ private ListCatalogItemsResponse( * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ @java.lang.Override - public java.util.List getCatalogItemsList() { + public java.util.List + getCatalogItemsList() { return catalogItems_; } /** + * + * *
              * The catalog items.
              * 
          @@ -128,11 +158,14 @@ public java.util.List * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> getCatalogItemsOrBuilderList() { return catalogItems_; } /** + * + * *
              * The catalog items.
              * 
          @@ -144,6 +177,8 @@ public int getCatalogItemsCount() { return catalogItems_.size(); } /** + * + * *
              * The catalog items.
              * 
          @@ -155,6 +190,8 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItems return catalogItems_.get(index); } /** + * + * *
              * The catalog items.
              * 
          @@ -162,20 +199,23 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItems * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemsOrBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder + getCatalogItemsOrBuilder(int index) { return catalogItems_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
              * If empty, the list is complete. If nonempty, the token to pass to the next
              * request's ListCatalogItemRequest.page_token.
              * 
          * * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +224,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
              * If empty, the list is complete. If nonempty, the token to pass to the next
              * request's ListCatalogItemRequest.page_token.
              * 
          * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +256,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +268,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < catalogItems_.size(); i++) { output.writeMessage(1, catalogItems_.get(i)); } @@ -245,8 +285,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < catalogItems_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, catalogItems_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, catalogItems_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +298,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse other = (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) obj; + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse other = + (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) obj; - if (!getCatalogItemsList() - .equals(other.getCatalogItemsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getCatalogItemsList().equals(other.getCatalogItemsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,135 +331,147 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Response message for ListCatalogItems method.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.class, com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.class, + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.Builder.class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCatalogItemsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,19 +487,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ListCatalogItemsResponse_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse build() { - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse result = buildPartial(); + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -458,7 +511,8 @@ public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse bu @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse result = new com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse(this); + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse result = + new com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse(this); int from_bitField0_ = bitField0_; if (catalogItemsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,46 +532,51 @@ public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse)other); + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse other) { - if (other == com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse + .getDefaultInstance()) return this; if (catalogItemsBuilder_ == null) { if (!other.catalogItems_.isEmpty()) { if (catalogItems_.isEmpty()) { @@ -536,9 +595,10 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ListCatal catalogItemsBuilder_ = null; catalogItems_ = other.catalogItems_; bitField0_ = (bitField0_ & ~0x00000001); - catalogItemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCatalogItemsFieldBuilder() : null; + catalogItemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCatalogItemsFieldBuilder() + : null; } else { catalogItemsBuilder_.addAllMessages(other.catalogItems_); } @@ -567,7 +627,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,28 +638,39 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List catalogItems_ = - java.util.Collections.emptyList(); + private java.util.List + catalogItems_ = java.util.Collections.emptyList(); + private void ensureCatalogItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - catalogItems_ = new java.util.ArrayList(catalogItems_); + catalogItems_ = + new java.util.ArrayList( + catalogItems_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> catalogItemsBuilder_; + com.google.cloud.recommendationengine.v1beta1.CatalogItem, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, + com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> + catalogItemsBuilder_; /** + * + * *
                * The catalog items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * */ - public java.util.List getCatalogItemsList() { + public java.util.List + getCatalogItemsList() { if (catalogItemsBuilder_ == null) { return java.util.Collections.unmodifiableList(catalogItems_); } else { @@ -605,11 +678,14 @@ public java.util.List } } /** + * + * *
                * The catalog items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * */ public int getCatalogItemsCount() { if (catalogItemsBuilder_ == null) { @@ -619,11 +695,14 @@ public int getCatalogItemsCount() { } } /** + * + * *
                * The catalog items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * */ public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItems(int index) { if (catalogItemsBuilder_ == null) { @@ -633,11 +712,14 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItems } } /** + * + * *
                * The catalog items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * */ public Builder setCatalogItems( int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { @@ -654,14 +736,18 @@ public Builder setCatalogItems( return this; } /** + * + * *
                * The catalog items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * */ public Builder setCatalogItems( - int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { + int index, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { if (catalogItemsBuilder_ == null) { ensureCatalogItemsIsMutable(); catalogItems_.set(index, builderForValue.build()); @@ -672,13 +758,17 @@ public Builder setCatalogItems( return this; } /** + * + * *
                * The catalog items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * */ - public Builder addCatalogItems(com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { + public Builder addCatalogItems( + com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { if (catalogItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -692,11 +782,14 @@ public Builder addCatalogItems(com.google.cloud.recommendationengine.v1beta1.Cat return this; } /** + * + * *
                * The catalog items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * */ public Builder addCatalogItems( int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { @@ -713,11 +806,14 @@ public Builder addCatalogItems( return this; } /** + * + * *
                * The catalog items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * */ public Builder addCatalogItems( com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { @@ -731,14 +827,18 @@ public Builder addCatalogItems( return this; } /** + * + * *
                * The catalog items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * */ public Builder addCatalogItems( - int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { + int index, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { if (catalogItemsBuilder_ == null) { ensureCatalogItemsIsMutable(); catalogItems_.add(index, builderForValue.build()); @@ -749,18 +849,21 @@ public Builder addCatalogItems( return this; } /** + * + * *
                * The catalog items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * */ public Builder addAllCatalogItems( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (catalogItemsBuilder_ == null) { ensureCatalogItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, catalogItems_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, catalogItems_); onChanged(); } else { catalogItemsBuilder_.addAllMessages(values); @@ -768,11 +871,14 @@ public Builder addAllCatalogItems( return this; } /** + * + * *
                * The catalog items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * */ public Builder clearCatalogItems() { if (catalogItemsBuilder_ == null) { @@ -785,11 +891,14 @@ public Builder clearCatalogItems() { return this; } /** + * + * *
                * The catalog items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * */ public Builder removeCatalogItems(int index) { if (catalogItemsBuilder_ == null) { @@ -802,39 +911,50 @@ public Builder removeCatalogItems(int index) { return this; } /** + * + * *
                * The catalog items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * */ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder getCatalogItemsBuilder( int index) { return getCatalogItemsFieldBuilder().getBuilder(index); } /** + * + * *
                * The catalog items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemsOrBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder + getCatalogItemsOrBuilder(int index) { if (catalogItemsBuilder_ == null) { - return catalogItems_.get(index); } else { + return catalogItems_.get(index); + } else { return catalogItemsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * The catalog items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * */ - public java.util.List - getCatalogItemsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> + getCatalogItemsOrBuilderList() { if (catalogItemsBuilder_ != null) { return catalogItemsBuilder_.getMessageOrBuilderList(); } else { @@ -842,49 +962,65 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCat } } /** + * + * *
                * The catalog items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder addCatalogItemsBuilder() { - return getCatalogItemsFieldBuilder().addBuilder( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder + addCatalogItemsBuilder() { + return getCatalogItemsFieldBuilder() + .addBuilder( + com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance()); } /** + * + * *
                * The catalog items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * */ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder addCatalogItemsBuilder( int index) { - return getCatalogItemsFieldBuilder().addBuilder( - index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance()); + return getCatalogItemsFieldBuilder() + .addBuilder( + index, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance()); } /** + * + * *
                * The catalog items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; + * */ - public java.util.List - getCatalogItemsBuilderList() { + public java.util.List + getCatalogItemsBuilderList() { return getCatalogItemsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> + com.google.cloud.recommendationengine.v1beta1.CatalogItem, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, + com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> getCatalogItemsFieldBuilder() { if (catalogItemsBuilder_ == null) { - catalogItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder>( - catalogItems_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + catalogItemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.CatalogItem, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, + com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder>( + catalogItems_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); catalogItems_ = null; } return catalogItemsBuilder_; @@ -892,19 +1028,21 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder addCata private java.lang.Object nextPageToken_ = ""; /** + * + * *
                * If empty, the list is complete. If nonempty, the token to pass to the next
                * request's ListCatalogItemRequest.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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1051,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
                * If empty, the list is complete. If nonempty, the token to pass to the next
                * request's ListCatalogItemRequest.page_token.
                * 
          * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1074,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
                * If empty, the list is complete. If nonempty, the token to pass to the next
                * request's ListCatalogItemRequest.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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
                * If empty, the list is complete. If nonempty, the token to pass to the next
                * request's ListCatalogItemRequest.page_token.
                * 
          * * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
                * If empty, the list is complete. If nonempty, the token to pass to the next
                * request's ListCatalogItemRequest.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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,30 +1148,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) - private static final com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse(); } - public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCatalogItemsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCatalogItemsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCatalogItemsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCatalogItemsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,9 +1185,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponseOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponseOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponseOrBuilder.java index cca4b456..108dbed3 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponseOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListCatalogItemsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ListCatalogItemsResponseOrBuilder extends +public interface ListCatalogItemsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * The catalog items.
              * 
          * * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ - java.util.List - getCatalogItemsList(); + java.util.List getCatalogItemsList(); /** + * + * *
              * The catalog items.
              * 
          @@ -25,6 +44,8 @@ public interface ListCatalogItemsResponseOrBuilder extends */ com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItems(int index); /** + * + * *
              * The catalog items.
              * 
          @@ -33,15 +54,19 @@ public interface ListCatalogItemsResponseOrBuilder extends */ int getCatalogItemsCount(); /** + * + * *
              * The catalog items.
              * 
          * * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1; */ - java.util.List + java.util.List getCatalogItemsOrBuilderList(); /** + * + * *
              * The catalog items.
              * 
          @@ -52,24 +77,29 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogIte int index); /** + * + * *
              * If empty, the list is complete. If nonempty, the token to pass to the next
              * request's ListCatalogItemRequest.page_token.
              * 
          * * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
              * If empty, the list is complete. If nonempty, the token to pass to the next
              * request's ListCatalogItemRequest.page_token.
              * 
          * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequest.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequest.java similarity index 56% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequest.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequest.java index 2d9c702f..bd3a29a8 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequest.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequest.java @@ -1,24 +1,45 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Request message for the `ListPredictionApiKeyRegistrations`.
            * 
          * - * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest} + * Protobuf type {@code + * google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest} */ -public final class ListPredictionApiKeyRegistrationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListPredictionApiKeyRegistrationsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) ListPredictionApiKeyRegistrationsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPredictionApiKeyRegistrationsRequest.newBuilder() to construct. - private ListPredictionApiKeyRegistrationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListPredictionApiKeyRegistrationsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPredictionApiKeyRegistrationsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +47,15 @@ private ListPredictionApiKeyRegistrationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPredictionApiKeyRegistrationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListPredictionApiKeyRegistrationsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +74,32 @@ private ListPredictionApiKeyRegistrationsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - 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; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +107,44 @@ private ListPredictionApiKeyRegistrationsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest.class, com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest + .class, + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest + .Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
              * Required. The parent placement resource name such as
              * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -122,30 +153,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
              * Required. The parent placement resource name such as
              * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -156,12 +189,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
              * Optional. Maximum number of results to return per page. If unset, the
              * service will choose a reasonable default.
              * 
          * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -172,11 +208,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
              * Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`.
              * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -185,29 +224,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
              * Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`.
              * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -216,6 +255,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -251,8 +290,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -265,19 +303,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest)) { + if (!(obj + instanceof + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest other = (com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) obj; + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest other = + (com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) + obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -300,135 +339,168 @@ public int hashCode() { return hash; } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Request message for the `ListPredictionApiKeyRegistrations`.
              * 
          * - * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest} + * Protobuf type {@code + * google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor; + com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest.class, com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest + .class, + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest + .Builder.class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -442,19 +514,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest build() { - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest result = buildPartial(); + public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest + build() { + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -462,8 +538,12 @@ public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistr } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest result = new com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest(this); + public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest + buildPartial() { + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest + result = + new com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -475,46 +555,55 @@ public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistr public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest)other); + if (other + instanceof + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) { + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest other) { - if (other == com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest + other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -541,11 +630,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest parsedMessage = null; + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -557,19 +649,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                * Required. The parent placement resource name such as
                * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -578,21 +674,24 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required. The parent placement resource name such as
                * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -600,70 +699,86 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required. The parent placement resource name such as
                * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                * Required. The parent placement resource name such as
                * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                * Required. The parent placement resource name such as
                * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
                * Optional. Maximum number of results to return per page. If unset, the
                * service will choose a reasonable default.
                * 
          * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -671,32 +786,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
                * Optional. Maximum number of results to return per page. If unset, the
                * service will choose a reasonable default.
                * 
          * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Maximum number of results to return per page. If unset, the
                * service will choose a reasonable default.
                * 
          * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -704,18 +825,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
                * Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`.
                * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -724,20 +847,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
                * Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`.
                * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -745,61 +869,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
                * Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`.
                * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
                * Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`.
                * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
                * Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`.
                * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -809,30 +940,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) - private static final com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPredictionApiKeyRegistrationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPredictionApiKeyRegistrationsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPredictionApiKeyRegistrationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPredictionApiKeyRegistrationsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -844,9 +981,8 @@ public com.google.protobuf.Parser getP } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequestOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequestOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequestOrBuilder.java index 0fe98980..b64fcee0 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequestOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsRequestOrBuilder.java @@ -1,62 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ListPredictionApiKeyRegistrationsRequestOrBuilder extends +public interface ListPredictionApiKeyRegistrationsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required. The parent placement resource name such as
              * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
              * Required. The parent placement resource name such as
              * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
              * Optional. Maximum number of results to return per page. If unset, the
              * service will choose a reasonable default.
              * 
          * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
              * Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`.
              * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
              * Optional. The previous `ListPredictionApiKeyRegistration.nextPageToken`.
              * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponse.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponse.java similarity index 53% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponse.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponse.java index 89df2137..3dd6dee1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponse.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponse.java @@ -1,24 +1,45 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Response message for the `ListPredictionApiKeyRegistrations`.
            * 
          * - * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse} + * Protobuf type {@code + * google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse} */ -public final class ListPredictionApiKeyRegistrationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListPredictionApiKeyRegistrationsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) ListPredictionApiKeyRegistrationsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPredictionApiKeyRegistrationsResponse.newBuilder() to construct. - private ListPredictionApiKeyRegistrationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListPredictionApiKeyRegistrationsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPredictionApiKeyRegistrationsResponse() { predictionApiKeyRegistrations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +47,15 @@ private ListPredictionApiKeyRegistrationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPredictionApiKeyRegistrationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListPredictionApiKeyRegistrationsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +75,36 @@ private ListPredictionApiKeyRegistrationsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - predictionApiKeyRegistrations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + predictionApiKeyRegistrations_ = + new java.util.ArrayList< + com.google.cloud.recommendationengine.v1beta1 + .PredictionApiKeyRegistration>(); + mutable_bitField0_ |= 0x00000001; + } + predictionApiKeyRegistrations_.add( + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + .parser(), + extensionRegistry)); + break; } - predictionApiKeyRegistrations_.add( - input.readMessage(com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,98 +112,131 @@ private ListPredictionApiKeyRegistrationsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - predictionApiKeyRegistrations_ = java.util.Collections.unmodifiableList(predictionApiKeyRegistrations_); + predictionApiKeyRegistrations_ = + java.util.Collections.unmodifiableList(predictionApiKeyRegistrations_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse.class, com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse + .class, + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse + .Builder.class); } public static final int PREDICTION_API_KEY_REGISTRATIONS_FIELD_NUMBER = 1; - private java.util.List predictionApiKeyRegistrations_; + private java.util.List + predictionApiKeyRegistrations_; /** + * + * *
              * The list of registered API keys.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ @java.lang.Override - public java.util.List getPredictionApiKeyRegistrationsList() { + public java.util.List + getPredictionApiKeyRegistrationsList() { return predictionApiKeyRegistrations_; } /** + * + * *
              * The list of registered API keys.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> getPredictionApiKeyRegistrationsOrBuilderList() { return predictionApiKeyRegistrations_; } /** + * + * *
              * The list of registered API keys.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ @java.lang.Override public int getPredictionApiKeyRegistrationsCount() { return predictionApiKeyRegistrations_.size(); } /** + * + * *
              * The list of registered API keys.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration getPredictionApiKeyRegistrations(int index) { + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + getPredictionApiKeyRegistrations(int index) { return predictionApiKeyRegistrations_.get(index); } /** + * + * *
              * The list of registered API keys.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder getPredictionApiKeyRegistrationsOrBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder + getPredictionApiKeyRegistrationsOrBuilder(int index) { return predictionApiKeyRegistrations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
              * If empty, the list is complete. If nonempty, pass the token to the next
              * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
              * 
          * * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +245,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
              * If empty, the list is complete. If nonempty, pass the token to the next
              * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
              * 
          * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +277,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +289,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < predictionApiKeyRegistrations_.size(); i++) { output.writeMessage(1, predictionApiKeyRegistrations_.get(i)); } @@ -245,8 +306,9 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < predictionApiKeyRegistrations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, predictionApiKeyRegistrations_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, predictionApiKeyRegistrations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +321,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse)) { + if (!(obj + instanceof + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse other = (com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) obj; + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse other = + (com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) + obj; if (!getPredictionApiKeyRegistrationsList() .equals(other.getPredictionApiKeyRegistrationsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,136 +357,170 @@ public int hashCode() { return hash; } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Response message for the `ListPredictionApiKeyRegistrations`.
              * 
          * - * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse} + * Protobuf type {@code + * google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor; + com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse.class, com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse.Builder.class); + com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse.class, + com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse.Builder.class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPredictionApiKeyRegistrationsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,19 +536,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse build() { - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse result = buildPartial(); + public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse + build() { + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -457,12 +560,17 @@ public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistr } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse result = new com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse(this); + public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse + buildPartial() { + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse + result = + new com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse(this); int from_bitField0_ = bitField0_; if (predictionApiKeyRegistrationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - predictionApiKeyRegistrations_ = java.util.Collections.unmodifiableList(predictionApiKeyRegistrations_); + predictionApiKeyRegistrations_ = + java.util.Collections.unmodifiableList(predictionApiKeyRegistrations_); bitField0_ = (bitField0_ & ~0x00000001); } result.predictionApiKeyRegistrations_ = predictionApiKeyRegistrations_; @@ -478,46 +586,56 @@ public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistr public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse)other); + if (other + instanceof + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) { + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse other) { - if (other == com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse + other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse + .getDefaultInstance()) return this; if (predictionApiKeyRegistrationsBuilder_ == null) { if (!other.predictionApiKeyRegistrations_.isEmpty()) { if (predictionApiKeyRegistrations_.isEmpty()) { @@ -536,11 +654,13 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ListPredi predictionApiKeyRegistrationsBuilder_ = null; predictionApiKeyRegistrations_ = other.predictionApiKeyRegistrations_; bitField0_ = (bitField0_ & ~0x00000001); - predictionApiKeyRegistrationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPredictionApiKeyRegistrationsFieldBuilder() : null; + predictionApiKeyRegistrationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPredictionApiKeyRegistrationsFieldBuilder() + : null; } else { - predictionApiKeyRegistrationsBuilder_.addAllMessages(other.predictionApiKeyRegistrations_); + predictionApiKeyRegistrationsBuilder_.addAllMessages( + other.predictionApiKeyRegistrations_); } } } @@ -563,11 +683,15 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse parsedMessage = null; + com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,28 +700,43 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List predictionApiKeyRegistrations_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration> + predictionApiKeyRegistrations_ = java.util.Collections.emptyList(); + private void ensurePredictionApiKeyRegistrationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - predictionApiKeyRegistrations_ = new java.util.ArrayList(predictionApiKeyRegistrations_); + predictionApiKeyRegistrations_ = + new java.util.ArrayList< + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration>( + predictionApiKeyRegistrations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> predictionApiKeyRegistrationsBuilder_; + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> + predictionApiKeyRegistrationsBuilder_; /** + * + * *
                * The list of registered API keys.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ - public java.util.List getPredictionApiKeyRegistrationsList() { + public java.util.List< + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration> + getPredictionApiKeyRegistrationsList() { if (predictionApiKeyRegistrationsBuilder_ == null) { return java.util.Collections.unmodifiableList(predictionApiKeyRegistrations_); } else { @@ -605,11 +744,15 @@ public java.util.List * The list of registered API keys. *
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ public int getPredictionApiKeyRegistrationsCount() { if (predictionApiKeyRegistrationsBuilder_ == null) { @@ -619,13 +762,18 @@ public int getPredictionApiKeyRegistrationsCount() { } } /** + * + * *
                * The list of registered API keys.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration getPredictionApiKeyRegistrations(int index) { + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + getPredictionApiKeyRegistrations(int index) { if (predictionApiKeyRegistrationsBuilder_ == null) { return predictionApiKeyRegistrations_.get(index); } else { @@ -633,14 +781,19 @@ public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistratio } } /** + * + * *
                * The list of registered API keys.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ public Builder setPredictionApiKeyRegistrations( - int index, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration value) { + int index, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration value) { if (predictionApiKeyRegistrationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,14 +807,20 @@ public Builder setPredictionApiKeyRegistrations( return this; } /** + * + * *
                * The list of registered API keys.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ public Builder setPredictionApiKeyRegistrations( - int index, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder builderForValue) { + int index, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder + builderForValue) { if (predictionApiKeyRegistrationsBuilder_ == null) { ensurePredictionApiKeyRegistrationsIsMutable(); predictionApiKeyRegistrations_.set(index, builderForValue.build()); @@ -672,13 +831,18 @@ public Builder setPredictionApiKeyRegistrations( return this; } /** + * + * *
                * The list of registered API keys.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ - public Builder addPredictionApiKeyRegistrations(com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration value) { + public Builder addPredictionApiKeyRegistrations( + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration value) { if (predictionApiKeyRegistrationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -692,14 +856,19 @@ public Builder addPredictionApiKeyRegistrations(com.google.cloud.recommendatione return this; } /** + * + * *
                * The list of registered API keys.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ public Builder addPredictionApiKeyRegistrations( - int index, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration value) { + int index, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration value) { if (predictionApiKeyRegistrationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,14 +882,19 @@ public Builder addPredictionApiKeyRegistrations( return this; } /** + * + * *
                * The list of registered API keys.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ public Builder addPredictionApiKeyRegistrations( - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder builderForValue) { + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder + builderForValue) { if (predictionApiKeyRegistrationsBuilder_ == null) { ensurePredictionApiKeyRegistrationsIsMutable(); predictionApiKeyRegistrations_.add(builderForValue.build()); @@ -731,14 +905,20 @@ public Builder addPredictionApiKeyRegistrations( return this; } /** + * + * *
                * The list of registered API keys.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ public Builder addPredictionApiKeyRegistrations( - int index, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder builderForValue) { + int index, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder + builderForValue) { if (predictionApiKeyRegistrationsBuilder_ == null) { ensurePredictionApiKeyRegistrationsIsMutable(); predictionApiKeyRegistrations_.add(index, builderForValue.build()); @@ -749,14 +929,21 @@ public Builder addPredictionApiKeyRegistrations( return this; } /** + * + * *
                * The list of registered API keys.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ public Builder addAllPredictionApiKeyRegistrations( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration> + values) { if (predictionApiKeyRegistrationsBuilder_ == null) { ensurePredictionApiKeyRegistrationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -768,11 +955,15 @@ public Builder addAllPredictionApiKeyRegistrations( return this; } /** + * + * *
                * The list of registered API keys.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ public Builder clearPredictionApiKeyRegistrations() { if (predictionApiKeyRegistrationsBuilder_ == null) { @@ -785,11 +976,15 @@ public Builder clearPredictionApiKeyRegistrations() { return this; } /** + * + * *
                * The list of registered API keys.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ public Builder removePredictionApiKeyRegistrations(int index) { if (predictionApiKeyRegistrationsBuilder_ == null) { @@ -802,39 +997,54 @@ public Builder removePredictionApiKeyRegistrations(int index) { return this; } /** + * + * *
                * The list of registered API keys.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder getPredictionApiKeyRegistrationsBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder + getPredictionApiKeyRegistrationsBuilder(int index) { return getPredictionApiKeyRegistrationsFieldBuilder().getBuilder(index); } /** + * + * *
                * The list of registered API keys.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder getPredictionApiKeyRegistrationsOrBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder + getPredictionApiKeyRegistrationsOrBuilder(int index) { if (predictionApiKeyRegistrationsBuilder_ == null) { - return predictionApiKeyRegistrations_.get(index); } else { + return predictionApiKeyRegistrations_.get(index); + } else { return predictionApiKeyRegistrationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * The list of registered API keys.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ - public java.util.List - getPredictionApiKeyRegistrationsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> + getPredictionApiKeyRegistrationsOrBuilderList() { if (predictionApiKeyRegistrationsBuilder_ != null) { return predictionApiKeyRegistrationsBuilder_.getMessageOrBuilderList(); } else { @@ -842,45 +1052,71 @@ public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistratio } } /** + * + * *
                * The list of registered API keys.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder addPredictionApiKeyRegistrationsBuilder() { - return getPredictionApiKeyRegistrationsFieldBuilder().addBuilder( - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder + addPredictionApiKeyRegistrationsBuilder() { + return getPredictionApiKeyRegistrationsFieldBuilder() + .addBuilder( + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + .getDefaultInstance()); } /** + * + * *
                * The list of registered API keys.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder addPredictionApiKeyRegistrationsBuilder( - int index) { - return getPredictionApiKeyRegistrationsFieldBuilder().addBuilder( - index, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder + addPredictionApiKeyRegistrationsBuilder(int index) { + return getPredictionApiKeyRegistrationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + .getDefaultInstance()); } /** + * + * *
                * The list of registered API keys.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * */ - public java.util.List - getPredictionApiKeyRegistrationsBuilderList() { + public java.util.List< + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder> + getPredictionApiKeyRegistrationsBuilderList() { return getPredictionApiKeyRegistrationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> getPredictionApiKeyRegistrationsFieldBuilder() { if (predictionApiKeyRegistrationsBuilder_ == null) { - predictionApiKeyRegistrationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder>( + predictionApiKeyRegistrationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder, + com.google.cloud.recommendationengine.v1beta1 + .PredictionApiKeyRegistrationOrBuilder>( predictionApiKeyRegistrations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -892,19 +1128,21 @@ public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistratio private java.lang.Object nextPageToken_ = ""; /** + * + * *
                * If empty, the list is complete. If nonempty, pass the token to the next
                * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
                * 
          * * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1151,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
                * If empty, the list is complete. If nonempty, pass the token to the next
                * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
                * 
          * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1174,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
                * If empty, the list is complete. If nonempty, pass the token to the next
                * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
                * 
          * * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
                * If empty, the list is complete. If nonempty, pass the token to the next
                * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
                * 
          * * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
                * If empty, the list is complete. If nonempty, pass the token to the next
                * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
                * 
          * * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,30 +1248,37 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) - private static final com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse(); } - public static com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1 + .ListPredictionApiKeyRegistrationsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPredictionApiKeyRegistrationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPredictionApiKeyRegistrationsResponse(input, extensionRegistry); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPredictionApiKeyRegistrationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPredictionApiKeyRegistrationsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,9 +1290,8 @@ public com.google.protobuf.Parser get } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponseOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponseOrBuilder.java new file mode 100644 index 00000000..b84893ce --- /dev/null +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListPredictionApiKeyRegistrationsResponseOrBuilder.java @@ -0,0 +1,119 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public interface ListPredictionApiKeyRegistrationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The list of registered API keys.
          +   * 
          + * + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + */ + java.util.List + getPredictionApiKeyRegistrationsList(); + /** + * + * + *
          +   * The list of registered API keys.
          +   * 
          + * + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + */ + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + getPredictionApiKeyRegistrations(int index); + /** + * + * + *
          +   * The list of registered API keys.
          +   * 
          + * + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + */ + int getPredictionApiKeyRegistrationsCount(); + /** + * + * + *
          +   * The list of registered API keys.
          +   * 
          + * + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder> + getPredictionApiKeyRegistrationsOrBuilderList(); + /** + * + * + *
          +   * The list of registered API keys.
          +   * 
          + * + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prediction_api_key_registrations = 1; + * + */ + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder + getPredictionApiKeyRegistrationsOrBuilder(int index); + + /** + * + * + *
          +   * If empty, the list is complete. If nonempty, pass the token to the next
          +   * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
          +   * If empty, the list is complete. If nonempty, pass the token to the next
          +   * request's `ListPredictionApiKeysRegistrationsRequest.pageToken`.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequest.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequest.java similarity index 75% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequest.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequest.java index 573c34be..2b8feb96 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequest.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Request message for ListUserEvents method.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListUserEventsRequest} */ -public final class ListUserEventsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUserEventsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) ListUserEventsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUserEventsRequest.newBuilder() to construct. private ListUserEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUserEventsRequest() { parent_ = ""; pageToken_ = ""; @@ -27,16 +45,15 @@ private ListUserEventsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUserEventsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListUserEventsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListUserEventsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - 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; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,35 +112,42 @@ private ListUserEventsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.class, com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.class, + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
              * Required. The parent eventStore resource name, such as
              * `projects/*/locations/*/catalogs/default_catalog/eventStores/default_event_store`.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -129,30 +156,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
              * Required. The parent eventStore resource name, such as
              * `projects/*/locations/*/catalogs/default_catalog/eventStores/default_event_store`.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -163,12 +192,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
              * Optional. Maximum number of results to return per page. If zero, the
              * service will choose a reasonable default.
              * 
          * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -179,11 +211,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
              * Optional. The previous ListUserEventsResponse.next_page_token.
              * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -192,29 +227,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
              * Optional. The previous ListUserEventsResponse.next_page_token.
              * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -225,6 +260,8 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
              * Optional. Filtering expression to specify restrictions over
              * returned events. This is a sequence of terms, where each term applies some
          @@ -255,6 +292,7 @@ public java.lang.String getPageToken() {
              * 
          * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -263,14 +301,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
              * Optional. Filtering expression to specify restrictions over
              * returned events. This is a sequence of terms, where each term applies some
          @@ -301,16 +340,15 @@ public java.lang.String getFilter() {
              * 
          * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -319,6 +357,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -330,8 +369,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -357,8 +395,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -374,21 +411,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest other = (com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest other = + (com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -414,134 +448,145 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Request message for ListUserEvents method.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListUserEventsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.class, com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.class, + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.Builder.class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -557,14 +602,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest + .getDefaultInstance(); } @java.lang.Override @@ -578,7 +625,8 @@ public com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest build @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest result = new com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest(this); + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest result = + new com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -591,46 +639,51 @@ public com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest)other); + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest other) { - if (other == com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -665,7 +718,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -677,19 +732,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                * Required. The parent eventStore resource name, such as
                * `projects/*/locations/*/catalogs/default_catalog/eventStores/default_event_store`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -698,21 +757,24 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required. The parent eventStore resource name, such as
                * `projects/*/locations/*/catalogs/default_catalog/eventStores/default_event_store`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -720,70 +782,86 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required. The parent eventStore resource name, such as
                * `projects/*/locations/*/catalogs/default_catalog/eventStores/default_event_store`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                * Required. The parent eventStore resource name, such as
                * `projects/*/locations/*/catalogs/default_catalog/eventStores/default_event_store`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                * Required. The parent eventStore resource name, such as
                * `projects/*/locations/*/catalogs/default_catalog/eventStores/default_event_store`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
                * Optional. Maximum number of results to return per page. If zero, the
                * service will choose a reasonable default.
                * 
          * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -791,32 +869,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
                * Optional. Maximum number of results to return per page. If zero, the
                * service will choose a reasonable default.
                * 
          * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Maximum number of results to return per page. If zero, the
                * service will choose a reasonable default.
                * 
          * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -824,18 +908,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
                * Optional. The previous ListUserEventsResponse.next_page_token.
                * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -844,20 +930,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
                * Optional. The previous ListUserEventsResponse.next_page_token.
                * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -865,54 +952,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
                * Optional. The previous ListUserEventsResponse.next_page_token.
                * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
                * Optional. The previous ListUserEventsResponse.next_page_token.
                * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
                * Optional. The previous ListUserEventsResponse.next_page_token.
                * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -920,6 +1014,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
                * Optional. Filtering expression to specify restrictions over
                * returned events. This is a sequence of terms, where each term applies some
          @@ -950,13 +1046,13 @@ public Builder setPageTokenBytes(
                * 
          * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -965,6 +1061,8 @@ public java.lang.String getFilter() { } } /** + * + * *
                * Optional. Filtering expression to specify restrictions over
                * returned events. This is a sequence of terms, where each term applies some
          @@ -995,15 +1093,14 @@ public java.lang.String getFilter() {
                * 
          * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1011,6 +1108,8 @@ public java.lang.String getFilter() { } } /** + * + * *
                * Optional. Filtering expression to specify restrictions over
                * returned events. This is a sequence of terms, where each term applies some
          @@ -1041,20 +1140,22 @@ public java.lang.String getFilter() {
                * 
          * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Filtering expression to specify restrictions over
                * returned events. This is a sequence of terms, where each term applies some
          @@ -1085,15 +1186,18 @@ public Builder setFilter(
                * 
          * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
                * Optional. Filtering expression to specify restrictions over
                * returned events. This is a sequence of terms, where each term applies some
          @@ -1124,23 +1228,23 @@ public Builder clearFilter() {
                * 
          * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1150,30 +1254,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) - private static final com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUserEventsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListUserEventsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUserEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListUserEventsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1185,9 +1291,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ListUserEventsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequestOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequestOrBuilder.java similarity index 81% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequestOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequestOrBuilder.java index cbe0e379..95f07d9a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequestOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsRequestOrBuilder.java @@ -1,66 +1,101 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ListUserEventsRequestOrBuilder extends +public interface ListUserEventsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ListUserEventsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required. The parent eventStore resource name, such as
              * `projects/*/locations/*/catalogs/default_catalog/eventStores/default_event_store`.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
              * Required. The parent eventStore resource name, such as
              * `projects/*/locations/*/catalogs/default_catalog/eventStores/default_event_store`.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
              * Optional. Maximum number of results to return per page. If zero, the
              * service will choose a reasonable default.
              * 
          * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
              * Optional. The previous ListUserEventsResponse.next_page_token.
              * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
              * Optional. The previous ListUserEventsResponse.next_page_token.
              * 
          * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
              * Optional. Filtering expression to specify restrictions over
              * returned events. This is a sequence of terms, where each term applies some
          @@ -91,10 +126,13 @@ public interface ListUserEventsRequestOrBuilder extends
              * 
          * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
              * Optional. Filtering expression to specify restrictions over
              * returned events. This is a sequence of terms, where each term applies some
          @@ -125,8 +163,8 @@ public interface ListUserEventsRequestOrBuilder extends
              * 
          * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponse.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponse.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponse.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponse.java index 2243a09e..d8628809 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponse.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Response message for ListUserEvents method.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListUserEventsResponse} */ -public final class ListUserEventsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUserEventsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) ListUserEventsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUserEventsResponse.newBuilder() to construct. private ListUserEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUserEventsResponse() { userEvents_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListUserEventsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUserEventsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListUserEventsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,34 @@ private ListUserEventsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - userEvents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + userEvents_ = + new java.util.ArrayList< + com.google.cloud.recommendationengine.v1beta1.UserEvent>(); + mutable_bitField0_ |= 0x00000001; + } + userEvents_.add( + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.UserEvent.parser(), + extensionRegistry)); + break; } - userEvents_.add( - input.readMessage(com.google.cloud.recommendationengine.v1beta1.UserEvent.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +107,7 @@ private ListUserEventsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { userEvents_ = java.util.Collections.unmodifiableList(userEvents_); @@ -94,22 +116,27 @@ private ListUserEventsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.class, com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.class, + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.Builder.class); } public static final int USER_EVENTS_FIELD_NUMBER = 1; private java.util.List userEvents_; /** + * + * *
              * The user events.
              * 
          @@ -117,10 +144,13 @@ private ListUserEventsResponse( * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ @java.lang.Override - public java.util.List getUserEventsList() { + public java.util.List + getUserEventsList() { return userEvents_; } /** + * + * *
              * The user events.
              * 
          @@ -128,11 +158,13 @@ public java.util.List g * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ @java.lang.Override - public java.util.List + public java.util.List getUserEventsOrBuilderList() { return userEvents_; } /** + * + * *
              * The user events.
              * 
          @@ -144,6 +176,8 @@ public int getUserEventsCount() { return userEvents_.size(); } /** + * + * *
              * The user events.
              * 
          @@ -155,6 +189,8 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvents(int return userEvents_.get(index); } /** + * + * *
              * The user events.
              * 
          @@ -170,12 +206,15 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserE public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
              * If empty, the list is complete. If nonempty, the token to pass to the next
              * request's ListUserEvents.page_token.
              * 
          * * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +223,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
              * If empty, the list is complete. If nonempty, the token to pass to the next
              * request's ListUserEvents.page_token.
              * 
          * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +255,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < userEvents_.size(); i++) { output.writeMessage(1, userEvents_.get(i)); } @@ -245,8 +284,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < userEvents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, userEvents_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, userEvents_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +297,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse other = (com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) obj; + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse other = + (com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) obj; - if (!getUserEventsList() - .equals(other.getUserEventsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getUserEventsList().equals(other.getUserEventsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,135 +330,147 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Response message for ListUserEvents method.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ListUserEventsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.class, com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.class, + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.Builder.class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getUserEventsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,14 +486,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse + .getDefaultInstance(); } @java.lang.Override @@ -458,7 +509,8 @@ public com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse buil @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse result = new com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse(this); + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse result = + new com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse(this); int from_bitField0_ = bitField0_; if (userEventsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,46 +530,51 @@ public com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse buil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse)other); + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse other) { - if (other == com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse + .getDefaultInstance()) return this; if (userEventsBuilder_ == null) { if (!other.userEvents_.isEmpty()) { if (userEvents_.isEmpty()) { @@ -536,9 +593,10 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ListUserE userEventsBuilder_ = null; userEvents_ = other.userEvents_; bitField0_ = (bitField0_ & ~0x00000001); - userEventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getUserEventsFieldBuilder() : null; + userEventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getUserEventsFieldBuilder() + : null; } else { userEventsBuilder_.addAllMessages(other.userEvents_); } @@ -567,7 +625,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,28 +636,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List userEvents_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureUserEventsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - userEvents_ = new java.util.ArrayList(userEvents_); + userEvents_ = + new java.util.ArrayList( + userEvents_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> userEventsBuilder_; + com.google.cloud.recommendationengine.v1beta1.UserEvent, + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, + com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> + userEventsBuilder_; /** + * + * *
                * The user events.
                * 
          * * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ - public java.util.List getUserEventsList() { + public java.util.List + getUserEventsList() { if (userEventsBuilder_ == null) { return java.util.Collections.unmodifiableList(userEvents_); } else { @@ -605,6 +675,8 @@ public java.util.List g } } /** + * + * *
                * The user events.
                * 
          @@ -619,6 +691,8 @@ public int getUserEventsCount() { } } /** + * + * *
                * The user events.
                * 
          @@ -633,6 +707,8 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvents(int } } /** + * + * *
                * The user events.
                * 
          @@ -654,6 +730,8 @@ public Builder setUserEvents( return this; } /** + * + * *
                * The user events.
                * 
          @@ -661,7 +739,8 @@ public Builder setUserEvents( * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ public Builder setUserEvents( - int index, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { + int index, + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { if (userEventsBuilder_ == null) { ensureUserEventsIsMutable(); userEvents_.set(index, builderForValue.build()); @@ -672,6 +751,8 @@ public Builder setUserEvents( return this; } /** + * + * *
                * The user events.
                * 
          @@ -692,6 +773,8 @@ public Builder addUserEvents(com.google.cloud.recommendationengine.v1beta1.UserE return this; } /** + * + * *
                * The user events.
                * 
          @@ -713,6 +796,8 @@ public Builder addUserEvents( return this; } /** + * + * *
                * The user events.
                * 
          @@ -731,6 +816,8 @@ public Builder addUserEvents( return this; } /** + * + * *
                * The user events.
                * 
          @@ -738,7 +825,8 @@ public Builder addUserEvents( * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ public Builder addUserEvents( - int index, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { + int index, + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { if (userEventsBuilder_ == null) { ensureUserEventsIsMutable(); userEvents_.add(index, builderForValue.build()); @@ -749,6 +837,8 @@ public Builder addUserEvents( return this; } /** + * + * *
                * The user events.
                * 
          @@ -756,11 +846,11 @@ public Builder addUserEvents( * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ public Builder addAllUserEvents( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (userEventsBuilder_ == null) { ensureUserEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, userEvents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userEvents_); onChanged(); } else { userEventsBuilder_.addAllMessages(values); @@ -768,6 +858,8 @@ public Builder addAllUserEvents( return this; } /** + * + * *
                * The user events.
                * 
          @@ -785,6 +877,8 @@ public Builder clearUserEvents() { return this; } /** + * + * *
                * The user events.
                * 
          @@ -802,6 +896,8 @@ public Builder removeUserEvents(int index) { return this; } /** + * + * *
                * The user events.
                * 
          @@ -813,6 +909,8 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder getUserEv return getUserEventsFieldBuilder().getBuilder(index); } /** + * + * *
                * The user events.
                * 
          @@ -822,19 +920,23 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder getUserEv public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventsOrBuilder( int index) { if (userEventsBuilder_ == null) { - return userEvents_.get(index); } else { + return userEvents_.get(index); + } else { return userEventsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * The user events.
                * 
          * * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ - public java.util.List - getUserEventsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> + getUserEventsOrBuilderList() { if (userEventsBuilder_ != null) { return userEventsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +944,8 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserE } } /** + * + * *
                * The user events.
                * 
          @@ -849,10 +953,12 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserE * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder addUserEventsBuilder() { - return getUserEventsFieldBuilder().addBuilder( - com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); + return getUserEventsFieldBuilder() + .addBuilder(com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); } /** + * + * *
                * The user events.
                * 
          @@ -861,30 +967,36 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder addUserEv */ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder addUserEventsBuilder( int index) { - return getUserEventsFieldBuilder().addBuilder( - index, com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); + return getUserEventsFieldBuilder() + .addBuilder( + index, com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); } /** + * + * *
                * The user events.
                * 
          * * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ - public java.util.List - getUserEventsBuilderList() { + public java.util.List + getUserEventsBuilderList() { return getUserEventsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> + com.google.cloud.recommendationengine.v1beta1.UserEvent, + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, + com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> getUserEventsFieldBuilder() { if (userEventsBuilder_ == null) { - userEventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder>( - userEvents_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + userEventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.UserEvent, + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, + com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder>( + userEvents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); userEvents_ = null; } return userEventsBuilder_; @@ -892,19 +1004,21 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder addUserEv private java.lang.Object nextPageToken_ = ""; /** + * + * *
                * If empty, the list is complete. If nonempty, the token to pass to the next
                * request's ListUserEvents.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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1027,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
                * If empty, the list is complete. If nonempty, the token to pass to the next
                * request's ListUserEvents.page_token.
                * 
          * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1050,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
                * If empty, the list is complete. If nonempty, the token to pass to the next
                * request's ListUserEvents.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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
                * If empty, the list is complete. If nonempty, the token to pass to the next
                * request's ListUserEvents.page_token.
                * 
          * * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
                * If empty, the list is complete. If nonempty, the token to pass to the next
                * request's ListUserEvents.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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,30 +1124,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) - private static final com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse(); } - public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUserEventsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListUserEventsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUserEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListUserEventsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,9 +1161,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ListUserEventsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponseOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponseOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponseOrBuilder.java index 0006ab1f..2b2cd934 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponseOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ListUserEventsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ListUserEventsResponseOrBuilder extends +public interface ListUserEventsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ListUserEventsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * The user events.
              * 
          * * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ - java.util.List - getUserEventsList(); + java.util.List getUserEventsList(); /** + * + * *
              * The user events.
              * 
          @@ -25,6 +44,8 @@ public interface ListUserEventsResponseOrBuilder extends */ com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvents(int index); /** + * + * *
              * The user events.
              * 
          @@ -33,15 +54,19 @@ public interface ListUserEventsResponseOrBuilder extends */ int getUserEventsCount(); /** + * + * *
              * The user events.
              * 
          * * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1; */ - java.util.List + java.util.List getUserEventsOrBuilderList(); /** + * + * *
              * The user events.
              * 
          @@ -52,24 +77,29 @@ com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventsOr int index); /** + * + * *
              * If empty, the list is complete. If nonempty, the token to pass to the next
              * request's ListUserEvents.page_token.
              * 
          * * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
              * If empty, the list is complete. If nonempty, the token to pass to the next
              * request's ListUserEvents.page_token.
              * 
          * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PlacementName.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PlacementName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PlacementName.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PlacementName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequest.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequest.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequest.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequest.java index 8bd9747a..a0ab9ffe 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequest.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/prediction_service.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Request message for Predict method.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PredictRequest} */ -public final class PredictRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PredictRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.PredictRequest) PredictRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PredictRequest.newBuilder() to construct. private PredictRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PredictRequest() { name_ = ""; pageToken_ = ""; @@ -27,16 +45,15 @@ private PredictRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PredictRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PredictRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,80 +73,87 @@ private PredictRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder subBuilder = null; - if (userEvent_ != null) { - subBuilder = userEvent_.toBuilder(); + name_ = s; + break; } - userEvent_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.UserEvent.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(userEvent_); - userEvent_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder subBuilder = null; + if (userEvent_ != null) { + subBuilder = userEvent_.toBuilder(); + } + userEvent_ = + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.UserEvent.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(userEvent_); + userEvent_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 32: { - - dryRun_ = input.readBool(); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - params_ = com.google.protobuf.MapField.newMapField( - ParamsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + filter_ = s; + break; } - com.google.protobuf.MapEntry - params__ = input.readMessage( - ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - params_.getMutableMap().put( - params__.getKey(), params__.getValue()); - break; - } - case 56: { - - pageSize_ = input.readInt32(); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + case 32: + { + dryRun_ = input.readBool(); + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + params_ = + com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry params__ = + input.readMessage( + ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + params_.getMutableMap().put(params__.getKey(), params__.getValue()); + break; + } + case 56: + { + pageSize_ = input.readInt32(); + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + pageToken_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 74: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -137,43 +161,46 @@ private PredictRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetParams(); case 9: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PredictRequest.class, com.google.cloud.recommendationengine.v1beta1.PredictRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.PredictRequest.class, + com.google.cloud.recommendationengine.v1beta1.PredictRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
              * Required. Full resource name of the format:
              * `{name=projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/placements/*}`
          @@ -200,7 +227,10 @@ protected com.google.protobuf.MapField internalGetMapField(
              * https://console.cloud.google.com/recommendation/datafeeds/default_catalog/dashboard
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -209,14 +239,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
              * Required. Full resource name of the format:
              * `{name=projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/placements/*}`
          @@ -243,17 +274,18 @@ public java.lang.String getName() {
              * https://console.cloud.google.com/recommendation/datafeeds/default_catalog/dashboard
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -264,6 +296,8 @@ public java.lang.String getName() { public static final int USER_EVENT_FIELD_NUMBER = 2; private com.google.cloud.recommendationengine.v1beta1.UserEvent userEvent_; /** + * + * *
              * Required. Context about the user, what they are looking at and what action
              * they took to trigger the predict request. Note that this user event detail
          @@ -271,7 +305,10 @@ public java.lang.String getName() {
              * request is required for event logging.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the userEvent field is set. */ @java.lang.Override @@ -279,6 +316,8 @@ public boolean hasUserEvent() { return userEvent_ != null; } /** + * + * *
              * Required. Context about the user, what they are looking at and what action
              * they took to trigger the predict request. Note that this user event detail
          @@ -286,14 +325,21 @@ public boolean hasUserEvent() {
              * request is required for event logging.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The userEvent. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvent() { - return userEvent_ == null ? com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() : userEvent_; + return userEvent_ == null + ? com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() + : userEvent_; } /** + * + * *
              * Required. Context about the user, what they are looking at and what action
              * they took to trigger the predict request. Note that this user event detail
          @@ -301,7 +347,9 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvent() {
              * request is required for event logging.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventOrBuilder() { @@ -311,6 +359,8 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserE public static final int PAGE_SIZE_FIELD_NUMBER = 7; private int pageSize_; /** + * + * *
              * Optional. Maximum number of results to return per page. Set this property
              * to the number of prediction results required. If zero, the service will
          @@ -318,6 +368,7 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserE
              * 
          * * int32 page_size = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -328,11 +379,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 8; private volatile java.lang.Object pageToken_; /** + * + * *
              * Optional. The previous PredictResponse.next_page_token.
              * 
          * * string page_token = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -341,29 +395,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
              * Optional. The previous PredictResponse.next_page_token.
              * 
          * * string page_token = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -374,6 +428,8 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** + * + * *
              * Optional. Filter for restricting prediction results. Accepts values for
              * tags and the `filterOutOfStockItems` flag.
          @@ -392,6 +448,7 @@ public java.lang.String getPageToken() {
              * 
          * * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -400,14 +457,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
              * Optional. Filter for restricting prediction results. Accepts values for
              * tags and the `filterOutOfStockItems` flag.
          @@ -426,16 +484,15 @@ public java.lang.String getFilter() {
              * 
          * * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -446,6 +503,8 @@ public java.lang.String getFilter() { public static final int DRY_RUN_FIELD_NUMBER = 4; private boolean dryRun_; /** + * + * *
              * Optional. Use dryRun mode for this prediction query. If set to true, a
              * dummy model will be used that returns arbitrary catalog items.
          @@ -454,6 +513,7 @@ public java.lang.String getFilter() {
              * 
          * * bool dry_run = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The dryRun. */ @java.lang.Override @@ -462,24 +522,26 @@ public boolean getDryRun() { } public static final int PARAMS_FIELD_NUMBER = 6; + private static final class ParamsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protobuf.Value> defaultEntry = + static final com.google.protobuf.MapEntry + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> params_; + + private com.google.protobuf.MapField params_; + private com.google.protobuf.MapField - internalGetParams() { + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); } return params_; } @@ -488,6 +550,8 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** + * + * *
              * Optional. Additional domain specific parameters for the predictions.
              * Allowed values:
          @@ -502,24 +566,26 @@ public int getParamsCount() {
              *    and history.
              * 
          * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsParams( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsParams(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetParams().getMap().containsKey(key); } - /** - * Use {@link #getParamsMap()} instead. - */ + /** Use {@link #getParamsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParams() { return getParamsMap(); } /** + * + * *
              * Optional. Additional domain specific parameters for the predictions.
              * Allowed values:
          @@ -534,14 +600,17 @@ public java.util.Map getParams() {
              *    and history.
              * 
          * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getParamsMap() { return internalGetParams().getMap(); } /** + * + * *
              * Optional. Additional domain specific parameters for the predictions.
              * Allowed values:
          @@ -556,19 +625,22 @@ public java.util.Map getParamsMap()
              *    and history.
              * 
          * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.protobuf.Value getParamsOrDefault( - java.lang.String key, - com.google.protobuf.Value defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParams().getMap(); + java.lang.String key, com.google.protobuf.Value defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParams().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
              * Optional. Additional domain specific parameters for the predictions.
              * Allowed values:
          @@ -583,15 +655,16 @@ public com.google.protobuf.Value getParamsOrDefault(
              *    and history.
              * 
          * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.protobuf.Value getParamsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParams().getMap(); + public com.google.protobuf.Value getParamsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParams().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -599,24 +672,23 @@ public com.google.protobuf.Value getParamsOrThrow( } public static final int LABELS_FIELD_NUMBER = 9; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -625,6 +697,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
              * Optional. The labels for the predict request.
              *  * Label keys can contain lowercase letters, digits and hyphens, must start
          @@ -637,22 +711,22 @@ public int getLabelsCount() {
              *
              * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
              */
          -
             @java.lang.Override
          -  public boolean containsLabels(
          -      java.lang.String key) {
          -    if (key == null) { throw new NullPointerException("map key"); }
          +  public boolean containsLabels(java.lang.String key) {
          +    if (key == null) {
          +      throw new NullPointerException("map key");
          +    }
               return internalGetLabels().getMap().containsKey(key);
             }
          -  /**
          -   * Use {@link #getLabelsMap()} instead.
          -   */
          +  /** Use {@link #getLabelsMap()} instead. */
             @java.lang.Override
             @java.lang.Deprecated
             public java.util.Map getLabels() {
               return getLabelsMap();
             }
             /**
          +   *
          +   *
              * 
              * Optional. The labels for the predict request.
              *  * Label keys can contain lowercase letters, digits and hyphens, must start
          @@ -666,11 +740,12 @@ public java.util.Map getLabels() {
              * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
              */
             @java.lang.Override
          -
             public java.util.Map getLabelsMap() {
               return internalGetLabels().getMap();
             }
             /**
          +   *
          +   *
              * 
              * Optional. The labels for the predict request.
              *  * Label keys can contain lowercase letters, digits and hyphens, must start
          @@ -684,16 +759,16 @@ public java.util.Map getLabelsMap() {
              * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
              */
             @java.lang.Override
          -
          -  public java.lang.String getLabelsOrDefault(
          -      java.lang.String key,
          -      java.lang.String defaultValue) {
          -    if (key == null) { throw new NullPointerException("map key"); }
          -    java.util.Map map =
          -        internalGetLabels().getMap();
          +  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
          +    if (key == null) {
          +      throw new NullPointerException("map key");
          +    }
          +    java.util.Map map = internalGetLabels().getMap();
               return map.containsKey(key) ? map.get(key) : defaultValue;
             }
             /**
          +   *
          +   *
              * 
              * Optional. The labels for the predict request.
              *  * Label keys can contain lowercase letters, digits and hyphens, must start
          @@ -707,12 +782,11 @@ public java.lang.String getLabelsOrDefault(
              * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
              */
             @java.lang.Override
          -
          -  public java.lang.String getLabelsOrThrow(
          -      java.lang.String key) {
          -    if (key == null) { throw new NullPointerException("map key"); }
          -    java.util.Map map =
          -        internalGetLabels().getMap();
          +  public java.lang.String getLabelsOrThrow(java.lang.String key) {
          +    if (key == null) {
          +      throw new NullPointerException("map key");
          +    }
          +    java.util.Map map = internalGetLabels().getMap();
               if (!map.containsKey(key)) {
                 throw new java.lang.IllegalArgumentException();
               }
          @@ -720,6 +794,7 @@ public java.lang.String getLabelsOrThrow(
             }
           
             private byte memoizedIsInitialized = -1;
          +
             @java.lang.Override
             public final boolean isInitialized() {
               byte isInitialized = memoizedIsInitialized;
          @@ -731,8 +806,7 @@ public final boolean isInitialized() {
             }
           
             @java.lang.Override
          -  public void writeTo(com.google.protobuf.CodedOutputStream output)
          -                      throws java.io.IOException {
          +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
               if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
                 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
               }
          @@ -745,24 +819,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
               if (dryRun_ != false) {
                 output.writeBool(4, dryRun_);
               }
          -    com.google.protobuf.GeneratedMessageV3
          -      .serializeStringMapTo(
          -        output,
          -        internalGetParams(),
          -        ParamsDefaultEntryHolder.defaultEntry,
          -        6);
          +    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
          +        output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 6);
               if (pageSize_ != 0) {
                 output.writeInt32(7, pageSize_);
               }
               if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
                 com.google.protobuf.GeneratedMessageV3.writeString(output, 8, pageToken_);
               }
          -    com.google.protobuf.GeneratedMessageV3
          -      .serializeStringMapTo(
          -        output,
          -        internalGetLabels(),
          -        LabelsDefaultEntryHolder.defaultEntry,
          -        9);
          +    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
          +        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9);
               unknownFields.writeTo(output);
             }
           
          @@ -776,42 +842,39 @@ public int getSerializedSize() {
                 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
               }
               if (userEvent_ != null) {
          -      size += com.google.protobuf.CodedOutputStream
          -        .computeMessageSize(2, getUserEvent());
          +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUserEvent());
               }
               if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
                 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_);
               }
               if (dryRun_ != false) {
          -      size += com.google.protobuf.CodedOutputStream
          -        .computeBoolSize(4, dryRun_);
          -    }
          -    for (java.util.Map.Entry entry
          -         : internalGetParams().getMap().entrySet()) {
          -      com.google.protobuf.MapEntry
          -      params__ = ParamsDefaultEntryHolder.defaultEntry.newBuilderForType()
          -          .setKey(entry.getKey())
          -          .setValue(entry.getValue())
          -          .build();
          -      size += com.google.protobuf.CodedOutputStream
          -          .computeMessageSize(6, params__);
          +      size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, dryRun_);
          +    }
          +    for (java.util.Map.Entry entry :
          +        internalGetParams().getMap().entrySet()) {
          +      com.google.protobuf.MapEntry params__ =
          +          ParamsDefaultEntryHolder.defaultEntry
          +              .newBuilderForType()
          +              .setKey(entry.getKey())
          +              .setValue(entry.getValue())
          +              .build();
          +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, params__);
               }
               if (pageSize_ != 0) {
          -      size += com.google.protobuf.CodedOutputStream
          -        .computeInt32Size(7, pageSize_);
          +      size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, pageSize_);
               }
               if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
                 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, pageToken_);
               }
          -    for (java.util.Map.Entry entry
          -         : internalGetLabels().getMap().entrySet()) {
          -      com.google.protobuf.MapEntry
          -      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
          -          .setKey(entry.getKey())
          -          .setValue(entry.getValue())
          -          .build();
          -      size += com.google.protobuf.CodedOutputStream
          -          .computeMessageSize(9, labels__);
          +    for (java.util.Map.Entry entry :
          +        internalGetLabels().getMap().entrySet()) {
          +      com.google.protobuf.MapEntry labels__ =
          +          LabelsDefaultEntryHolder.defaultEntry
          +              .newBuilderForType()
          +              .setKey(entry.getKey())
          +              .setValue(entry.getValue())
          +              .build();
          +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__);
               }
               size += unknownFields.getSerializedSize();
               memoizedSize = size;
          @@ -821,32 +884,25 @@ public int getSerializedSize() {
             @java.lang.Override
             public boolean equals(final java.lang.Object obj) {
               if (obj == this) {
          -     return true;
          +      return true;
               }
               if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.PredictRequest)) {
                 return super.equals(obj);
               }
          -    com.google.cloud.recommendationengine.v1beta1.PredictRequest other = (com.google.cloud.recommendationengine.v1beta1.PredictRequest) obj;
          +    com.google.cloud.recommendationengine.v1beta1.PredictRequest other =
          +        (com.google.cloud.recommendationengine.v1beta1.PredictRequest) obj;
           
          -    if (!getName()
          -        .equals(other.getName())) return false;
          +    if (!getName().equals(other.getName())) return false;
               if (hasUserEvent() != other.hasUserEvent()) return false;
               if (hasUserEvent()) {
          -      if (!getUserEvent()
          -          .equals(other.getUserEvent())) return false;
          -    }
          -    if (getPageSize()
          -        != other.getPageSize()) return false;
          -    if (!getPageToken()
          -        .equals(other.getPageToken())) return false;
          -    if (!getFilter()
          -        .equals(other.getFilter())) return false;
          -    if (getDryRun()
          -        != other.getDryRun()) return false;
          -    if (!internalGetParams().equals(
          -        other.internalGetParams())) return false;
          -    if (!internalGetLabels().equals(
          -        other.internalGetLabels())) return false;
          +      if (!getUserEvent().equals(other.getUserEvent())) return false;
          +    }
          +    if (getPageSize() != other.getPageSize()) return false;
          +    if (!getPageToken().equals(other.getPageToken())) return false;
          +    if (!getFilter().equals(other.getFilter())) return false;
          +    if (getDryRun() != other.getDryRun()) return false;
          +    if (!internalGetParams().equals(other.internalGetParams())) return false;
          +    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
               if (!unknownFields.equals(other.unknownFields)) return false;
               return true;
             }
          @@ -871,8 +927,7 @@ public int hashCode() {
               hash = (37 * hash) + FILTER_FIELD_NUMBER;
               hash = (53 * hash) + getFilter().hashCode();
               hash = (37 * hash) + DRY_RUN_FIELD_NUMBER;
          -    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          -        getDryRun());
          +    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDryRun());
               if (!internalGetParams().getMap().isEmpty()) {
                 hash = (37 * hash) + PARAMS_FIELD_NUMBER;
                 hash = (53 * hash) + internalGetParams().hashCode();
          @@ -887,143 +942,151 @@ public int hashCode() {
             }
           
             public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(
          -      java.nio.ByteBuffer data)
          -      throws com.google.protobuf.InvalidProtocolBufferException {
          +      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(
          -      java.nio.ByteBuffer data,
          -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data, extensionRegistry);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(
                 com.google.protobuf.ByteString data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(
                 com.google.protobuf.ByteString data,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data, extensionRegistry);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(byte[] data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(
          -      byte[] data,
          -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data, extensionRegistry);
             }
          -  public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(java.io.InputStream input)
          -      throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseWithIOException(PARSER, input);
          +
          +  public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(
          +      java.io.InputStream input) throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(
          -      java.io.InputStream input,
          -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseWithIOException(PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          +        PARSER, input, extensionRegistry);
             }
          -  public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseDelimitedFrom(java.io.InputStream input)
          -      throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseDelimitedWithIOException(PARSER, input);
          +
          +  public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseDelimitedFrom(
          +      java.io.InputStream input) throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseDelimitedFrom(
          -      java.io.InputStream input,
          -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          +        PARSER, input, extensionRegistry);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(
          -      com.google.protobuf.CodedInputStream input)
          -      throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseWithIOException(PARSER, input);
          +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.PredictRequest parseFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseWithIOException(PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          +        PARSER, input, extensionRegistry);
             }
           
             @java.lang.Override
          -  public Builder newBuilderForType() { return newBuilder(); }
          +  public Builder newBuilderForType() {
          +    return newBuilder();
          +  }
          +
             public static Builder newBuilder() {
               return DEFAULT_INSTANCE.toBuilder();
             }
          -  public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.PredictRequest prototype) {
          +
          +  public static Builder newBuilder(
          +      com.google.cloud.recommendationengine.v1beta1.PredictRequest prototype) {
               return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
             }
          +
             @java.lang.Override
             public Builder toBuilder() {
          -    return this == DEFAULT_INSTANCE
          -        ? new Builder() : new Builder().mergeFrom(this);
          +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
             }
           
             @java.lang.Override
          -  protected Builder newBuilderForType(
          -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
               Builder builder = new Builder(parent);
               return builder;
             }
             /**
          +   *
          +   *
              * 
              * Request message for Predict method.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PredictRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.PredictRequest) com.google.cloud.recommendationengine.v1beta1.PredictRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetParams(); case 9: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 6: return internalGetMutableParams(); case 9: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PredictRequest.class, com.google.cloud.recommendationengine.v1beta1.PredictRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.PredictRequest.class, + com.google.cloud.recommendationengine.v1beta1.PredictRequest.Builder.class); } // Construct using com.google.cloud.recommendationengine.v1beta1.PredictRequest.newBuilder() @@ -1031,16 +1094,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1066,13 +1128,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictRequest getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.PredictRequest + getDefaultInstanceForType() { return com.google.cloud.recommendationengine.v1beta1.PredictRequest.getDefaultInstance(); } @@ -1087,7 +1150,8 @@ public com.google.cloud.recommendationengine.v1beta1.PredictRequest build() { @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.PredictRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.PredictRequest result = new com.google.cloud.recommendationengine.v1beta1.PredictRequest(this); + com.google.cloud.recommendationengine.v1beta1.PredictRequest result = + new com.google.cloud.recommendationengine.v1beta1.PredictRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (userEventBuilder_ == null) { @@ -1111,38 +1175,39 @@ public com.google.cloud.recommendationengine.v1beta1.PredictRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.PredictRequest) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PredictRequest)other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PredictRequest) other); } else { super.mergeFrom(other); return this; @@ -1150,7 +1215,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PredictRequest other) { - if (other == com.google.cloud.recommendationengine.v1beta1.PredictRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.recommendationengine.v1beta1.PredictRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1172,10 +1239,8 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PredictRe if (other.getDryRun() != false) { setDryRun(other.getDryRun()); } - internalGetMutableParams().mergeFrom( - other.internalGetParams()); - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableParams().mergeFrom(other.internalGetParams()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1195,7 +1260,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.PredictRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.PredictRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1204,10 +1270,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
                * Required. Full resource name of the format:
                * `{name=projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/placements/*}`
          @@ -1234,14 +1303,16 @@ public Builder mergeFrom(
                * https://console.cloud.google.com/recommendation/datafeeds/default_catalog/dashboard
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1250,6 +1321,8 @@ public java.lang.String getName() { } } /** + * + * *
                * Required. Full resource name of the format:
                * `{name=projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/placements/*}`
          @@ -1276,16 +1349,17 @@ public java.lang.String getName() {
                * https://console.cloud.google.com/recommendation/datafeeds/default_catalog/dashboard
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1293,6 +1367,8 @@ public java.lang.String getName() { } } /** + * + * *
                * Required. Full resource name of the format:
                * `{name=projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/placements/*}`
          @@ -1319,21 +1395,25 @@ public java.lang.String getName() {
                * https://console.cloud.google.com/recommendation/datafeeds/default_catalog/dashboard
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                * Required. Full resource name of the format:
                * `{name=projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/placements/*}`
          @@ -1360,16 +1440,21 @@ public Builder setName(
                * https://console.cloud.google.com/recommendation/datafeeds/default_catalog/dashboard
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                * Required. Full resource name of the format:
                * `{name=projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/placements/*}`
          @@ -1396,17 +1481,19 @@ public Builder clearName() {
                * https://console.cloud.google.com/recommendation/datafeeds/default_catalog/dashboard
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1414,8 +1501,13 @@ public Builder setNameBytes( private com.google.cloud.recommendationengine.v1beta1.UserEvent userEvent_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> userEventBuilder_; + com.google.cloud.recommendationengine.v1beta1.UserEvent, + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, + com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> + userEventBuilder_; /** + * + * *
                * Required. Context about the user, what they are looking at and what action
                * they took to trigger the predict request. Note that this user event detail
          @@ -1423,13 +1515,18 @@ public Builder setNameBytes(
                * request is required for event logging.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the userEvent field is set. */ public boolean hasUserEvent() { return userEventBuilder_ != null || userEvent_ != null; } /** + * + * *
                * Required. Context about the user, what they are looking at and what action
                * they took to trigger the predict request. Note that this user event detail
          @@ -1437,17 +1534,24 @@ public boolean hasUserEvent() {
                * request is required for event logging.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The userEvent. */ public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvent() { if (userEventBuilder_ == null) { - return userEvent_ == null ? com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() : userEvent_; + return userEvent_ == null + ? com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() + : userEvent_; } else { return userEventBuilder_.getMessage(); } } /** + * + * *
                * Required. Context about the user, what they are looking at and what action
                * they took to trigger the predict request. Note that this user event detail
          @@ -1455,7 +1559,9 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvent() {
                * request is required for event logging.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUserEvent(com.google.cloud.recommendationengine.v1beta1.UserEvent value) { if (userEventBuilder_ == null) { @@ -1471,6 +1577,8 @@ public Builder setUserEvent(com.google.cloud.recommendationengine.v1beta1.UserEv return this; } /** + * + * *
                * Required. Context about the user, what they are looking at and what action
                * they took to trigger the predict request. Note that this user event detail
          @@ -1478,7 +1586,9 @@ public Builder setUserEvent(com.google.cloud.recommendationengine.v1beta1.UserEv
                * request is required for event logging.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUserEvent( com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { @@ -1492,6 +1602,8 @@ public Builder setUserEvent( return this; } /** + * + * *
                * Required. Context about the user, what they are looking at and what action
                * they took to trigger the predict request. Note that this user event detail
          @@ -1499,13 +1611,17 @@ public Builder setUserEvent(
                * request is required for event logging.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUserEvent(com.google.cloud.recommendationengine.v1beta1.UserEvent value) { if (userEventBuilder_ == null) { if (userEvent_ != null) { userEvent_ = - com.google.cloud.recommendationengine.v1beta1.UserEvent.newBuilder(userEvent_).mergeFrom(value).buildPartial(); + com.google.cloud.recommendationengine.v1beta1.UserEvent.newBuilder(userEvent_) + .mergeFrom(value) + .buildPartial(); } else { userEvent_ = value; } @@ -1517,6 +1633,8 @@ public Builder mergeUserEvent(com.google.cloud.recommendationengine.v1beta1.User return this; } /** + * + * *
                * Required. Context about the user, what they are looking at and what action
                * they took to trigger the predict request. Note that this user event detail
          @@ -1524,7 +1642,9 @@ public Builder mergeUserEvent(com.google.cloud.recommendationengine.v1beta1.User
                * request is required for event logging.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUserEvent() { if (userEventBuilder_ == null) { @@ -1538,6 +1658,8 @@ public Builder clearUserEvent() { return this; } /** + * + * *
                * Required. Context about the user, what they are looking at and what action
                * they took to trigger the predict request. Note that this user event detail
          @@ -1545,14 +1667,18 @@ public Builder clearUserEvent() {
                * request is required for event logging.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder getUserEventBuilder() { - + onChanged(); return getUserEventFieldBuilder().getBuilder(); } /** + * + * *
                * Required. Context about the user, what they are looking at and what action
                * they took to trigger the predict request. Note that this user event detail
          @@ -1560,17 +1686,23 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder getUserEv
                * request is required for event logging.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder + getUserEventOrBuilder() { if (userEventBuilder_ != null) { return userEventBuilder_.getMessageOrBuilder(); } else { - return userEvent_ == null ? - com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() : userEvent_; + return userEvent_ == null + ? com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() + : userEvent_; } } /** + * + * *
                * Required. Context about the user, what they are looking at and what action
                * they took to trigger the predict request. Note that this user event detail
          @@ -1578,24 +1710,31 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserE
                * request is required for event logging.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> + com.google.cloud.recommendationengine.v1beta1.UserEvent, + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, + com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> getUserEventFieldBuilder() { if (userEventBuilder_ == null) { - userEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder>( - getUserEvent(), - getParentForChildren(), - isClean()); + userEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.UserEvent, + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, + com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder>( + getUserEvent(), getParentForChildren(), isClean()); userEvent_ = null; } return userEventBuilder_; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
                * Optional. Maximum number of results to return per page. Set this property
                * to the number of prediction results required. If zero, the service will
          @@ -1603,6 +1742,7 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserE
                * 
          * * int32 page_size = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -1610,6 +1750,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
                * Optional. Maximum number of results to return per page. Set this property
                * to the number of prediction results required. If zero, the service will
          @@ -1617,16 +1759,19 @@ public int getPageSize() {
                * 
          * * int32 page_size = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Maximum number of results to return per page. Set this property
                * to the number of prediction results required. If zero, the service will
          @@ -1634,10 +1779,11 @@ public Builder setPageSize(int value) {
                * 
          * * int32 page_size = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1645,18 +1791,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
                * Optional. The previous PredictResponse.next_page_token.
                * 
          * * string page_token = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1665,20 +1813,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
                * Optional. The previous PredictResponse.next_page_token.
                * 
          * * string page_token = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1686,54 +1835,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
                * Optional. The previous PredictResponse.next_page_token.
                * 
          * * string page_token = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
                * Optional. The previous PredictResponse.next_page_token.
                * 
          * * string page_token = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
                * Optional. The previous PredictResponse.next_page_token.
                * 
          * * string page_token = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1741,6 +1897,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
                * Optional. Filter for restricting prediction results. Accepts values for
                * tags and the `filterOutOfStockItems` flag.
          @@ -1759,13 +1917,13 @@ public Builder setPageTokenBytes(
                * 
          * * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1774,6 +1932,8 @@ public java.lang.String getFilter() { } } /** + * + * *
                * Optional. Filter for restricting prediction results. Accepts values for
                * tags and the `filterOutOfStockItems` flag.
          @@ -1792,15 +1952,14 @@ public java.lang.String getFilter() {
                * 
          * * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1808,6 +1967,8 @@ public java.lang.String getFilter() { } } /** + * + * *
                * Optional. Filter for restricting prediction results. Accepts values for
                * tags and the `filterOutOfStockItems` flag.
          @@ -1826,20 +1987,22 @@ public java.lang.String getFilter() {
                * 
          * * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Filter for restricting prediction results. Accepts values for
                * tags and the `filterOutOfStockItems` flag.
          @@ -1858,15 +2021,18 @@ public Builder setFilter(
                * 
          * * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
                * Optional. Filter for restricting prediction results. Accepts values for
                * tags and the `filterOutOfStockItems` flag.
          @@ -1885,23 +2051,25 @@ public Builder clearFilter() {
                * 
          * * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private boolean dryRun_ ; + private boolean dryRun_; /** + * + * *
                * Optional. Use dryRun mode for this prediction query. If set to true, a
                * dummy model will be used that returns arbitrary catalog items.
          @@ -1910,6 +2078,7 @@ public Builder setFilterBytes(
                * 
          * * bool dry_run = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The dryRun. */ @java.lang.Override @@ -1917,6 +2086,8 @@ public boolean getDryRun() { return dryRun_; } /** + * + * *
                * Optional. Use dryRun mode for this prediction query. If set to true, a
                * dummy model will be used that returns arbitrary catalog items.
          @@ -1925,16 +2096,19 @@ public boolean getDryRun() {
                * 
          * * bool dry_run = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The dryRun to set. * @return This builder for chaining. */ public Builder setDryRun(boolean value) { - + dryRun_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Use dryRun mode for this prediction query. If set to true, a
                * dummy model will be used that returns arbitrary catalog items.
          @@ -1943,31 +2117,32 @@ public Builder setDryRun(boolean value) {
                * 
          * * bool dry_run = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDryRun() { - + dryRun_ = false; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> params_; + private com.google.protobuf.MapField params_; + private com.google.protobuf.MapField - internalGetParams() { + internalGetParams() { if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParamsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); } return params_; } + private com.google.protobuf.MapField - internalGetMutableParams() { - onChanged();; + internalGetMutableParams() { + onChanged(); + ; if (params_ == null) { - params_ = com.google.protobuf.MapField.newMapField( - ParamsDefaultEntryHolder.defaultEntry); + params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); } if (!params_.isMutable()) { params_ = params_.copy(); @@ -1979,6 +2154,8 @@ public int getParamsCount() { return internalGetParams().getMap().size(); } /** + * + * *
                * Optional. Additional domain specific parameters for the predictions.
                * Allowed values:
          @@ -1993,24 +2170,26 @@ public int getParamsCount() {
                *    and history.
                * 
          * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsParams( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsParams(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetParams().getMap().containsKey(key); } - /** - * Use {@link #getParamsMap()} instead. - */ + /** Use {@link #getParamsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParams() { return getParamsMap(); } /** + * + * *
                * Optional. Additional domain specific parameters for the predictions.
                * Allowed values:
          @@ -2025,14 +2204,17 @@ public java.util.Map getParams() {
                *    and history.
                * 
          * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getParamsMap() { return internalGetParams().getMap(); } /** + * + * *
                * Optional. Additional domain specific parameters for the predictions.
                * Allowed values:
          @@ -2047,19 +2229,22 @@ public java.util.Map getParamsMap()
                *    and history.
                * 
          * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.protobuf.Value getParamsOrDefault( - java.lang.String key, - com.google.protobuf.Value defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParams().getMap(); + java.lang.String key, com.google.protobuf.Value defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParams().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                * Optional. Additional domain specific parameters for the predictions.
                * Allowed values:
          @@ -2074,15 +2259,16 @@ public com.google.protobuf.Value getParamsOrDefault(
                *    and history.
                * 
          * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public com.google.protobuf.Value getParamsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetParams().getMap(); + public com.google.protobuf.Value getParamsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParams().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2090,11 +2276,12 @@ public com.google.protobuf.Value getParamsOrThrow( } public Builder clearParams() { - internalGetMutableParams().getMutableMap() - .clear(); + internalGetMutableParams().getMutableMap().clear(); return this; } /** + * + * *
                * Optional. Additional domain specific parameters for the predictions.
                * Allowed values:
          @@ -2109,25 +2296,25 @@ public Builder clearParams() {
                *    and history.
                * 
          * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeParams( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableParams().getMutableMap() - .remove(key); + public Builder removeParams(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableParams().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableParams() { + public java.util.Map getMutableParams() { return internalGetMutableParams().getMutableMap(); } /** + * + * *
                * Optional. Additional domain specific parameters for the predictions.
                * Allowed values:
          @@ -2142,21 +2329,24 @@ public Builder removeParams(
                *    and history.
                * 
          * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putParams( - java.lang.String key, - com.google.protobuf.Value value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putParams(java.lang.String key, com.google.protobuf.Value value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableParams().getMutableMap() - .put(key, value); + internalGetMutableParams().getMutableMap().put(key, value); return this; } /** + * + * *
                * Optional. Additional domain specific parameters for the predictions.
                * Allowed values:
          @@ -2171,32 +2361,30 @@ public Builder putParams(
                *    and history.
                * 
          * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder putAllParams( - java.util.Map values) { - internalGetMutableParams().getMutableMap() - .putAll(values); + public Builder putAllParams(java.util.Map values) { + internalGetMutableParams().getMutableMap().putAll(values); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2208,6 +2396,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
                * Optional. The labels for the predict request.
                *  * Label keys can contain lowercase letters, digits and hyphens, must start
          @@ -2220,22 +2410,22 @@ public int getLabelsCount() {
                *
                * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
                */
          -
               @java.lang.Override
          -    public boolean containsLabels(
          -        java.lang.String key) {
          -      if (key == null) { throw new NullPointerException("map key"); }
          +    public boolean containsLabels(java.lang.String key) {
          +      if (key == null) {
          +        throw new NullPointerException("map key");
          +      }
                 return internalGetLabels().getMap().containsKey(key);
               }
          -    /**
          -     * Use {@link #getLabelsMap()} instead.
          -     */
          +    /** Use {@link #getLabelsMap()} instead. */
               @java.lang.Override
               @java.lang.Deprecated
               public java.util.Map getLabels() {
                 return getLabelsMap();
               }
               /**
          +     *
          +     *
                * 
                * Optional. The labels for the predict request.
                *  * Label keys can contain lowercase letters, digits and hyphens, must start
          @@ -2249,11 +2439,12 @@ public java.util.Map getLabels() {
                * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
                */
               @java.lang.Override
          -
               public java.util.Map getLabelsMap() {
                 return internalGetLabels().getMap();
               }
               /**
          +     *
          +     *
                * 
                * Optional. The labels for the predict request.
                *  * Label keys can contain lowercase letters, digits and hyphens, must start
          @@ -2267,16 +2458,17 @@ public java.util.Map getLabelsMap() {
                * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
                */
               @java.lang.Override
          -
               public java.lang.String getLabelsOrDefault(
          -        java.lang.String key,
          -        java.lang.String defaultValue) {
          -      if (key == null) { throw new NullPointerException("map key"); }
          -      java.util.Map map =
          -          internalGetLabels().getMap();
          +        java.lang.String key, java.lang.String defaultValue) {
          +      if (key == null) {
          +        throw new NullPointerException("map key");
          +      }
          +      java.util.Map map = internalGetLabels().getMap();
                 return map.containsKey(key) ? map.get(key) : defaultValue;
               }
               /**
          +     *
          +     *
                * 
                * Optional. The labels for the predict request.
                *  * Label keys can contain lowercase letters, digits and hyphens, must start
          @@ -2290,12 +2482,11 @@ public java.lang.String getLabelsOrDefault(
                * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
                */
               @java.lang.Override
          -
          -    public java.lang.String getLabelsOrThrow(
          -        java.lang.String key) {
          -      if (key == null) { throw new NullPointerException("map key"); }
          -      java.util.Map map =
          -          internalGetLabels().getMap();
          +    public java.lang.String getLabelsOrThrow(java.lang.String key) {
          +      if (key == null) {
          +        throw new NullPointerException("map key");
          +      }
          +      java.util.Map map = internalGetLabels().getMap();
                 if (!map.containsKey(key)) {
                   throw new java.lang.IllegalArgumentException();
                 }
          @@ -2303,11 +2494,12 @@ public java.lang.String getLabelsOrThrow(
               }
           
               public Builder clearLabels() {
          -      internalGetMutableLabels().getMutableMap()
          -          .clear();
          +      internalGetMutableLabels().getMutableMap().clear();
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Optional. The labels for the predict request.
                *  * Label keys can contain lowercase letters, digits and hyphens, must start
          @@ -2320,23 +2512,21 @@ public Builder clearLabels() {
                *
                * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
                */
          -
          -    public Builder removeLabels(
          -        java.lang.String key) {
          -      if (key == null) { throw new NullPointerException("map key"); }
          -      internalGetMutableLabels().getMutableMap()
          -          .remove(key);
          +    public Builder removeLabels(java.lang.String key) {
          +      if (key == null) {
          +        throw new NullPointerException("map key");
          +      }
          +      internalGetMutableLabels().getMutableMap().remove(key);
                 return this;
               }
          -    /**
          -     * Use alternate mutation accessors instead.
          -     */
          +    /** Use alternate mutation accessors instead. */
               @java.lang.Deprecated
          -    public java.util.Map
          -    getMutableLabels() {
          +    public java.util.Map getMutableLabels() {
                 return internalGetMutableLabels().getMutableMap();
               }
               /**
          +     *
          +     *
                * 
                * Optional. The labels for the predict request.
                *  * Label keys can contain lowercase letters, digits and hyphens, must start
          @@ -2349,19 +2539,20 @@ public Builder removeLabels(
                *
                * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
                */
          -    public Builder putLabels(
          -        java.lang.String key,
          -        java.lang.String value) {
          -      if (key == null) { throw new NullPointerException("map key"); }
          +    public Builder putLabels(java.lang.String key, java.lang.String value) {
          +      if (key == null) {
          +        throw new NullPointerException("map key");
          +      }
                 if (value == null) {
          -  throw new NullPointerException("map value");
          -}
          +        throw new NullPointerException("map value");
          +      }
           
          -      internalGetMutableLabels().getMutableMap()
          -          .put(key, value);
          +      internalGetMutableLabels().getMutableMap().put(key, value);
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Optional. The labels for the predict request.
                *  * Label keys can contain lowercase letters, digits and hyphens, must start
          @@ -2374,16 +2565,13 @@ public Builder putLabels(
                *
                * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
                */
          -
          -    public Builder putAllLabels(
          -        java.util.Map values) {
          -      internalGetMutableLabels().getMutableMap()
          -          .putAll(values);
          +    public Builder putAllLabels(java.util.Map values) {
          +      internalGetMutableLabels().getMutableMap().putAll(values);
                 return this;
               }
          +
               @java.lang.Override
          -    public final Builder setUnknownFields(
          -        final com.google.protobuf.UnknownFieldSet unknownFields) {
          +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                 return super.setUnknownFields(unknownFields);
               }
           
          @@ -2393,12 +2581,13 @@ public final Builder mergeUnknownFields(
                 return super.mergeUnknownFields(unknownFields);
               }
           
          -
               // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.PredictRequest)
             }
           
             // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.PredictRequest)
          -  private static final com.google.cloud.recommendationengine.v1beta1.PredictRequest DEFAULT_INSTANCE;
          +  private static final com.google.cloud.recommendationengine.v1beta1.PredictRequest
          +      DEFAULT_INSTANCE;
          +
             static {
               DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.PredictRequest();
             }
          @@ -2407,16 +2596,16 @@ public static com.google.cloud.recommendationengine.v1beta1.PredictRequest getDe
               return DEFAULT_INSTANCE;
             }
           
          -  private static final com.google.protobuf.Parser
          -      PARSER = new com.google.protobuf.AbstractParser() {
          -    @java.lang.Override
          -    public PredictRequest parsePartialFrom(
          -        com.google.protobuf.CodedInputStream input,
          -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          -        throws com.google.protobuf.InvalidProtocolBufferException {
          -      return new PredictRequest(input, extensionRegistry);
          -    }
          -  };
          +  private static final com.google.protobuf.Parser PARSER =
          +      new com.google.protobuf.AbstractParser() {
          +        @java.lang.Override
          +        public PredictRequest parsePartialFrom(
          +            com.google.protobuf.CodedInputStream input,
          +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +            throws com.google.protobuf.InvalidProtocolBufferException {
          +          return new PredictRequest(input, extensionRegistry);
          +        }
          +      };
           
             public static com.google.protobuf.Parser parser() {
               return PARSER;
          @@ -2431,6 +2620,4 @@ public com.google.protobuf.Parser getParserForType() {
             public com.google.cloud.recommendationengine.v1beta1.PredictRequest getDefaultInstanceForType() {
               return DEFAULT_INSTANCE;
             }
          -
           }
          -
          diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequestOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequestOrBuilder.java
          similarity index 82%
          rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequestOrBuilder.java
          rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequestOrBuilder.java
          index 40e51b6f..4cc143f5 100644
          --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequestOrBuilder.java
          +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictRequestOrBuilder.java
          @@ -1,13 +1,31 @@
          +/*
          + * Copyright 2020 Google LLC
          + *
          + * Licensed under the Apache License, Version 2.0 (the "License");
          + * you may not use this file except in compliance with the License.
          + * You may obtain a copy of the License at
          + *
          + *     https://www.apache.org/licenses/LICENSE-2.0
          + *
          + * Unless required by applicable law or agreed to in writing, software
          + * distributed under the License is distributed on an "AS IS" BASIS,
          + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
          + * See the License for the specific language governing permissions and
          + * limitations under the License.
          + */
           // Generated by the protocol buffer compiler.  DO NOT EDIT!
           // source: google/cloud/recommendationengine/v1beta1/prediction_service.proto
           
           package com.google.cloud.recommendationengine.v1beta1;
           
          -public interface PredictRequestOrBuilder extends
          +public interface PredictRequestOrBuilder
          +    extends
               // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.PredictRequest)
               com.google.protobuf.MessageOrBuilder {
           
             /**
          +   *
          +   *
              * 
              * Required. Full resource name of the format:
              * `{name=projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/placements/*}`
          @@ -34,11 +52,16 @@ public interface PredictRequestOrBuilder extends
              * https://console.cloud.google.com/recommendation/datafeeds/default_catalog/dashboard
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
              * Required. Full resource name of the format:
              * `{name=projects/*/locations/global/catalogs/default_catalog/eventStores/default_event_store/placements/*}`
          @@ -65,13 +88,17 @@ public interface PredictRequestOrBuilder extends
              * https://console.cloud.google.com/recommendation/datafeeds/default_catalog/dashboard
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
              * Required. Context about the user, what they are looking at and what action
              * they took to trigger the predict request. Note that this user event detail
          @@ -79,11 +106,16 @@ public interface PredictRequestOrBuilder extends
              * request is required for event logging.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the userEvent field is set. */ boolean hasUserEvent(); /** + * + * *
              * Required. Context about the user, what they are looking at and what action
              * they took to trigger the predict request. Note that this user event detail
          @@ -91,11 +123,16 @@ public interface PredictRequestOrBuilder extends
              * request is required for event logging.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The userEvent. */ com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvent(); /** + * + * *
              * Required. Context about the user, what they are looking at and what action
              * they took to trigger the predict request. Note that this user event detail
          @@ -103,11 +140,15 @@ public interface PredictRequestOrBuilder extends
              * request is required for event logging.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventOrBuilder(); /** + * + * *
              * Optional. Maximum number of results to return per page. Set this property
              * to the number of prediction results required. If zero, the service will
          @@ -115,31 +156,39 @@ public interface PredictRequestOrBuilder extends
              * 
          * * int32 page_size = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
              * Optional. The previous PredictResponse.next_page_token.
              * 
          * * string page_token = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
              * Optional. The previous PredictResponse.next_page_token.
              * 
          * * string page_token = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
              * Optional. Filter for restricting prediction results. Accepts values for
              * tags and the `filterOutOfStockItems` flag.
          @@ -158,10 +207,13 @@ public interface PredictRequestOrBuilder extends
              * 
          * * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
              * Optional. Filter for restricting prediction results. Accepts values for
              * tags and the `filterOutOfStockItems` flag.
          @@ -180,12 +232,14 @@ public interface PredictRequestOrBuilder extends
              * 
          * * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
              * Optional. Use dryRun mode for this prediction query. If set to true, a
              * dummy model will be used that returns arbitrary catalog items.
          @@ -194,11 +248,14 @@ public interface PredictRequestOrBuilder extends
              * 
          * * bool dry_run = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The dryRun. */ boolean getDryRun(); /** + * + * *
              * Optional. Additional domain specific parameters for the predictions.
              * Allowed values:
          @@ -213,10 +270,14 @@ public interface PredictRequestOrBuilder extends
              *    and history.
              * 
          * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getParamsCount(); /** + * + * *
              * Optional. Additional domain specific parameters for the predictions.
              * Allowed values:
          @@ -231,17 +292,17 @@ public interface PredictRequestOrBuilder extends
              *    and history.
              * 
          * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsParams( - java.lang.String key); - /** - * Use {@link #getParamsMap()} instead. + * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsParams(java.lang.String key); + /** Use {@link #getParamsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getParams(); + java.util.Map getParams(); /** + * + * *
              * Optional. Additional domain specific parameters for the predictions.
              * Allowed values:
          @@ -256,11 +317,14 @@ boolean containsParams(
              *    and history.
              * 
          * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getParamsMap(); + java.util.Map getParamsMap(); /** + * + * *
              * Optional. Additional domain specific parameters for the predictions.
              * Allowed values:
          @@ -275,15 +339,19 @@ boolean containsParams(
              *    and history.
              * 
          * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -com.google.protobuf.Value getParamsOrDefault( + com.google.protobuf.Value getParamsOrDefault( java.lang.String key, /* nullable */ -com.google.protobuf.Value defaultValue); + com.google.protobuf.Value defaultValue); /** + * + * *
              * Optional. Additional domain specific parameters for the predictions.
              * Allowed values:
          @@ -298,13 +366,15 @@ com.google.protobuf.Value getParamsOrDefault(
              *    and history.
              * 
          * - * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.protobuf.Value> params = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - com.google.protobuf.Value getParamsOrThrow( - java.lang.String key); + com.google.protobuf.Value getParamsOrThrow(java.lang.String key); /** + * + * *
              * Optional. The labels for the predict request.
              *  * Label keys can contain lowercase letters, digits and hyphens, must start
          @@ -319,6 +389,8 @@ com.google.protobuf.Value getParamsOrThrow(
              */
             int getLabelsCount();
             /**
          +   *
          +   *
              * 
              * Optional. The labels for the predict request.
              *  * Label keys can contain lowercase letters, digits and hyphens, must start
          @@ -331,15 +403,13 @@ com.google.protobuf.Value getParamsOrThrow(
              *
              * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
              */
          -  boolean containsLabels(
          -      java.lang.String key);
          -  /**
          -   * Use {@link #getLabelsMap()} instead.
          -   */
          +  boolean containsLabels(java.lang.String key);
          +  /** Use {@link #getLabelsMap()} instead. */
             @java.lang.Deprecated
          -  java.util.Map
          -  getLabels();
          +  java.util.Map getLabels();
             /**
          +   *
          +   *
              * 
              * Optional. The labels for the predict request.
              *  * Label keys can contain lowercase letters, digits and hyphens, must start
          @@ -352,9 +422,10 @@ boolean containsLabels(
              *
              * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
              */
          -  java.util.Map
          -  getLabelsMap();
          +  java.util.Map getLabelsMap();
             /**
          +   *
          +   *
              * 
              * Optional. The labels for the predict request.
              *  * Label keys can contain lowercase letters, digits and hyphens, must start
          @@ -369,11 +440,13 @@ boolean containsLabels(
              */
           
             /* nullable */
          -java.lang.String getLabelsOrDefault(
          +  java.lang.String getLabelsOrDefault(
                 java.lang.String key,
                 /* nullable */
          -java.lang.String defaultValue);
          +      java.lang.String defaultValue);
             /**
          +   *
          +   *
              * 
              * Optional. The labels for the predict request.
              *  * Label keys can contain lowercase letters, digits and hyphens, must start
          @@ -386,7 +459,5 @@ java.lang.String getLabelsOrDefault(
              *
              * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
              */
          -
          -  java.lang.String getLabelsOrThrow(
          -      java.lang.String key);
          +  java.lang.String getLabelsOrThrow(java.lang.String key);
           }
          diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponse.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponse.java
          similarity index 65%
          rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponse.java
          rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponse.java
          index 773523cb..ef707ed9 100644
          --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponse.java
          +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponse.java
          @@ -1,24 +1,42 @@
          +/*
          + * Copyright 2020 Google LLC
          + *
          + * Licensed under the Apache License, Version 2.0 (the "License");
          + * you may not use this file except in compliance with the License.
          + * You may obtain a copy of the License at
          + *
          + *     https://www.apache.org/licenses/LICENSE-2.0
          + *
          + * Unless required by applicable law or agreed to in writing, software
          + * distributed under the License is distributed on an "AS IS" BASIS,
          + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
          + * See the License for the specific language governing permissions and
          + * limitations under the License.
          + */
           // Generated by the protocol buffer compiler.  DO NOT EDIT!
           // source: google/cloud/recommendationengine/v1beta1/prediction_service.proto
           
           package com.google.cloud.recommendationengine.v1beta1;
           
           /**
          + *
          + *
            * 
            * Response message for predict method.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PredictResponse} */ -public final class PredictResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PredictResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.PredictResponse) PredictResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PredictResponse.newBuilder() to construct. private PredictResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PredictResponse() { results_ = java.util.Collections.emptyList(); recommendationToken_ = ""; @@ -28,16 +46,15 @@ private PredictResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PredictResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PredictResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,61 +74,73 @@ private PredictResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + results_ = + new java.util.ArrayList< + com.google.cloud.recommendationengine.v1beta1.PredictResponse + .PredictionResult>(); + mutable_bitField0_ |= 0x00000001; + } + results_.add( + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult + .parser(), + extensionRegistry)); + break; } - results_.add( - input.readMessage(com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - recommendationToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - itemsMissingInCatalog_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + recommendationToken_ = s; + break; } - itemsMissingInCatalog_.add(s); - break; - } - case 32: { - - dryRun_ = input.readBool(); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + itemsMissingInCatalog_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + itemsMissingInCatalog_.add(s); + break; } - com.google.protobuf.MapEntry - metadata__ = input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - metadata_.getMutableMap().put( - metadata__.getKey(), metadata__.getValue()); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + case 32: + { + dryRun_ = input.readBool(); + break; + } + case 42: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + metadata_ = + com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -119,8 +148,7 @@ private PredictResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { results_ = java.util.Collections.unmodifiableList(results_); @@ -132,56 +160,66 @@ private PredictResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PredictResponse.class, com.google.cloud.recommendationengine.v1beta1.PredictResponse.Builder.class); + com.google.cloud.recommendationengine.v1beta1.PredictResponse.class, + com.google.cloud.recommendationengine.v1beta1.PredictResponse.Builder.class); } - public interface PredictionResultOrBuilder extends + public interface PredictionResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * ID of the recommended catalog item
                * 
          * * string id = 1; + * * @return The id. */ java.lang.String getId(); /** + * + * *
                * ID of the recommended catalog item
                * 
          * * string id = 1; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
                * Additional item metadata / annotations.
                * Possible values:
          @@ -195,6 +233,8 @@ public interface PredictionResultOrBuilder extends
                */
               int getItemMetadataCount();
               /**
          +     *
          +     *
                * 
                * Additional item metadata / annotations.
                * Possible values:
          @@ -206,15 +246,13 @@ public interface PredictionResultOrBuilder extends
                *
                * map<string, .google.protobuf.Value> item_metadata = 2;
                */
          -    boolean containsItemMetadata(
          -        java.lang.String key);
          -    /**
          -     * Use {@link #getItemMetadataMap()} instead.
          -     */
          +    boolean containsItemMetadata(java.lang.String key);
          +    /** Use {@link #getItemMetadataMap()} instead. */
               @java.lang.Deprecated
          -    java.util.Map
          -    getItemMetadata();
          +    java.util.Map getItemMetadata();
               /**
          +     *
          +     *
                * 
                * Additional item metadata / annotations.
                * Possible values:
          @@ -226,9 +264,10 @@ boolean containsItemMetadata(
                *
                * map<string, .google.protobuf.Value> item_metadata = 2;
                */
          -    java.util.Map
          -    getItemMetadataMap();
          +    java.util.Map getItemMetadataMap();
               /**
          +     *
          +     *
                * 
                * Additional item metadata / annotations.
                * Possible values:
          @@ -242,11 +281,13 @@ boolean containsItemMetadata(
                */
           
               /* nullable */
          -com.google.protobuf.Value getItemMetadataOrDefault(
          +    com.google.protobuf.Value getItemMetadataOrDefault(
                   java.lang.String key,
                   /* nullable */
          -com.google.protobuf.Value defaultValue);
          +        com.google.protobuf.Value defaultValue);
               /**
          +     *
          +     *
                * 
                * Additional item metadata / annotations.
                * Possible values:
          @@ -258,42 +299,43 @@ com.google.protobuf.Value getItemMetadataOrDefault(
                *
                * map<string, .google.protobuf.Value> item_metadata = 2;
                */
          -
          -    com.google.protobuf.Value getItemMetadataOrThrow(
          -        java.lang.String key);
          +    com.google.protobuf.Value getItemMetadataOrThrow(java.lang.String key);
             }
             /**
          +   *
          +   *
              * 
              * PredictionResult represents the recommendation prediction results.
              * 
          * - * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult} + * Protobuf type {@code + * google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult} */ - public static final class PredictionResult extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class PredictionResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult) PredictionResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PredictionResult.newBuilder() to construct. private PredictionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PredictionResult() { id_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PredictionResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PredictionResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -313,32 +355,38 @@ private PredictionResult( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - itemMetadata_ = com.google.protobuf.MapField.newMapField( - ItemMetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + id_ = s; + break; } - com.google.protobuf.MapEntry - itemMetadata__ = input.readMessage( - ItemMetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - itemMetadata_.getMutableMap().put( - itemMetadata__.getKey(), itemMetadata__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + itemMetadata_ = + com.google.protobuf.MapField.newMapField( + ItemMetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + itemMetadata__ = + input.readMessage( + ItemMetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + itemMetadata_ + .getMutableMap() + .put(itemMetadata__.getKey(), itemMetadata__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -346,46 +394,51 @@ private PredictionResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetItemMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.class, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder.class); + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.class, + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder + .class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** + * + * *
                * ID of the recommended catalog item
                * 
          * * string id = 1; + * * @return The id. */ @java.lang.Override @@ -394,29 +447,29 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** + * + * *
                * ID of the recommended catalog item
                * 
          * * string id = 1; + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -425,21 +478,24 @@ public java.lang.String getId() { } public static final int ITEM_METADATA_FIELD_NUMBER = 2; + private static final class ItemMetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protobuf.Value> defaultEntry = + static final com.google.protobuf.MapEntry + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> itemMetadata_; + .newDefaultInstance( + com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); + } + + private com.google.protobuf.MapField itemMetadata_; + private com.google.protobuf.MapField - internalGetItemMetadata() { + internalGetItemMetadata() { if (itemMetadata_ == null) { return com.google.protobuf.MapField.emptyMapField( ItemMetadataDefaultEntryHolder.defaultEntry); @@ -451,6 +507,8 @@ public int getItemMetadataCount() { return internalGetItemMetadata().getMap().size(); } /** + * + * *
                * Additional item metadata / annotations.
                * Possible values:
          @@ -462,22 +520,22 @@ public int getItemMetadataCount() {
                *
                * map<string, .google.protobuf.Value> item_metadata = 2;
                */
          -
               @java.lang.Override
          -    public boolean containsItemMetadata(
          -        java.lang.String key) {
          -      if (key == null) { throw new NullPointerException("map key"); }
          +    public boolean containsItemMetadata(java.lang.String key) {
          +      if (key == null) {
          +        throw new NullPointerException("map key");
          +      }
                 return internalGetItemMetadata().getMap().containsKey(key);
               }
          -    /**
          -     * Use {@link #getItemMetadataMap()} instead.
          -     */
          +    /** Use {@link #getItemMetadataMap()} instead. */
               @java.lang.Override
               @java.lang.Deprecated
               public java.util.Map getItemMetadata() {
                 return getItemMetadataMap();
               }
               /**
          +     *
          +     *
                * 
                * Additional item metadata / annotations.
                * Possible values:
          @@ -490,11 +548,12 @@ public java.util.Map getItemMetadat
                * map<string, .google.protobuf.Value> item_metadata = 2;
                */
               @java.lang.Override
          -
               public java.util.Map getItemMetadataMap() {
                 return internalGetItemMetadata().getMap();
               }
               /**
          +     *
          +     *
                * 
                * Additional item metadata / annotations.
                * Possible values:
          @@ -507,16 +566,18 @@ public java.util.Map getItemMetadat
                * map<string, .google.protobuf.Value> item_metadata = 2;
                */
               @java.lang.Override
          -
               public com.google.protobuf.Value getItemMetadataOrDefault(
          -        java.lang.String key,
          -        com.google.protobuf.Value defaultValue) {
          -      if (key == null) { throw new NullPointerException("map key"); }
          +        java.lang.String key, com.google.protobuf.Value defaultValue) {
          +      if (key == null) {
          +        throw new NullPointerException("map key");
          +      }
                 java.util.Map map =
                     internalGetItemMetadata().getMap();
                 return map.containsKey(key) ? map.get(key) : defaultValue;
               }
               /**
          +     *
          +     *
                * 
                * Additional item metadata / annotations.
                * Possible values:
          @@ -529,10 +590,10 @@ public com.google.protobuf.Value getItemMetadataOrDefault(
                * map<string, .google.protobuf.Value> item_metadata = 2;
                */
               @java.lang.Override
          -
          -    public com.google.protobuf.Value getItemMetadataOrThrow(
          -        java.lang.String key) {
          -      if (key == null) { throw new NullPointerException("map key"); }
          +    public com.google.protobuf.Value getItemMetadataOrThrow(java.lang.String key) {
          +      if (key == null) {
          +        throw new NullPointerException("map key");
          +      }
                 java.util.Map map =
                     internalGetItemMetadata().getMap();
                 if (!map.containsKey(key)) {
          @@ -542,6 +603,7 @@ public com.google.protobuf.Value getItemMetadataOrThrow(
               }
           
               private byte memoizedIsInitialized = -1;
          +
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
          @@ -553,17 +615,12 @@ public final boolean isInitialized() {
               }
           
               @java.lang.Override
          -    public void writeTo(com.google.protobuf.CodedOutputStream output)
          -                        throws java.io.IOException {
          +    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
                 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
                   com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
                 }
          -      com.google.protobuf.GeneratedMessageV3
          -        .serializeStringMapTo(
          -          output,
          -          internalGetItemMetadata(),
          -          ItemMetadataDefaultEntryHolder.defaultEntry,
          -          2);
          +      com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
          +          output, internalGetItemMetadata(), ItemMetadataDefaultEntryHolder.defaultEntry, 2);
                 unknownFields.writeTo(output);
               }
           
          @@ -576,15 +633,15 @@ public int getSerializedSize() {
                 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
                   size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
                 }
          -      for (java.util.Map.Entry entry
          -           : internalGetItemMetadata().getMap().entrySet()) {
          -        com.google.protobuf.MapEntry
          -        itemMetadata__ = ItemMetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
          -            .setKey(entry.getKey())
          -            .setValue(entry.getValue())
          -            .build();
          -        size += com.google.protobuf.CodedOutputStream
          -            .computeMessageSize(2, itemMetadata__);
          +      for (java.util.Map.Entry entry :
          +          internalGetItemMetadata().getMap().entrySet()) {
          +        com.google.protobuf.MapEntry itemMetadata__ =
          +            ItemMetadataDefaultEntryHolder.defaultEntry
          +                .newBuilderForType()
          +                .setKey(entry.getKey())
          +                .setValue(entry.getValue())
          +                .build();
          +        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, itemMetadata__);
                 }
                 size += unknownFields.getSerializedSize();
                 memoizedSize = size;
          @@ -594,17 +651,18 @@ public int getSerializedSize() {
               @java.lang.Override
               public boolean equals(final java.lang.Object obj) {
                 if (obj == this) {
          -       return true;
          +        return true;
                 }
          -      if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult)) {
          +      if (!(obj
          +          instanceof
          +          com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult)) {
                   return super.equals(obj);
                 }
          -      com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult other = (com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult) obj;
          +      com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult other =
          +          (com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult) obj;
           
          -      if (!getId()
          -          .equals(other.getId())) return false;
          -      if (!internalGetItemMetadata().equals(
          -          other.internalGetItemMetadata())) return false;
          +      if (!getId().equals(other.getId())) return false;
          +      if (!internalGetItemMetadata().equals(other.internalGetItemMetadata())) return false;
                 if (!unknownFields.equals(other.unknownFields)) return false;
                 return true;
               }
          @@ -627,88 +685,101 @@ public int hashCode() {
                 return hash;
               }
           
          -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseFrom(
          -        java.nio.ByteBuffer data)
          -        throws com.google.protobuf.InvalidProtocolBufferException {
          +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
          +        parseFrom(java.nio.ByteBuffer data)
          +            throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
          -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseFrom(
          -        java.nio.ByteBuffer data,
          -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          -        throws com.google.protobuf.InvalidProtocolBufferException {
          +
          +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
          +        parseFrom(
          +            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +            throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
          -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseFrom(
          -        com.google.protobuf.ByteString data)
          -        throws com.google.protobuf.InvalidProtocolBufferException {
          +
          +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
          +        parseFrom(com.google.protobuf.ByteString data)
          +            throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
          -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseFrom(
          -        com.google.protobuf.ByteString data,
          -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          -        throws com.google.protobuf.InvalidProtocolBufferException {
          +
          +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
          +        parseFrom(
          +            com.google.protobuf.ByteString data,
          +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +            throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
          -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseFrom(byte[] data)
          -        throws com.google.protobuf.InvalidProtocolBufferException {
          +
          +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
          +        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
          -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseFrom(
          -        byte[] data,
          -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          -        throws com.google.protobuf.InvalidProtocolBufferException {
          +
          +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
          +        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +            throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
          -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseFrom(java.io.InputStream input)
          -        throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3
          -          .parseWithIOException(PARSER, input);
          +
          +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
          +        parseFrom(java.io.InputStream input) throws java.io.IOException {
          +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
               }
          -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseFrom(
          -        java.io.InputStream input,
          -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          -        throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3
          -          .parseWithIOException(PARSER, input, extensionRegistry);
          +
          +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
          +        parseFrom(
          +            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +            throws java.io.IOException {
          +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          +          PARSER, input, extensionRegistry);
               }
          -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseDelimitedFrom(java.io.InputStream input)
          -        throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3
          -          .parseDelimitedWithIOException(PARSER, input);
          +
          +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
          +        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
          +      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
               }
          -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseDelimitedFrom(
          -        java.io.InputStream input,
          -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          -        throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3
          -          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
          +
          +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
          +        parseDelimitedFrom(
          +            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +            throws java.io.IOException {
          +      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          +          PARSER, input, extensionRegistry);
               }
          -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseFrom(
          -        com.google.protobuf.CodedInputStream input)
          -        throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3
          -          .parseWithIOException(PARSER, input);
          +
          +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
          +        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
               }
          -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parseFrom(
          -        com.google.protobuf.CodedInputStream input,
          -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          -        throws java.io.IOException {
          -      return com.google.protobuf.GeneratedMessageV3
          -          .parseWithIOException(PARSER, input, extensionRegistry);
          +
          +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
          +        parseFrom(
          +            com.google.protobuf.CodedInputStream input,
          +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +            throws java.io.IOException {
          +      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          +          PARSER, input, extensionRegistry);
               }
           
               @java.lang.Override
          -    public Builder newBuilderForType() { return newBuilder(); }
          +    public Builder newBuilderForType() {
          +      return newBuilder();
          +    }
          +
               public static Builder newBuilder() {
                 return DEFAULT_INSTANCE.toBuilder();
               }
          -    public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult prototype) {
          +
          +    public static Builder newBuilder(
          +        com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult prototype) {
                 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
               }
          +
               @java.lang.Override
               public Builder toBuilder() {
          -      return this == DEFAULT_INSTANCE
          -          ? new Builder() : new Builder().mergeFrom(this);
          +      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
               }
           
               @java.lang.Override
          @@ -718,66 +789,72 @@ protected Builder newBuilderForType(
                 return builder;
               }
               /**
          +     *
          +     *
                * 
                * PredictionResult represents the recommendation prediction results.
                * 
          * - * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult} + * Protobuf type {@code + * google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult) com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetItemMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableItemMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.class, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder.class); + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult + .class, + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult + .Builder.class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -788,19 +865,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult build() { - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult result = buildPartial(); + public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult + build() { + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -808,8 +889,11 @@ public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionR } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult buildPartial() { - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult result = new com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult(this); + public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult + buildPartial() { + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult result = + new com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult( + this); int from_bitField0_ = bitField0_; result.id_ = id_; result.itemMetadata_ = internalGetItemMetadata(); @@ -822,52 +906,61 @@ public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult)other); + if (other + instanceof + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult) { + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult other) { - if (other == com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult + .getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } - internalGetMutableItemMetadata().mergeFrom( - other.internalGetItemMetadata()); + internalGetMutableItemMetadata().mergeFrom(other.internalGetItemMetadata()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -883,11 +976,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult parsedMessage = null; + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -896,22 +992,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object id_ = ""; /** + * + * *
                  * ID of the recommended catalog item
                  * 
          * * string id = 1; + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -920,20 +1019,21 @@ public java.lang.String getId() { } } /** + * + * *
                  * ID of the recommended catalog item
                  * 
          * * string id = 1; + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -941,75 +1041,85 @@ public java.lang.String getId() { } } /** + * + * *
                  * ID of the recommended catalog item
                  * 
          * * string id = 1; + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** + * + * *
                  * ID of the recommended catalog item
                  * 
          * * string id = 1; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
                  * ID of the recommended catalog item
                  * 
          * * string id = 1; + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> itemMetadata_; private com.google.protobuf.MapField - internalGetItemMetadata() { + itemMetadata_; + + private com.google.protobuf.MapField + internalGetItemMetadata() { if (itemMetadata_ == null) { return com.google.protobuf.MapField.emptyMapField( ItemMetadataDefaultEntryHolder.defaultEntry); } return itemMetadata_; } + private com.google.protobuf.MapField - internalGetMutableItemMetadata() { - onChanged();; + internalGetMutableItemMetadata() { + onChanged(); + ; if (itemMetadata_ == null) { - itemMetadata_ = com.google.protobuf.MapField.newMapField( - ItemMetadataDefaultEntryHolder.defaultEntry); + itemMetadata_ = + com.google.protobuf.MapField.newMapField(ItemMetadataDefaultEntryHolder.defaultEntry); } if (!itemMetadata_.isMutable()) { itemMetadata_ = itemMetadata_.copy(); @@ -1021,6 +1131,8 @@ public int getItemMetadataCount() { return internalGetItemMetadata().getMap().size(); } /** + * + * *
                  * Additional item metadata / annotations.
                  * Possible values:
          @@ -1032,22 +1144,22 @@ public int getItemMetadataCount() {
                  *
                  * map<string, .google.protobuf.Value> item_metadata = 2;
                  */
          -
                 @java.lang.Override
          -      public boolean containsItemMetadata(
          -          java.lang.String key) {
          -        if (key == null) { throw new NullPointerException("map key"); }
          +      public boolean containsItemMetadata(java.lang.String key) {
          +        if (key == null) {
          +          throw new NullPointerException("map key");
          +        }
                   return internalGetItemMetadata().getMap().containsKey(key);
                 }
          -      /**
          -       * Use {@link #getItemMetadataMap()} instead.
          -       */
          +      /** Use {@link #getItemMetadataMap()} instead. */
                 @java.lang.Override
                 @java.lang.Deprecated
                 public java.util.Map getItemMetadata() {
                   return getItemMetadataMap();
                 }
                 /**
          +       *
          +       *
                  * 
                  * Additional item metadata / annotations.
                  * Possible values:
          @@ -1060,11 +1172,12 @@ public java.util.Map getItemMetadat
                  * map<string, .google.protobuf.Value> item_metadata = 2;
                  */
                 @java.lang.Override
          -
                 public java.util.Map getItemMetadataMap() {
                   return internalGetItemMetadata().getMap();
                 }
                 /**
          +       *
          +       *
                  * 
                  * Additional item metadata / annotations.
                  * Possible values:
          @@ -1077,16 +1190,18 @@ public java.util.Map getItemMetadat
                  * map<string, .google.protobuf.Value> item_metadata = 2;
                  */
                 @java.lang.Override
          -
                 public com.google.protobuf.Value getItemMetadataOrDefault(
          -          java.lang.String key,
          -          com.google.protobuf.Value defaultValue) {
          -        if (key == null) { throw new NullPointerException("map key"); }
          +          java.lang.String key, com.google.protobuf.Value defaultValue) {
          +        if (key == null) {
          +          throw new NullPointerException("map key");
          +        }
                   java.util.Map map =
                       internalGetItemMetadata().getMap();
                   return map.containsKey(key) ? map.get(key) : defaultValue;
                 }
                 /**
          +       *
          +       *
                  * 
                  * Additional item metadata / annotations.
                  * Possible values:
          @@ -1099,10 +1214,10 @@ public com.google.protobuf.Value getItemMetadataOrDefault(
                  * map<string, .google.protobuf.Value> item_metadata = 2;
                  */
                 @java.lang.Override
          -
          -      public com.google.protobuf.Value getItemMetadataOrThrow(
          -          java.lang.String key) {
          -        if (key == null) { throw new NullPointerException("map key"); }
          +      public com.google.protobuf.Value getItemMetadataOrThrow(java.lang.String key) {
          +        if (key == null) {
          +          throw new NullPointerException("map key");
          +        }
                   java.util.Map map =
                       internalGetItemMetadata().getMap();
                   if (!map.containsKey(key)) {
          @@ -1112,11 +1227,12 @@ public com.google.protobuf.Value getItemMetadataOrThrow(
                 }
           
                 public Builder clearItemMetadata() {
          -        internalGetMutableItemMetadata().getMutableMap()
          -            .clear();
          +        internalGetMutableItemMetadata().getMutableMap().clear();
                   return this;
                 }
                 /**
          +       *
          +       *
                  * 
                  * Additional item metadata / annotations.
                  * Possible values:
          @@ -1128,23 +1244,21 @@ public Builder clearItemMetadata() {
                  *
                  * map<string, .google.protobuf.Value> item_metadata = 2;
                  */
          -
          -      public Builder removeItemMetadata(
          -          java.lang.String key) {
          -        if (key == null) { throw new NullPointerException("map key"); }
          -        internalGetMutableItemMetadata().getMutableMap()
          -            .remove(key);
          +      public Builder removeItemMetadata(java.lang.String key) {
          +        if (key == null) {
          +          throw new NullPointerException("map key");
          +        }
          +        internalGetMutableItemMetadata().getMutableMap().remove(key);
                   return this;
                 }
          -      /**
          -       * Use alternate mutation accessors instead.
          -       */
          +      /** Use alternate mutation accessors instead. */
                 @java.lang.Deprecated
          -      public java.util.Map
          -      getMutableItemMetadata() {
          +      public java.util.Map getMutableItemMetadata() {
                   return internalGetMutableItemMetadata().getMutableMap();
                 }
                 /**
          +       *
          +       *
                  * 
                  * Additional item metadata / annotations.
                  * Possible values:
          @@ -1156,19 +1270,20 @@ public Builder removeItemMetadata(
                  *
                  * map<string, .google.protobuf.Value> item_metadata = 2;
                  */
          -      public Builder putItemMetadata(
          -          java.lang.String key,
          -          com.google.protobuf.Value value) {
          -        if (key == null) { throw new NullPointerException("map key"); }
          +      public Builder putItemMetadata(java.lang.String key, com.google.protobuf.Value value) {
          +        if (key == null) {
          +          throw new NullPointerException("map key");
          +        }
                   if (value == null) {
          -  throw new NullPointerException("map value");
          -}
          +          throw new NullPointerException("map value");
          +        }
           
          -        internalGetMutableItemMetadata().getMutableMap()
          -            .put(key, value);
          +        internalGetMutableItemMetadata().getMutableMap().put(key, value);
                   return this;
                 }
                 /**
          +       *
          +       *
                  * 
                  * Additional item metadata / annotations.
                  * Possible values:
          @@ -1180,13 +1295,12 @@ public Builder putItemMetadata(
                  *
                  * map<string, .google.protobuf.Value> item_metadata = 2;
                  */
          -
                 public Builder putAllItemMetadata(
                     java.util.Map values) {
          -        internalGetMutableItemMetadata().getMutableMap()
          -            .putAll(values);
          +        internalGetMutableItemMetadata().getMutableMap().putAll(values);
                   return this;
                 }
          +
                 @java.lang.Override
                 public final Builder setUnknownFields(
                     final com.google.protobuf.UnknownFieldSet unknownFields) {
          @@ -1199,30 +1313,34 @@ public final Builder mergeUnknownFields(
                   return super.mergeUnknownFields(unknownFields);
                 }
           
          -
                 // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult)
               }
           
               // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult)
          -    private static final com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult DEFAULT_INSTANCE;
          +    private static final com.google.cloud.recommendationengine.v1beta1.PredictResponse
          +            .PredictionResult
          +        DEFAULT_INSTANCE;
          +
               static {
          -      DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult();
          +      DEFAULT_INSTANCE =
          +          new com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult();
               }
           
          -    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult getDefaultInstance() {
          +    public static com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
          +        getDefaultInstance() {
                 return DEFAULT_INSTANCE;
               }
           
          -    private static final com.google.protobuf.Parser
          -        PARSER = new com.google.protobuf.AbstractParser() {
          -      @java.lang.Override
          -      public PredictionResult parsePartialFrom(
          -          com.google.protobuf.CodedInputStream input,
          -          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          -          throws com.google.protobuf.InvalidProtocolBufferException {
          -        return new PredictionResult(input, extensionRegistry);
          -      }
          -    };
          +    private static final com.google.protobuf.Parser PARSER =
          +        new com.google.protobuf.AbstractParser() {
          +          @java.lang.Override
          +          public PredictionResult parsePartialFrom(
          +              com.google.protobuf.CodedInputStream input,
          +              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +              throws com.google.protobuf.InvalidProtocolBufferException {
          +            return new PredictionResult(input, extensionRegistry);
          +          }
          +        };
           
               public static com.google.protobuf.Parser parser() {
                 return PARSER;
          @@ -1234,80 +1352,110 @@ public com.google.protobuf.Parser getParserForType() {
               }
           
               @java.lang.Override
          -    public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult getDefaultInstanceForType() {
          +    public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult
          +        getDefaultInstanceForType() {
                 return DEFAULT_INSTANCE;
               }
          -
             }
           
             public static final int RESULTS_FIELD_NUMBER = 1;
          -  private java.util.List results_;
          +  private java.util.List<
          +          com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult>
          +      results_;
             /**
          +   *
          +   *
              * 
              * A list of recommended items. The order represents the ranking (from the
              * most relevant item to the least).
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ @java.lang.Override - public java.util.List getResultsList() { + public java.util.List< + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult> + getResultsList() { return results_; } /** + * + * *
              * A list of recommended items. The order represents the ranking (from the
              * most relevant item to the least).
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.recommendationengine.v1beta1.PredictResponse + .PredictionResultOrBuilder> getResultsOrBuilderList() { return results_; } /** + * + * *
              * A list of recommended items. The order represents the ranking (from the
              * most relevant item to the least).
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ @java.lang.Override public int getResultsCount() { return results_.size(); } /** + * + * *
              * A list of recommended items. The order represents the ranking (from the
              * most relevant item to the least).
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult getResults(int index) { + public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult getResults( + int index) { return results_.get(index); } /** + * + * *
              * A list of recommended items. The order represents the ranking (from the
              * most relevant item to the least).
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder getResultsOrBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder + getResultsOrBuilder(int index) { return results_.get(index); } public static final int RECOMMENDATION_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object recommendationToken_; /** + * + * *
              * A unique recommendation token. This should be included in the user event
              * logs resulting from this recommendation, which enables accurate attribution
          @@ -1315,6 +1463,7 @@ public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionR
              * 
          * * string recommendation_token = 2; + * * @return The recommendationToken. */ @java.lang.Override @@ -1323,14 +1472,15 @@ public java.lang.String getRecommendationToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recommendationToken_ = s; return s; } } /** + * + * *
              * A unique recommendation token. This should be included in the user event
              * logs resulting from this recommendation, which enables accurate attribution
          @@ -1338,16 +1488,15 @@ public java.lang.String getRecommendationToken() {
              * 
          * * string recommendation_token = 2; + * * @return The bytes for recommendationToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getRecommendationTokenBytes() { + public com.google.protobuf.ByteString getRecommendationTokenBytes() { java.lang.Object ref = recommendationToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); recommendationToken_ = b; return b; } else { @@ -1358,34 +1507,42 @@ public java.lang.String getRecommendationToken() { public static final int ITEMS_MISSING_IN_CATALOG_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList itemsMissingInCatalog_; /** + * + * *
              * IDs of items in the request that were missing from the catalog.
              * 
          * * repeated string items_missing_in_catalog = 3; + * * @return A list containing the itemsMissingInCatalog. */ - public com.google.protobuf.ProtocolStringList - getItemsMissingInCatalogList() { + public com.google.protobuf.ProtocolStringList getItemsMissingInCatalogList() { return itemsMissingInCatalog_; } /** + * + * *
              * IDs of items in the request that were missing from the catalog.
              * 
          * * repeated string items_missing_in_catalog = 3; + * * @return The count of itemsMissingInCatalog. */ public int getItemsMissingInCatalogCount() { return itemsMissingInCatalog_.size(); } /** + * + * *
              * IDs of items in the request that were missing from the catalog.
              * 
          * * repeated string items_missing_in_catalog = 3; + * * @param index The index of the element to return. * @return The itemsMissingInCatalog at the given index. */ @@ -1393,27 +1550,32 @@ public java.lang.String getItemsMissingInCatalog(int index) { return itemsMissingInCatalog_.get(index); } /** + * + * *
              * IDs of items in the request that were missing from the catalog.
              * 
          * * repeated string items_missing_in_catalog = 3; + * * @param index The index of the value to return. * @return The bytes of the itemsMissingInCatalog at the given index. */ - public com.google.protobuf.ByteString - getItemsMissingInCatalogBytes(int index) { + public com.google.protobuf.ByteString getItemsMissingInCatalogBytes(int index) { return itemsMissingInCatalog_.getByteString(index); } public static final int DRY_RUN_FIELD_NUMBER = 4; private boolean dryRun_; /** + * + * *
              * True if the dryRun property was set in the request.
              * 
          * * bool dry_run = 4; + * * @return The dryRun. */ @java.lang.Override @@ -1422,24 +1584,26 @@ public boolean getDryRun() { } public static final int METADATA_FIELD_NUMBER = 5; + private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.protobuf.Value> defaultEntry = + static final com.google.protobuf.MapEntry + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> metadata_; + + private com.google.protobuf.MapField metadata_; + private com.google.protobuf.MapField - internalGetMetadata() { + internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } @@ -1448,28 +1612,30 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
              * Additional domain specific prediction response metadata.
              * 
          * * map<string, .google.protobuf.Value> metadata = 5; */ - @java.lang.Override - public boolean containsMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetMetadata().getMap().containsKey(key); } - /** - * Use {@link #getMetadataMap()} instead. - */ + /** Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** + * + * *
              * Additional domain specific prediction response metadata.
              * 
          @@ -1477,11 +1643,12 @@ public java.util.Map getMetadata() * map<string, .google.protobuf.Value> metadata = 5; */ @java.lang.Override - public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** + * + * *
              * Additional domain specific prediction response metadata.
              * 
          @@ -1489,16 +1656,17 @@ public java.util.Map getMetadataMap * map<string, .google.protobuf.Value> metadata = 5; */ @java.lang.Override - public com.google.protobuf.Value getMetadataOrDefault( - java.lang.String key, - com.google.protobuf.Value defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + java.lang.String key, com.google.protobuf.Value defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
              * Additional domain specific prediction response metadata.
              * 
          @@ -1506,12 +1674,11 @@ public com.google.protobuf.Value getMetadataOrDefault( * map<string, .google.protobuf.Value> metadata = 5; */ @java.lang.Override - - public com.google.protobuf.Value getMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + public com.google.protobuf.Value getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1521,12 +1688,15 @@ public com.google.protobuf.Value getMetadataOrThrow( public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 6; private volatile java.lang.Object nextPageToken_; /** + * + * *
              * If empty, the list is complete. If nonempty, the token to pass to the next
              * request's PredictRequest.page_token.
              * 
          * * string next_page_token = 6; + * * @return The nextPageToken. */ @java.lang.Override @@ -1535,30 +1705,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
              * If empty, the list is complete. If nonempty, the token to pass to the next
              * request's PredictRequest.page_token.
              * 
          * * string next_page_token = 6; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1567,6 +1737,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1578,8 +1749,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(1, results_.get(i)); } @@ -1587,17 +1757,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 2, recommendationToken_); } for (int i = 0; i < itemsMissingInCatalog_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, itemsMissingInCatalog_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, itemsMissingInCatalog_.getRaw(i)); } if (dryRun_ != false) { output.writeBool(4, dryRun_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMetadata(), - MetadataDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 5); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, nextPageToken_); } @@ -1611,8 +1778,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, results_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recommendationToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, recommendationToken_); @@ -1626,18 +1792,17 @@ public int getSerializedSize() { size += 1 * getItemsMissingInCatalogList().size(); } if (dryRun_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, dryRun_); - } - for (java.util.Map.Entry entry - : internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry - metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, metadata__); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, dryRun_); + } + for (java.util.Map.Entry entry : + internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry metadata__ = + MetadataDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, metadata__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, nextPageToken_); @@ -1650,25 +1815,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.PredictResponse)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.PredictResponse other = (com.google.cloud.recommendationengine.v1beta1.PredictResponse) obj; - - if (!getResultsList() - .equals(other.getResultsList())) return false; - if (!getRecommendationToken() - .equals(other.getRecommendationToken())) return false; - if (!getItemsMissingInCatalogList() - .equals(other.getItemsMissingInCatalogList())) return false; - if (getDryRun() - != other.getDryRun()) return false; - if (!internalGetMetadata().equals( - other.internalGetMetadata())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + com.google.cloud.recommendationengine.v1beta1.PredictResponse other = + (com.google.cloud.recommendationengine.v1beta1.PredictResponse) obj; + + if (!getResultsList().equals(other.getResultsList())) return false; + if (!getRecommendationToken().equals(other.getRecommendationToken())) return false; + if (!getItemsMissingInCatalogList().equals(other.getItemsMissingInCatalogList())) return false; + if (getDryRun() != other.getDryRun()) return false; + if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1691,8 +1851,7 @@ public int hashCode() { hash = (53 * hash) + getItemsMissingInCatalogList().hashCode(); } hash = (37 * hash) + DRY_RUN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDryRun()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDryRun()); if (!internalGetMetadata().getMap().isEmpty()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetMetadata().hashCode(); @@ -1705,139 +1864,147 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.PredictResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.PredictResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.PredictResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Response message for predict method.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PredictResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.PredictResponse) com.google.cloud.recommendationengine.v1beta1.PredictResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 5: return internalGetMutableMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PredictResponse.class, com.google.cloud.recommendationengine.v1beta1.PredictResponse.Builder.class); + com.google.cloud.recommendationengine.v1beta1.PredictResponse.class, + com.google.cloud.recommendationengine.v1beta1.PredictResponse.Builder.class); } // Construct using com.google.cloud.recommendationengine.v1beta1.PredictResponse.newBuilder() @@ -1845,17 +2012,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResultsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1878,13 +2045,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.PredictionServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictResponse getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.PredictResponse + getDefaultInstanceForType() { return com.google.cloud.recommendationengine.v1beta1.PredictResponse.getDefaultInstance(); } @@ -1899,7 +2067,8 @@ public com.google.cloud.recommendationengine.v1beta1.PredictResponse build() { @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.PredictResponse buildPartial() { - com.google.cloud.recommendationengine.v1beta1.PredictResponse result = new com.google.cloud.recommendationengine.v1beta1.PredictResponse(this); + com.google.cloud.recommendationengine.v1beta1.PredictResponse result = + new com.google.cloud.recommendationengine.v1beta1.PredictResponse(this); int from_bitField0_ = bitField0_; if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1928,38 +2097,39 @@ public com.google.cloud.recommendationengine.v1beta1.PredictResponse buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.PredictResponse) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PredictResponse)other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PredictResponse) other); } else { super.mergeFrom(other); return this; @@ -1967,7 +2137,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PredictResponse other) { - if (other == com.google.cloud.recommendationengine.v1beta1.PredictResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.recommendationengine.v1beta1.PredictResponse.getDefaultInstance()) + return this; if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { @@ -1986,9 +2158,10 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PredictRe resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); - resultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResultsFieldBuilder() : null; + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResultsFieldBuilder() + : null; } else { resultsBuilder_.addAllMessages(other.results_); } @@ -2011,8 +2184,7 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PredictRe if (other.getDryRun() != false) { setDryRun(other.getDryRun()); } - internalGetMutableMetadata().mergeFrom( - other.internalGetMetadata()); + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; onChanged(); @@ -2036,7 +2208,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.PredictResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.PredictResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2045,29 +2219,44 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List results_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult> + results_ = java.util.Collections.emptyList(); + private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - results_ = new java.util.ArrayList(results_); + results_ = + new java.util.ArrayList< + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult>( + results_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder> resultsBuilder_; + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult, + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder, + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder> + resultsBuilder_; /** + * + * *
                * A list of recommended items. The order represents the ranking (from the
                * most relevant item to the least).
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ - public java.util.List getResultsList() { + public java.util.List< + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult> + getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { @@ -2075,12 +2264,16 @@ public java.util.List * A list of recommended items. The order represents the ranking (from the * most relevant item to the least). *
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ public int getResultsCount() { if (resultsBuilder_ == null) { @@ -2090,14 +2283,19 @@ public int getResultsCount() { } } /** + * + * *
                * A list of recommended items. The order represents the ranking (from the
                * most relevant item to the least).
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ - public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult getResults(int index) { + public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult + getResults(int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { @@ -2105,15 +2303,20 @@ public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionR } } /** + * + * *
                * A list of recommended items. The order represents the ranking (from the
                * most relevant item to the least).
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ public Builder setResults( - int index, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult value) { + int index, + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2127,15 +2330,21 @@ public Builder setResults( return this; } /** + * + * *
                * A list of recommended items. The order represents the ranking (from the
                * most relevant item to the least).
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ public Builder setResults( - int index, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder builderForValue) { + int index, + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder + builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); @@ -2146,14 +2355,19 @@ public Builder setResults( return this; } /** + * + * *
                * A list of recommended items. The order represents the ranking (from the
                * most relevant item to the least).
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ - public Builder addResults(com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult value) { + public Builder addResults( + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2167,15 +2381,20 @@ public Builder addResults(com.google.cloud.recommendationengine.v1beta1.PredictR return this; } /** + * + * *
                * A list of recommended items. The order represents the ranking (from the
                * most relevant item to the least).
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ public Builder addResults( - int index, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult value) { + int index, + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2189,15 +2408,20 @@ public Builder addResults( return this; } /** + * + * *
                * A list of recommended items. The order represents the ranking (from the
                * most relevant item to the least).
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ public Builder addResults( - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder builderForValue) { + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder + builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(builderForValue.build()); @@ -2208,15 +2432,21 @@ public Builder addResults( return this; } /** + * + * *
                * A list of recommended items. The order represents the ranking (from the
                * most relevant item to the least).
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ public Builder addResults( - int index, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder builderForValue) { + int index, + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder + builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); @@ -2227,19 +2457,25 @@ public Builder addResults( return this; } /** + * + * *
                * A list of recommended items. The order represents the ranking (from the
                * most relevant item to the least).
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ public Builder addAllResults( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult> + values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, results_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); @@ -2247,12 +2483,16 @@ public Builder addAllResults( return this; } /** + * + * *
                * A list of recommended items. The order represents the ranking (from the
                * most relevant item to the least).
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ public Builder clearResults() { if (resultsBuilder_ == null) { @@ -2265,12 +2505,16 @@ public Builder clearResults() { return this; } /** + * + * *
                * A list of recommended items. The order represents the ranking (from the
                * most relevant item to the least).
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ public Builder removeResults(int index) { if (resultsBuilder_ == null) { @@ -2283,42 +2527,58 @@ public Builder removeResults(int index) { return this; } /** + * + * *
                * A list of recommended items. The order represents the ranking (from the
                * most relevant item to the least).
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ - public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder getResultsBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder + getResultsBuilder(int index) { return getResultsFieldBuilder().getBuilder(index); } /** + * + * *
                * A list of recommended items. The order represents the ranking (from the
                * most relevant item to the least).
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ - public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder getResultsOrBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder + getResultsOrBuilder(int index) { if (resultsBuilder_ == null) { - return results_.get(index); } else { + return results_.get(index); + } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * A list of recommended items. The order represents the ranking (from the
                * most relevant item to the least).
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; - */ - public java.util.List - getResultsOrBuilderList() { + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.recommendationengine.v1beta1.PredictResponse + .PredictionResultOrBuilder> + getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { @@ -2326,52 +2586,76 @@ public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionR } } /** + * + * *
                * A list of recommended items. The order represents the ranking (from the
                * most relevant item to the least).
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ - public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder addResultsBuilder() { - return getResultsFieldBuilder().addBuilder( - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder + addResultsBuilder() { + return getResultsFieldBuilder() + .addBuilder( + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult + .getDefaultInstance()); } /** + * + * *
                * A list of recommended items. The order represents the ranking (from the
                * most relevant item to the least).
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ - public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder addResultsBuilder( - int index) { - return getResultsFieldBuilder().addBuilder( - index, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder + addResultsBuilder(int index) { + return getResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult + .getDefaultInstance()); } /** + * + * *
                * A list of recommended items. The order represents the ranking (from the
                * most relevant item to the least).
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ - public java.util.List - getResultsBuilderList() { + public java.util.List< + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder> + getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder> + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult, + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder, + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { - resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult.Builder, com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder>( - results_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + resultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult, + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult + .Builder, + com.google.cloud.recommendationengine.v1beta1.PredictResponse + .PredictionResultOrBuilder>( + results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); results_ = null; } return resultsBuilder_; @@ -2379,6 +2663,8 @@ public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionR private java.lang.Object recommendationToken_ = ""; /** + * + * *
                * A unique recommendation token. This should be included in the user event
                * logs resulting from this recommendation, which enables accurate attribution
          @@ -2386,13 +2672,13 @@ public com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionR
                * 
          * * string recommendation_token = 2; + * * @return The recommendationToken. */ public java.lang.String getRecommendationToken() { java.lang.Object ref = recommendationToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recommendationToken_ = s; return s; @@ -2401,6 +2687,8 @@ public java.lang.String getRecommendationToken() { } } /** + * + * *
                * A unique recommendation token. This should be included in the user event
                * logs resulting from this recommendation, which enables accurate attribution
          @@ -2408,15 +2696,14 @@ public java.lang.String getRecommendationToken() {
                * 
          * * string recommendation_token = 2; + * * @return The bytes for recommendationToken. */ - public com.google.protobuf.ByteString - getRecommendationTokenBytes() { + public com.google.protobuf.ByteString getRecommendationTokenBytes() { java.lang.Object ref = recommendationToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); recommendationToken_ = b; return b; } else { @@ -2424,6 +2711,8 @@ public java.lang.String getRecommendationToken() { } } /** + * + * *
                * A unique recommendation token. This should be included in the user event
                * logs resulting from this recommendation, which enables accurate attribution
          @@ -2431,20 +2720,22 @@ public java.lang.String getRecommendationToken() {
                * 
          * * string recommendation_token = 2; + * * @param value The recommendationToken to set. * @return This builder for chaining. */ - public Builder setRecommendationToken( - java.lang.String value) { + public Builder setRecommendationToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + recommendationToken_ = value; onChanged(); return this; } /** + * + * *
                * A unique recommendation token. This should be included in the user event
                * logs resulting from this recommendation, which enables accurate attribution
          @@ -2452,15 +2743,18 @@ public Builder setRecommendationToken(
                * 
          * * string recommendation_token = 2; + * * @return This builder for chaining. */ public Builder clearRecommendationToken() { - + recommendationToken_ = getDefaultInstance().getRecommendationToken(); onChanged(); return this; } /** + * + * *
                * A unique recommendation token. This should be included in the user event
                * logs resulting from this recommendation, which enables accurate attribution
          @@ -2468,57 +2762,68 @@ public Builder clearRecommendationToken() {
                * 
          * * string recommendation_token = 2; + * * @param value The bytes for recommendationToken to set. * @return This builder for chaining. */ - public Builder setRecommendationTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setRecommendationTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + recommendationToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList itemsMissingInCatalog_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList itemsMissingInCatalog_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureItemsMissingInCatalogIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - itemsMissingInCatalog_ = new com.google.protobuf.LazyStringArrayList(itemsMissingInCatalog_); + itemsMissingInCatalog_ = + new com.google.protobuf.LazyStringArrayList(itemsMissingInCatalog_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
                * IDs of items in the request that were missing from the catalog.
                * 
          * * repeated string items_missing_in_catalog = 3; + * * @return A list containing the itemsMissingInCatalog. */ - public com.google.protobuf.ProtocolStringList - getItemsMissingInCatalogList() { + public com.google.protobuf.ProtocolStringList getItemsMissingInCatalogList() { return itemsMissingInCatalog_.getUnmodifiableView(); } /** + * + * *
                * IDs of items in the request that were missing from the catalog.
                * 
          * * repeated string items_missing_in_catalog = 3; + * * @return The count of itemsMissingInCatalog. */ public int getItemsMissingInCatalogCount() { return itemsMissingInCatalog_.size(); } /** + * + * *
                * IDs of items in the request that were missing from the catalog.
                * 
          * * repeated string items_missing_in_catalog = 3; + * * @param index The index of the element to return. * @return The itemsMissingInCatalog at the given index. */ @@ -2526,80 +2831,90 @@ public java.lang.String getItemsMissingInCatalog(int index) { return itemsMissingInCatalog_.get(index); } /** + * + * *
                * IDs of items in the request that were missing from the catalog.
                * 
          * * repeated string items_missing_in_catalog = 3; + * * @param index The index of the value to return. * @return The bytes of the itemsMissingInCatalog at the given index. */ - public com.google.protobuf.ByteString - getItemsMissingInCatalogBytes(int index) { + public com.google.protobuf.ByteString getItemsMissingInCatalogBytes(int index) { return itemsMissingInCatalog_.getByteString(index); } /** + * + * *
                * IDs of items in the request that were missing from the catalog.
                * 
          * * repeated string items_missing_in_catalog = 3; + * * @param index The index to set the value at. * @param value The itemsMissingInCatalog to set. * @return This builder for chaining. */ - public Builder setItemsMissingInCatalog( - int index, java.lang.String value) { + public Builder setItemsMissingInCatalog(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureItemsMissingInCatalogIsMutable(); + throw new NullPointerException(); + } + ensureItemsMissingInCatalogIsMutable(); itemsMissingInCatalog_.set(index, value); onChanged(); return this; } /** + * + * *
                * IDs of items in the request that were missing from the catalog.
                * 
          * * repeated string items_missing_in_catalog = 3; + * * @param value The itemsMissingInCatalog to add. * @return This builder for chaining. */ - public Builder addItemsMissingInCatalog( - java.lang.String value) { + public Builder addItemsMissingInCatalog(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureItemsMissingInCatalogIsMutable(); + throw new NullPointerException(); + } + ensureItemsMissingInCatalogIsMutable(); itemsMissingInCatalog_.add(value); onChanged(); return this; } /** + * + * *
                * IDs of items in the request that were missing from the catalog.
                * 
          * * repeated string items_missing_in_catalog = 3; + * * @param values The itemsMissingInCatalog to add. * @return This builder for chaining. */ - public Builder addAllItemsMissingInCatalog( - java.lang.Iterable values) { + public Builder addAllItemsMissingInCatalog(java.lang.Iterable values) { ensureItemsMissingInCatalogIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, itemsMissingInCatalog_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, itemsMissingInCatalog_); onChanged(); return this; } /** + * + * *
                * IDs of items in the request that were missing from the catalog.
                * 
          * * repeated string items_missing_in_catalog = 3; + * * @return This builder for chaining. */ public Builder clearItemsMissingInCatalog() { @@ -2609,33 +2924,38 @@ public Builder clearItemsMissingInCatalog() { return this; } /** + * + * *
                * IDs of items in the request that were missing from the catalog.
                * 
          * * repeated string items_missing_in_catalog = 3; + * * @param value The bytes of the itemsMissingInCatalog to add. * @return This builder for chaining. */ - public Builder addItemsMissingInCatalogBytes( - com.google.protobuf.ByteString value) { + public Builder addItemsMissingInCatalogBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureItemsMissingInCatalogIsMutable(); itemsMissingInCatalog_.add(value); onChanged(); return this; } - private boolean dryRun_ ; + private boolean dryRun_; /** + * + * *
                * True if the dryRun property was set in the request.
                * 
          * * bool dry_run = 4; + * * @return The dryRun. */ @java.lang.Override @@ -2643,51 +2963,58 @@ public boolean getDryRun() { return dryRun_; } /** + * + * *
                * True if the dryRun property was set in the request.
                * 
          * * bool dry_run = 4; + * * @param value The dryRun to set. * @return This builder for chaining. */ public Builder setDryRun(boolean value) { - + dryRun_ = value; onChanged(); return this; } /** + * + * *
                * True if the dryRun property was set in the request.
                * 
          * * bool dry_run = 4; + * * @return This builder for chaining. */ public Builder clearDryRun() { - + dryRun_ = false; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, com.google.protobuf.Value> metadata_; + private com.google.protobuf.MapField metadata_; + private com.google.protobuf.MapField - internalGetMetadata() { + internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } + private com.google.protobuf.MapField - internalGetMutableMetadata() { - onChanged();; + internalGetMutableMetadata() { + onChanged(); + ; if (metadata_ == null) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); + metadata_ = + com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); @@ -2699,28 +3026,30 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
                * Additional domain specific prediction response metadata.
                * 
          * * map<string, .google.protobuf.Value> metadata = 5; */ - @java.lang.Override - public boolean containsMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetMetadata().getMap().containsKey(key); } - /** - * Use {@link #getMetadataMap()} instead. - */ + /** Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** + * + * *
                * Additional domain specific prediction response metadata.
                * 
          @@ -2728,11 +3057,12 @@ public java.util.Map getMetadata() * map<string, .google.protobuf.Value> metadata = 5; */ @java.lang.Override - public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** + * + * *
                * Additional domain specific prediction response metadata.
                * 
          @@ -2740,16 +3070,18 @@ public java.util.Map getMetadataMap * map<string, .google.protobuf.Value> metadata = 5; */ @java.lang.Override - public com.google.protobuf.Value getMetadataOrDefault( - java.lang.String key, - com.google.protobuf.Value defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.protobuf.Value defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                * Additional domain specific prediction response metadata.
                * 
          @@ -2757,10 +3089,10 @@ public com.google.protobuf.Value getMetadataOrDefault( * map<string, .google.protobuf.Value> metadata = 5; */ @java.lang.Override - - public com.google.protobuf.Value getMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.protobuf.Value getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { @@ -2770,82 +3102,82 @@ public com.google.protobuf.Value getMetadataOrThrow( } public Builder clearMetadata() { - internalGetMutableMetadata().getMutableMap() - .clear(); + internalGetMutableMetadata().getMutableMap().clear(); return this; } /** + * + * *
                * Additional domain specific prediction response metadata.
                * 
          * * map<string, .google.protobuf.Value> metadata = 5; */ - - public Builder removeMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableMetadata().getMutableMap() - .remove(key); + public Builder removeMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableMetadata().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableMetadata() { + public java.util.Map getMutableMetadata() { return internalGetMutableMetadata().getMutableMap(); } /** + * + * *
                * Additional domain specific prediction response metadata.
                * 
          * * map<string, .google.protobuf.Value> metadata = 5; */ - public Builder putMetadata( - java.lang.String key, - com.google.protobuf.Value value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putMetadata(java.lang.String key, com.google.protobuf.Value value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableMetadata().getMutableMap() - .put(key, value); + internalGetMutableMetadata().getMutableMap().put(key, value); return this; } /** + * + * *
                * Additional domain specific prediction response metadata.
                * 
          * * map<string, .google.protobuf.Value> metadata = 5; */ - public Builder putAllMetadata( java.util.Map values) { - internalGetMutableMetadata().getMutableMap() - .putAll(values); + internalGetMutableMetadata().getMutableMap().putAll(values); return this; } private java.lang.Object nextPageToken_ = ""; /** + * + * *
                * If empty, the list is complete. If nonempty, the token to pass to the next
                * request's PredictRequest.page_token.
                * 
          * * string next_page_token = 6; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -2854,21 +3186,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
                * If empty, the list is complete. If nonempty, the token to pass to the next
                * request's PredictRequest.page_token.
                * 
          * * string next_page_token = 6; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -2876,64 +3209,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
                * If empty, the list is complete. If nonempty, the token to pass to the next
                * request's PredictRequest.page_token.
                * 
          * * string next_page_token = 6; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
                * If empty, the list is complete. If nonempty, the token to pass to the next
                * request's PredictRequest.page_token.
                * 
          * * string next_page_token = 6; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
                * If empty, the list is complete. If nonempty, the token to pass to the next
                * request's PredictRequest.page_token.
                * 
          * * string next_page_token = 6; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2943,12 +3283,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.PredictResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.PredictResponse) - private static final com.google.cloud.recommendationengine.v1beta1.PredictResponse DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.PredictResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.PredictResponse(); } @@ -2957,16 +3298,16 @@ public static com.google.cloud.recommendationengine.v1beta1.PredictResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredictResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PredictResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PredictResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PredictResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2981,6 +3322,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.recommendationengine.v1beta1.PredictResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponseOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponseOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponseOrBuilder.java index d569eb7b..6ddb53b2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponseOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictResponseOrBuilder.java @@ -1,62 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/prediction_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface PredictResponseOrBuilder extends +public interface PredictResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.PredictResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * A list of recommended items. The order represents the ranking (from the
              * most relevant item to the least).
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ - java.util.List + java.util.List getResultsList(); /** + * + * *
              * A list of recommended items. The order represents the ranking (from the
              * most relevant item to the least).
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult getResults(int index); + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult getResults( + int index); /** + * + * *
              * A list of recommended items. The order represents the ranking (from the
              * most relevant item to the least).
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ int getResultsCount(); /** + * + * *
              * A list of recommended items. The order represents the ranking (from the
              * most relevant item to the least).
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.recommendationengine.v1beta1.PredictResponse + .PredictionResultOrBuilder> getResultsOrBuilderList(); /** + * + * *
              * A list of recommended items. The order represents the ranking (from the
              * most relevant item to the least).
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * + * repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1; + * */ - com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder getResultsOrBuilder( - int index); + com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder + getResultsOrBuilder(int index); /** + * + * *
              * A unique recommendation token. This should be included in the user event
              * logs resulting from this recommendation, which enables accurate attribution
          @@ -64,10 +106,13 @@ com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOr
              * 
          * * string recommendation_token = 2; + * * @return The recommendationToken. */ java.lang.String getRecommendationToken(); /** + * + * *
              * A unique recommendation token. This should be included in the user event
              * logs resulting from this recommendation, which enables accurate attribution
          @@ -75,63 +120,78 @@ com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOr
              * 
          * * string recommendation_token = 2; + * * @return The bytes for recommendationToken. */ - com.google.protobuf.ByteString - getRecommendationTokenBytes(); + com.google.protobuf.ByteString getRecommendationTokenBytes(); /** + * + * *
              * IDs of items in the request that were missing from the catalog.
              * 
          * * repeated string items_missing_in_catalog = 3; + * * @return A list containing the itemsMissingInCatalog. */ - java.util.List - getItemsMissingInCatalogList(); + java.util.List getItemsMissingInCatalogList(); /** + * + * *
              * IDs of items in the request that were missing from the catalog.
              * 
          * * repeated string items_missing_in_catalog = 3; + * * @return The count of itemsMissingInCatalog. */ int getItemsMissingInCatalogCount(); /** + * + * *
              * IDs of items in the request that were missing from the catalog.
              * 
          * * repeated string items_missing_in_catalog = 3; + * * @param index The index of the element to return. * @return The itemsMissingInCatalog at the given index. */ java.lang.String getItemsMissingInCatalog(int index); /** + * + * *
              * IDs of items in the request that were missing from the catalog.
              * 
          * * repeated string items_missing_in_catalog = 3; + * * @param index The index of the value to return. * @return The bytes of the itemsMissingInCatalog at the given index. */ - com.google.protobuf.ByteString - getItemsMissingInCatalogBytes(int index); + com.google.protobuf.ByteString getItemsMissingInCatalogBytes(int index); /** + * + * *
              * True if the dryRun property was set in the request.
              * 
          * * bool dry_run = 4; + * * @return The dryRun. */ boolean getDryRun(); /** + * + * *
              * Additional domain specific prediction response metadata.
              * 
          @@ -140,30 +200,31 @@ com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOr */ int getMetadataCount(); /** + * + * *
              * Additional domain specific prediction response metadata.
              * 
          * * map<string, .google.protobuf.Value> metadata = 5; */ - boolean containsMetadata( - java.lang.String key); - /** - * Use {@link #getMetadataMap()} instead. - */ + boolean containsMetadata(java.lang.String key); + /** Use {@link #getMetadataMap()} instead. */ @java.lang.Deprecated - java.util.Map - getMetadata(); + java.util.Map getMetadata(); /** + * + * *
              * Additional domain specific prediction response metadata.
              * 
          * * map<string, .google.protobuf.Value> metadata = 5; */ - java.util.Map - getMetadataMap(); + java.util.Map getMetadataMap(); /** + * + * *
              * Additional domain specific prediction response metadata.
              * 
          @@ -172,40 +233,45 @@ boolean containsMetadata( */ /* nullable */ -com.google.protobuf.Value getMetadataOrDefault( + com.google.protobuf.Value getMetadataOrDefault( java.lang.String key, /* nullable */ -com.google.protobuf.Value defaultValue); + com.google.protobuf.Value defaultValue); /** + * + * *
              * Additional domain specific prediction response metadata.
              * 
          * * map<string, .google.protobuf.Value> metadata = 5; */ - - com.google.protobuf.Value getMetadataOrThrow( - java.lang.String key); + com.google.protobuf.Value getMetadataOrThrow(java.lang.String key); /** + * + * *
              * If empty, the list is complete. If nonempty, the token to pass to the next
              * request's PredictRequest.page_token.
              * 
          * * string next_page_token = 6; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
              * If empty, the list is complete. If nonempty, the token to pass to the next
              * request's PredictRequest.page_token.
              * 
          * * string next_page_token = 6; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistration.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistration.java similarity index 57% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistration.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistration.java index 4cb32000..675e00e7 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistration.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistration.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Registered Api Key.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration} */ -public final class PredictionApiKeyRegistration extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PredictionApiKeyRegistration extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) PredictionApiKeyRegistrationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PredictionApiKeyRegistration.newBuilder() to construct. private PredictionApiKeyRegistration(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PredictionApiKeyRegistration() { apiKey_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PredictionApiKeyRegistration(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PredictionApiKeyRegistration( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private PredictionApiKeyRegistration( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - apiKey_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + apiKey_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,40 @@ private PredictionApiKeyRegistration( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.class, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder.class); + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.class, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder + .class); } public static final int API_KEY_FIELD_NUMBER = 1; private volatile java.lang.Object apiKey_; /** + * + * *
              * The API key.
              * 
          * * string api_key = 1; + * * @return The apiKey. */ @java.lang.Override @@ -109,29 +133,29 @@ public java.lang.String getApiKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiKey_ = s; return s; } } /** + * + * *
              * The API key.
              * 
          * * string api_key = 1; + * * @return The bytes for apiKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiKeyBytes() { + public com.google.protobuf.ByteString getApiKeyBytes() { java.lang.Object ref = apiKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiKey_ = b; return b; } else { @@ -140,6 +164,7 @@ public java.lang.String getApiKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +176,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiKey_); } @@ -176,15 +200,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration)) { + if (!(obj + instanceof com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration other = (com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) obj; + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration other = + (com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) obj; - if (!getApiKey() - .equals(other.getApiKey())) return false; + if (!getApiKey().equals(other.getApiKey())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,135 +228,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Registered Api Key.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.class, com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder.class); + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.class, + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.Builder + .class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,19 +383,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService.internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApikeyRegistryService + .internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration build() { - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration result = buildPartial(); + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -361,8 +406,10 @@ public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistratio } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration buildPartial() { - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration result = new com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration(this); + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + buildPartial() { + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration result = + new com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration(this); result.apiKey_ = apiKey_; onBuilt(); return result; @@ -372,46 +419,52 @@ public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistratio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration)other); + if (other + instanceof com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) { + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration other) { - if (other == com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + .getDefaultInstance()) return this; if (!other.getApiKey().isEmpty()) { apiKey_ = other.apiKey_; onChanged(); @@ -431,11 +484,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parsedMessage = null; + com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +503,20 @@ public Builder mergeFrom( private java.lang.Object apiKey_ = ""; /** + * + * *
                * The API key.
                * 
          * * string api_key = 1; + * * @return The apiKey. */ public java.lang.String getApiKey() { java.lang.Object ref = apiKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiKey_ = s; return s; @@ -467,20 +525,21 @@ public java.lang.String getApiKey() { } } /** + * + * *
                * The API key.
                * 
          * * string api_key = 1; + * * @return The bytes for apiKey. */ - public com.google.protobuf.ByteString - getApiKeyBytes() { + public com.google.protobuf.ByteString getApiKeyBytes() { java.lang.Object ref = apiKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiKey_ = b; return b; } else { @@ -488,61 +547,68 @@ public java.lang.String getApiKey() { } } /** + * + * *
                * The API key.
                * 
          * * string api_key = 1; + * * @param value The apiKey to set. * @return This builder for chaining. */ - public Builder setApiKey( - java.lang.String value) { + public Builder setApiKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiKey_ = value; onChanged(); return this; } /** + * + * *
                * The API key.
                * 
          * * string api_key = 1; + * * @return This builder for chaining. */ public Builder clearApiKey() { - + apiKey_ = getDefaultInstance().getApiKey(); onChanged(); return this; } /** + * + * *
                * The API key.
                * 
          * * string api_key = 1; + * * @param value The bytes for apiKey to set. * @return This builder for chaining. */ - public Builder setApiKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setApiKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiKey_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,30 +618,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) - private static final com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration(); + DEFAULT_INSTANCE = + new com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration(); } - public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PredictionApiKeyRegistration parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PredictionApiKeyRegistration(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PredictionApiKeyRegistration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PredictionApiKeyRegistration(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -587,9 +656,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationName.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationName.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationName.java diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationOrBuilder.java new file mode 100644 index 00000000..b79e9622 --- /dev/null +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrationOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public interface PredictionApiKeyRegistrationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The API key.
          +   * 
          + * + * string api_key = 1; + * + * @return The apiKey. + */ + java.lang.String getApiKey(); + /** + * + * + *
          +   * The API key.
          +   * 
          + * + * string api_key = 1; + * + * @return The bytes for apiKey. + */ + com.google.protobuf.ByteString getApiKeyBytes(); +} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApikeyRegistryService.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApikeyRegistryService.java new file mode 100644 index 00000000..d2d764a4 --- /dev/null +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApikeyRegistryService.java @@ -0,0 +1,193 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public final class PredictionApikeyRegistryService { + private PredictionApikeyRegistryService() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nRgoogle/cloud/recommendationengine/v1be" + + "ta1/prediction_apikey_registry_service.p" + + "roto\022)google.cloud.recommendationengine." + + "v1beta1\032\034google/api/annotations.proto\032\037g" + + "oogle/api/field_behavior.proto\032\031google/a" + + "pi/resource.proto\032\033google/protobuf/empty" + + ".proto\032\027google/api/client.proto\032Ngoogle/" + + "cloud/recommendationengine/v1beta1/recom" + + "mendationengine_resources.proto\"/\n\034Predi" + + "ctionApiKeyRegistration\022\017\n\007api_key\030\001 \001(\t" + + "\"\352\001\n)CreatePredictionApiKeyRegistrationR" + + "equest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.recommen" + + "dationengine.googleapis.com/EventStore\022u" + + "\n\037prediction_api_key_registration\030\002 \001(\0132" + + "G.google.cloud.recommendationengine.v1be" + + "ta1.PredictionApiKeyRegistrationB\003\340A\002\"\243\001" + + "\n(ListPredictionApiKeyRegistrationsReque" + + "st\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.recommendati" + + "onengine.googleapis.com/EventStore\022\026\n\tpa" + + "ge_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003" + + "\340A\001\"\267\001\n)ListPredictionApiKeyRegistration" + + "sResponse\022q\n prediction_api_key_registra" + + "tions\030\001 \003(\0132G.google.cloud.recommendatio" + + "nengine.v1beta1.PredictionApiKeyRegistra" + + "tion\022\027\n\017next_page_token\030\002 \001(\t\"\203\001\n)Delete" + + "PredictionApiKeyRegistrationRequest\022V\n\004n" + + "ame\030\001 \001(\tBH\340A\002\372AB\n@recommendationengine." + + "googleapis.com/PredictionApiKeyRegistrat" + + "ion2\227\010\n\030PredictionApiKeyRegistry\022\331\002\n\"Cre" + + "atePredictionApiKeyRegistration\022T.google" + + ".cloud.recommendationengine.v1beta1.Crea" + + "tePredictionApiKeyRegistrationRequest\032G." + + "google.cloud.recommendationengine.v1beta" + + "1.PredictionApiKeyRegistration\"\223\001\202\323\344\223\002d\"" + + "_/v1beta1/{parent=projects/*/locations/*" + + "/catalogs/*/eventStores/*}/predictionApi" + + "KeyRegistrations:\001*\332A&parent,prediction_" + + "api_key_registration\022\300\002\n!ListPredictionA" + + "piKeyRegistrations\022S.google.cloud.recomm" + + "endationengine.v1beta1.ListPredictionApi" + + "KeyRegistrationsRequest\032T.google.cloud.r" + + "ecommendationengine.v1beta1.ListPredicti" + + "onApiKeyRegistrationsResponse\"p\202\323\344\223\002a\022_/" + + "v1beta1/{parent=projects/*/locations/*/c" + + "atalogs/*/eventStores/*}/predictionApiKe" + + "yRegistrations\332A\006parent\022\202\002\n\"DeletePredic" + + "tionApiKeyRegistration\022T.google.cloud.re" + + "commendationengine.v1beta1.DeletePredict" + + "ionApiKeyRegistrationRequest\032\026.google.pr" + + "otobuf.Empty\"n\202\323\344\223\002a*_/v1beta1/{name=pro" + + "jects/*/locations/*/catalogs/*/eventStor" + + "es/*/predictionApiKeyRegistrations/*}\332A\004" + + "name\032W\312A#recommendationengine.googleapis" + + ".com\322A.https://www.googleapis.com/auth/c" + + "loud-platformB\237\002\n-com.google.cloud.recom" + + "mendationengine.v1beta1P\001Z]google.golang" + + ".org/genproto/googleapis/cloud/recommend" + + "ationengine/v1beta1;recommendationengine" + + "\242\002\005RECAI\252\002)Google.Cloud.RecommendationEn" + + "gine.V1Beta1\312\002)Google\\Cloud\\Recommendati" + + "onEngine\\V1beta1\352\002,Google::Cloud::Recomm" + + "endationEngine::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources + .getDescriptor(), + }); + internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PredictionApiKeyRegistration_descriptor, + new java.lang.String[] { + "ApiKey", + }); + internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_CreatePredictionApiKeyRegistrationRequest_descriptor, + new java.lang.String[] { + "Parent", "PredictionApiKeyRegistration", + }); + internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ListPredictionApiKeyRegistrationsResponse_descriptor, + new java.lang.String[] { + "PredictionApiKeyRegistrations", "NextPageToken", + }); + internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_DeletePredictionApiKeyRegistrationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.RecommendationengineResources.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceOuterClass.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceOuterClass.java new file mode 100644 index 00000000..2f9874fd --- /dev/null +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionServiceOuterClass.java @@ -0,0 +1,223 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/prediction_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public final class PredictionServiceOuterClass { + private PredictionServiceOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nBgoogle/cloud/recommendationengine/v1be" + + "ta1/prediction_service.proto\022)google.clo" + + "ud.recommendationengine.v1beta1\032\034google/" + + "api/annotations.proto\032\037google/api/field_" + + "behavior.proto\032\031google/api/resource.prot" + + "o\032:google/cloud/recommendationengine/v1b" + + "eta1/user_event.proto\032\034google/protobuf/s" + + "truct.proto\032\027google/api/client.proto\"\256\004\n" + + "\016PredictRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-r" + + "ecommendationengine.googleapis.com/Place" + + "ment\022M\n\nuser_event\030\002 \001(\01324.google.cloud." + + "recommendationengine.v1beta1.UserEventB\003" + + "\340A\002\022\026\n\tpage_size\030\007 \001(\005B\003\340A\001\022\027\n\npage_toke" + + "n\030\010 \001(\tB\003\340A\001\022\023\n\006filter\030\003 \001(\tB\003\340A\001\022\024\n\007dry" + + "_run\030\004 \001(\010B\003\340A\001\022Z\n\006params\030\006 \003(\0132E.google" + + ".cloud.recommendationengine.v1beta1.Pred" + + "ictRequest.ParamsEntryB\003\340A\001\022Z\n\006labels\030\t " + + "\003(\0132E.google.cloud.recommendationengine." + + "v1beta1.PredictRequest.LabelsEntryB\003\340A\001\032" + + "E\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001" + + "(\0132\026.google.protobuf.Value:\0028\001\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\342\004" + + "\n\017PredictResponse\022\\\n\007results\030\001 \003(\0132K.goo" + + "gle.cloud.recommendationengine.v1beta1.P" + + "redictResponse.PredictionResult\022\034\n\024recom" + + "mendation_token\030\002 \001(\t\022 \n\030items_missing_i" + + "n_catalog\030\003 \003(\t\022\017\n\007dry_run\030\004 \001(\010\022Z\n\010meta" + + "data\030\005 \003(\0132H.google.cloud.recommendation" + + "engine.v1beta1.PredictResponse.MetadataE" + + "ntry\022\027\n\017next_page_token\030\006 \001(\t\032\341\001\n\020Predic" + + "tionResult\022\n\n\002id\030\001 \001(\t\022t\n\ritem_metadata\030" + + "\002 \003(\0132].google.cloud.recommendationengin" + + "e.v1beta1.PredictResponse.PredictionResu" + + "lt.ItemMetadataEntry\032K\n\021ItemMetadataEntr" + + "y\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.p" + + "rotobuf.Value:\0028\001\032G\n\rMetadataEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf" + + ".Value:\0028\0012\342\002\n\021PredictionService\022\363\001\n\007Pre" + + "dict\0229.google.cloud.recommendationengine" + + ".v1beta1.PredictRequest\032:.google.cloud.r" + + "ecommendationengine.v1beta1.PredictRespo" + + "nse\"q\202\323\344\223\002Y\"T/v1beta1/{name=projects/*/l" + + "ocations/*/catalogs/*/eventStores/*/plac" + + "ements/*}:predict:\001*\332A\017name,user_event\032W" + + "\312A#recommendationengine.googleapis.com\322A" + + ".https://www.googleapis.com/auth/cloud-p" + + "latformB\237\002\n-com.google.cloud.recommendat" + + "ionengine.v1beta1P\001Z]google.golang.org/g" + + "enproto/googleapis/cloud/recommendatione" + + "ngine/v1beta1;recommendationengine\242\002\005REC" + + "AI\252\002)Google.Cloud.RecommendationEngine.V" + + "1Beta1\312\002)Google\\Cloud\\RecommendationEngi" + + "ne\\V1beta1\352\002,Google::Cloud::Recommendati" + + "onEngine::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + }); + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor, + new java.lang.String[] { + "Name", "UserEvent", "PageSize", "PageToken", "Filter", "DryRun", "Params", "Labels", + }); + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_ParamsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PredictRequest_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor, + new java.lang.String[] { + "Results", + "RecommendationToken", + "ItemsMissingInCatalog", + "DryRun", + "Metadata", + "NextPageToken", + }); + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor, + new java.lang.String[] { + "Id", "ItemMetadata", + }); + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_PredictionResult_ItemMetadataEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PredictResponse_MetadataEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItem.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItem.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItem.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItem.java index fa28c26c..655b9fd0 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItem.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItem.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * ProductCatalogItem captures item metadata specific to retail products.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ProductCatalogItem} */ -public final class ProductCatalogItem extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ProductCatalogItem extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ProductCatalogItem) ProductCatalogItemOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProductCatalogItem.newBuilder() to construct. private ProductCatalogItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ProductCatalogItem() { currencyCode_ = ""; stockState_ = 0; @@ -28,16 +46,15 @@ private ProductCatalogItem() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProductCatalogItem(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ProductCatalogItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,86 +74,113 @@ private ProductCatalogItem( case 0: done = true; break; - case 10: { - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder subBuilder = null; - if (priceCase_ == 1) { - subBuilder = ((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_).toBuilder(); - } - price_ = - input.readMessage(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_); - price_ = subBuilder.buildPartial(); - } - priceCase_ = 1; - break; - } - case 18: { - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder subBuilder = null; - if (priceCase_ == 2) { - subBuilder = ((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_).toBuilder(); + case 10: + { + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder + subBuilder = null; + if (priceCase_ == 1) { + subBuilder = + ((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) + price_) + .toBuilder(); + } + price_ = + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) + price_); + price_ = subBuilder.buildPartial(); + } + priceCase_ = 1; + break; } - price_ = - input.readMessage(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_); - price_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder + subBuilder = null; + if (priceCase_ == 2) { + subBuilder = + ((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) + price_) + .toBuilder(); + } + price_ = + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) + price_); + price_ = subBuilder.buildPartial(); + } + priceCase_ = 2; + break; } - priceCase_ = 2; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - costs_ = com.google.protobuf.MapField.newMapField( - CostsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + costs_ = + com.google.protobuf.MapField.newMapField(CostsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry costs__ = + input.readMessage( + CostsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + costs_.getMutableMap().put(costs__.getKey(), costs__.getValue()); + break; } - com.google.protobuf.MapEntry - costs__ = input.readMessage( - CostsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - costs_.getMutableMap().put( - costs__.getKey(), costs__.getValue()); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - currencyCode_ = s; - break; - } - case 40: { - int rawValue = input.readEnum(); - - stockState_ = rawValue; - break; - } - case 48: { + currencyCode_ = s; + break; + } + case 40: + { + int rawValue = input.readEnum(); - availableQuantity_ = input.readInt64(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + stockState_ = rawValue; + break; + } + case 48: + { + availableQuantity_ = input.readInt64(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - canonicalProductUri_ = s; - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - images_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + canonicalProductUri_ = s; + break; } - images_.add( - input.readMessage(com.google.cloud.recommendationengine.v1beta1.Image.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 66: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + images_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + images_.add( + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.Image.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -144,8 +188,7 @@ private ProductCatalogItem( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { images_ = java.util.Collections.unmodifiableList(images_); @@ -154,32 +197,36 @@ private ProductCatalogItem( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetCosts(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.class, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.class, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder.class); } /** + * + * *
              * Item stock state. If this field is unspecified, the item is
              * assumed to be in stock.
          @@ -187,9 +234,10 @@ protected com.google.protobuf.MapField internalGetMapField(
              *
              * Protobuf enum {@code google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState}
              */
          -  public enum StockState
          -      implements com.google.protobuf.ProtocolMessageEnum {
          +  public enum StockState implements com.google.protobuf.ProtocolMessageEnum {
               /**
          +     *
          +     *
                * 
                * Default item stock status. Should never be used.
                * 
          @@ -198,6 +246,8 @@ public enum StockState */ STOCK_STATE_UNSPECIFIED(0, 0), /** + * + * *
                * Item out of stock.
                * 
          @@ -206,6 +256,8 @@ public enum StockState */ OUT_OF_STOCK(2, 1), /** + * + * *
                * Item that is in pre-order state.
                * 
          @@ -214,6 +266,8 @@ public enum StockState */ PREORDER(3, 2), /** + * + * *
                * Item that is back-ordered (i.e. temporarily out of stock).
                * 
          @@ -225,6 +279,8 @@ public enum StockState ; /** + * + * *
                * Item in stock.
                * 
          @@ -233,6 +289,8 @@ public enum StockState */ public static final StockState IN_STOCK = STOCK_STATE_UNSPECIFIED; /** + * + * *
                * Default item stock status. Should never be used.
                * 
          @@ -241,6 +299,8 @@ public enum StockState */ public static final int STOCK_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
                * Item in stock.
                * 
          @@ -249,6 +309,8 @@ public enum StockState */ public static final int IN_STOCK_VALUE = 0; /** + * + * *
                * Item out of stock.
                * 
          @@ -257,6 +319,8 @@ public enum StockState */ public static final int OUT_OF_STOCK_VALUE = 1; /** + * + * *
                * Item that is in pre-order state.
                * 
          @@ -265,6 +329,8 @@ public enum StockState */ public static final int PREORDER_VALUE = 2; /** + * + * *
                * Item that is back-ordered (i.e. temporarily out of stock).
                * 
          @@ -273,7 +339,6 @@ public enum StockState */ public static final int BACKORDER_VALUE = 3; - public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( @@ -298,54 +363,59 @@ public static StockState valueOf(int value) { */ public static StockState forNumber(int value) { switch (value) { - case 0: return STOCK_STATE_UNSPECIFIED; - case 1: return OUT_OF_STOCK; - case 2: return PREORDER; - case 3: return BACKORDER; - default: return null; + case 0: + return STOCK_STATE_UNSPECIFIED; + case 1: + return OUT_OF_STOCK; + case 2: + return PREORDER; + case 3: + return BACKORDER; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - StockState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StockState findValueByNumber(int number) { - return StockState.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StockState findValueByNumber(int number) { + return StockState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (index == -1) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(index); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDescriptor() + .getEnumTypes() + .get(0); } private static final StockState[] VALUES = getStaticValuesArray(); + private static StockState[] getStaticValuesArray() { return new StockState[] { - STOCK_STATE_UNSPECIFIED, IN_STOCK, OUT_OF_STOCK, PREORDER, BACKORDER, + STOCK_STATE_UNSPECIFIED, IN_STOCK, OUT_OF_STOCK, PREORDER, BACKORDER, }; } - public static StockState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + + public static StockState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -364,62 +434,70 @@ private StockState(int index, int value) { // @@protoc_insertion_point(enum_scope:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState) } - public interface ExactPriceOrBuilder extends + public interface ExactPriceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Optional. Display price of the product.
                * 
          * * float display_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayPrice. */ float getDisplayPrice(); /** + * + * *
                * Optional. Price of the product without any discount. If zero, by default
                * set to be the 'displayPrice'.
                * 
          * * float original_price = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The originalPrice. */ float getOriginalPrice(); } /** + * + * *
              * Exact product price.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice} */ - public static final class ExactPrice extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ExactPrice extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) ExactPriceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExactPrice.newBuilder() to construct. private ExactPrice(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExactPrice() { - } + + private ExactPrice() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExactPrice(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ExactPrice( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -438,23 +516,23 @@ private ExactPrice( case 0: done = true; break; - case 13: { - - displayPrice_ = input.readFloat(); - break; - } - case 21: { - - originalPrice_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 13: + { + displayPrice_ = input.readFloat(); + break; + } + case 21: + { + originalPrice_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,34 +540,40 @@ private ExactPrice( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.class, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.class, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder + .class); } public static final int DISPLAY_PRICE_FIELD_NUMBER = 1; private float displayPrice_; /** + * + * *
                * Optional. Display price of the product.
                * 
          * * float display_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayPrice. */ @java.lang.Override @@ -500,12 +584,15 @@ public float getDisplayPrice() { public static final int ORIGINAL_PRICE_FIELD_NUMBER = 2; private float originalPrice_; /** + * + * *
                * Optional. Price of the product without any discount. If zero, by default
                * set to be the 'displayPrice'.
                * 
          * * float original_price = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The originalPrice. */ @java.lang.Override @@ -514,6 +601,7 @@ public float getOriginalPrice() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -525,8 +613,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(displayPrice_) != 0) { output.writeFloat(1, displayPrice_); } @@ -543,12 +630,10 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(displayPrice_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, displayPrice_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, displayPrice_); } if (java.lang.Float.floatToRawIntBits(originalPrice_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, originalPrice_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, originalPrice_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -558,19 +643,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice)) { + if (!(obj + instanceof com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice other = (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) obj; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice other = + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) obj; if (java.lang.Float.floatToIntBits(getDisplayPrice()) - != java.lang.Float.floatToIntBits( - other.getDisplayPrice())) return false; + != java.lang.Float.floatToIntBits(other.getDisplayPrice())) return false; if (java.lang.Float.floatToIntBits(getOriginalPrice()) - != java.lang.Float.floatToIntBits( - other.getOriginalPrice())) return false; + != java.lang.Float.floatToIntBits(other.getOriginalPrice())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -583,98 +668,109 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DISPLAY_PRICE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getDisplayPrice()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getDisplayPrice()); hash = (37 * hash) + ORIGINAL_PRICE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getOriginalPrice()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getOriginalPrice()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -684,44 +780,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                * Exact product price.
                * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.class, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.class, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder + .class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -733,19 +835,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_ExactPrice_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice build() { - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice result = buildPartial(); + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -753,8 +858,10 @@ public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPri } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice result = new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice(this); + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + buildPartial() { + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice result = + new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice(this); result.displayPrice_ = displayPrice_; result.originalPrice_ = originalPrice_; onBuilt(); @@ -765,46 +872,55 @@ public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPri public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice)other); + if (other + instanceof + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) { + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice other) { - if (other == com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + .getDefaultInstance()) return this; if (other.getDisplayPrice() != 0F) { setDisplayPrice(other.getDisplayPrice()); } @@ -826,11 +942,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parsedMessage = null; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -840,13 +959,16 @@ public Builder mergeFrom( return this; } - private float displayPrice_ ; + private float displayPrice_; /** + * + * *
                  * Optional. Display price of the product.
                  * 
          * * float display_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayPrice. */ @java.lang.Override @@ -854,43 +976,52 @@ public float getDisplayPrice() { return displayPrice_; } /** + * + * *
                  * Optional. Display price of the product.
                  * 
          * * float display_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The displayPrice to set. * @return This builder for chaining. */ public Builder setDisplayPrice(float value) { - + displayPrice_ = value; onChanged(); return this; } /** + * + * *
                  * Optional. Display price of the product.
                  * 
          * * float display_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayPrice() { - + displayPrice_ = 0F; onChanged(); return this; } - private float originalPrice_ ; + private float originalPrice_; /** + * + * *
                  * Optional. Price of the product without any discount. If zero, by default
                  * set to be the 'displayPrice'.
                  * 
          * * float original_price = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The originalPrice. */ @java.lang.Override @@ -898,36 +1029,43 @@ public float getOriginalPrice() { return originalPrice_; } /** + * + * *
                  * Optional. Price of the product without any discount. If zero, by default
                  * set to be the 'displayPrice'.
                  * 
          * * float original_price = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The originalPrice to set. * @return This builder for chaining. */ public Builder setOriginalPrice(float value) { - + originalPrice_ = value; onChanged(); return this; } /** + * + * *
                  * Optional. Price of the product without any discount. If zero, by default
                  * set to be the 'displayPrice'.
                  * 
          * * float original_price = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOriginalPrice() { - + originalPrice_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -940,30 +1078,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) - private static final com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice(); + DEFAULT_INSTANCE = + new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice(); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExactPrice parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExactPrice(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExactPrice parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExactPrice(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -975,37 +1116,46 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface PriceRangeOrBuilder extends + public interface PriceRangeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Required. The minimum product price.
                * 
          * * float min = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The min. */ float getMin(); /** + * + * *
                * Required. The maximum product price.
                * 
          * * float max = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The max. */ float getMax(); } /** + * + * *
              * Product price range when there are a range of prices for different
              * variations of the same product.
          @@ -1013,30 +1163,29 @@ public interface PriceRangeOrBuilder extends
              *
              * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange}
              */
          -  public static final class PriceRange extends
          -      com.google.protobuf.GeneratedMessageV3 implements
          +  public static final class PriceRange extends com.google.protobuf.GeneratedMessageV3
          +      implements
                 // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange)
                 PriceRangeOrBuilder {
          -  private static final long serialVersionUID = 0L;
          +    private static final long serialVersionUID = 0L;
               // Use PriceRange.newBuilder() to construct.
               private PriceRange(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
          -    private PriceRange() {
          -    }
          +
          +    private PriceRange() {}
           
               @java.lang.Override
               @SuppressWarnings({"unused"})
          -    protected java.lang.Object newInstance(
          -        UnusedPrivateParameter unused) {
          +    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                 return new PriceRange();
               }
           
               @java.lang.Override
          -    public final com.google.protobuf.UnknownFieldSet
          -    getUnknownFields() {
          +    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
                 return this.unknownFields;
               }
          +
               private PriceRange(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          @@ -1055,23 +1204,23 @@ private PriceRange(
                       case 0:
                         done = true;
                         break;
          -            case 13: {
          -
          -              min_ = input.readFloat();
          -              break;
          -            }
          -            case 21: {
          -
          -              max_ = input.readFloat();
          -              break;
          -            }
          -            default: {
          -              if (!parseUnknownField(
          -                  input, unknownFields, extensionRegistry, tag)) {
          -                done = true;
          +            case 13:
          +              {
          +                min_ = input.readFloat();
          +                break;
          +              }
          +            case 21:
          +              {
          +                max_ = input.readFloat();
          +                break;
          +              }
          +            default:
          +              {
          +                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
          +                  done = true;
          +                }
          +                break;
                         }
          -              break;
          -            }
                     }
                   }
                 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          @@ -1079,34 +1228,40 @@ private PriceRange(
                 } catch (com.google.protobuf.UninitializedMessageException e) {
                   throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
                 } catch (java.io.IOException e) {
          -        throw new com.google.protobuf.InvalidProtocolBufferException(
          -            e).setUnfinishedMessage(this);
          +        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
                 } finally {
                   this.unknownFields = unknownFields.build();
                   makeExtensionsImmutable();
                 }
               }
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor;
          +
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.cloud.recommendationengine.v1beta1.Catalog
          +          .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_fieldAccessorTable
          +      return com.google.cloud.recommendationengine.v1beta1.Catalog
          +          .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.class, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder.class);
          +              com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.class,
          +              com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder
          +                  .class);
               }
           
               public static final int MIN_FIELD_NUMBER = 1;
               private float min_;
               /**
          +     *
          +     *
                * 
                * Required. The minimum product price.
                * 
          * * float min = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The min. */ @java.lang.Override @@ -1117,11 +1272,14 @@ public float getMin() { public static final int MAX_FIELD_NUMBER = 2; private float max_; /** + * + * *
                * Required. The maximum product price.
                * 
          * * float max = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The max. */ @java.lang.Override @@ -1130,6 +1288,7 @@ public float getMax() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1141,8 +1300,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(min_) != 0) { output.writeFloat(1, min_); } @@ -1159,12 +1317,10 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(min_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, min_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, min_); } if (java.lang.Float.floatToRawIntBits(max_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, max_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, max_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1174,19 +1330,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange)) { + if (!(obj + instanceof com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange other = (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) obj; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange other = + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) obj; if (java.lang.Float.floatToIntBits(getMin()) - != java.lang.Float.floatToIntBits( - other.getMin())) return false; + != java.lang.Float.floatToIntBits(other.getMin())) return false; if (java.lang.Float.floatToIntBits(getMax()) - != java.lang.Float.floatToIntBits( - other.getMax())) return false; + != java.lang.Float.floatToIntBits(other.getMax())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1199,98 +1355,109 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MIN_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getMin()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getMin()); hash = (37 * hash) + MAX_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getMax()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getMax()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1300,6 +1467,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                * Product price range when there are a range of prices for different
                * variations of the same product.
          @@ -1307,38 +1476,42 @@ protected Builder newBuilderForType(
                *
                * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange}
                */
          -    public static final class Builder extends
          -        com.google.protobuf.GeneratedMessageV3.Builder implements
          +    public static final class Builder
          +        extends com.google.protobuf.GeneratedMessageV3.Builder
          +        implements
                   // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange)
                   com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder {
          -      public static final com.google.protobuf.Descriptors.Descriptor
          -          getDescriptor() {
          -        return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor;
          +      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +        return com.google.cloud.recommendationengine.v1beta1.Catalog
          +            .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor;
                 }
           
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
          -        return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_fieldAccessorTable
          +        return com.google.cloud.recommendationengine.v1beta1.Catalog
          +            .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
          -                com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.class, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder.class);
          +                com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.class,
          +                com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder
          +                    .class);
                 }
           
          -      // Construct using com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.newBuilder()
          +      // Construct using
          +      // com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.newBuilder()
                 private Builder() {
                   maybeForceBuilderInitialization();
                 }
           
          -      private Builder(
          -          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                   super(parent);
                   maybeForceBuilderInitialization();
                 }
          +
                 private void maybeForceBuilderInitialization() {
          -        if (com.google.protobuf.GeneratedMessageV3
          -                .alwaysUseFieldBuilders) {
          -        }
          +        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
                 }
          +
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
          @@ -1350,19 +1523,22 @@ public Builder clear() {
                 }
           
                 @java.lang.Override
          -      public com.google.protobuf.Descriptors.Descriptor
          -          getDescriptorForType() {
          -        return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor;
          +      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +        return com.google.cloud.recommendationengine.v1beta1.Catalog
          +            .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_PriceRange_descriptor;
                 }
           
                 @java.lang.Override
          -      public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange getDefaultInstanceForType() {
          -        return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.getDefaultInstance();
          +      public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange
          +          getDefaultInstanceForType() {
          +        return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange
          +            .getDefaultInstance();
                 }
           
                 @java.lang.Override
                 public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange build() {
          -        com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange result = buildPartial();
          +        com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange result =
          +            buildPartial();
                   if (!result.isInitialized()) {
                     throw newUninitializedMessageException(result);
                   }
          @@ -1370,8 +1546,10 @@ public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRan
                 }
           
                 @java.lang.Override
          -      public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange buildPartial() {
          -        com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange result = new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange(this);
          +      public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange
          +          buildPartial() {
          +        com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange result =
          +            new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange(this);
                   result.min_ = min_;
                   result.max_ = max_;
                   onBuilt();
          @@ -1382,46 +1560,55 @@ public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRan
                 public Builder clone() {
                   return super.clone();
                 }
          +
                 @java.lang.Override
                 public Builder setField(
          -          com.google.protobuf.Descriptors.FieldDescriptor field,
          -          java.lang.Object value) {
          +          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                   return super.setField(field, value);
                 }
          +
                 @java.lang.Override
          -      public Builder clearField(
          -          com.google.protobuf.Descriptors.FieldDescriptor field) {
          +      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                   return super.clearField(field);
                 }
          +
                 @java.lang.Override
          -      public Builder clearOneof(
          -          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
          +      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                   return super.clearOneof(oneof);
                 }
          +
                 @java.lang.Override
                 public Builder setRepeatedField(
                     com.google.protobuf.Descriptors.FieldDescriptor field,
          -          int index, java.lang.Object value) {
          +          int index,
          +          java.lang.Object value) {
                   return super.setRepeatedField(field, index, value);
                 }
          +
                 @java.lang.Override
                 public Builder addRepeatedField(
          -          com.google.protobuf.Descriptors.FieldDescriptor field,
          -          java.lang.Object value) {
          +          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                   return super.addRepeatedField(field, value);
                 }
          +
                 @java.lang.Override
                 public Builder mergeFrom(com.google.protobuf.Message other) {
          -        if (other instanceof com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) {
          -          return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange)other);
          +        if (other
          +            instanceof
          +            com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) {
          +          return mergeFrom(
          +              (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) other);
                   } else {
                     super.mergeFrom(other);
                     return this;
                   }
                 }
           
          -      public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange other) {
          -        if (other == com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.getDefaultInstance()) return this;
          +      public Builder mergeFrom(
          +          com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange other) {
          +        if (other
          +            == com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange
          +                .getDefaultInstance()) return this;
                   if (other.getMin() != 0F) {
                     setMin(other.getMin());
                   }
          @@ -1443,11 +1630,14 @@ public Builder mergeFrom(
                     com.google.protobuf.CodedInputStream input,
                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
          -        com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parsedMessage = null;
          +        com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange parsedMessage =
          +            null;
                   try {
                     parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          -          parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) e.getUnfinishedMessage();
          +          parsedMessage =
          +              (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange)
          +                  e.getUnfinishedMessage();
                     throw e.unwrapIOException();
                   } finally {
                     if (parsedMessage != null) {
          @@ -1457,13 +1647,16 @@ public Builder mergeFrom(
                   return this;
                 }
           
          -      private float min_ ;
          +      private float min_;
                 /**
          +       *
          +       *
                  * 
                  * Required. The minimum product price.
                  * 
          * * float min = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The min. */ @java.lang.Override @@ -1471,42 +1664,51 @@ public float getMin() { return min_; } /** + * + * *
                  * Required. The minimum product price.
                  * 
          * * float min = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The min to set. * @return This builder for chaining. */ public Builder setMin(float value) { - + min_ = value; onChanged(); return this; } /** + * + * *
                  * Required. The minimum product price.
                  * 
          * * float min = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMin() { - + min_ = 0F; onChanged(); return this; } - private float max_ ; + private float max_; /** + * + * *
                  * Required. The maximum product price.
                  * 
          * * float max = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The max. */ @java.lang.Override @@ -1514,34 +1716,41 @@ public float getMax() { return max_; } /** + * + * *
                  * Required. The maximum product price.
                  * 
          * * float max = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The max to set. * @return This builder for chaining. */ public Builder setMax(float value) { - + max_ = value; onChanged(); return this; } /** + * + * *
                  * Required. The maximum product price.
                  * 
          * * float max = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMax() { - + max_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1554,30 +1763,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) - private static final com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange(); + DEFAULT_INSTANCE = + new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange(); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PriceRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PriceRange(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PriceRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PriceRange(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1589,21 +1801,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int priceCase_ = 0; private java.lang.Object price_; + public enum PriceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { EXACT_PRICE(1), PRICE_RANGE(2), PRICE_NOT_SET(0); private final int value; + private PriceCase(int value) { this.value = value; } @@ -1619,30 +1834,38 @@ public static PriceCase valueOf(int value) { public static PriceCase forNumber(int value) { switch (value) { - case 1: return EXACT_PRICE; - case 2: return PRICE_RANGE; - case 0: return PRICE_NOT_SET; - default: return null; + case 1: + return EXACT_PRICE; + case 2: + return PRICE_RANGE; + case 0: + return PRICE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public PriceCase - getPriceCase() { - return PriceCase.forNumber( - priceCase_); + public PriceCase getPriceCase() { + return PriceCase.forNumber(priceCase_); } public static final int EXACT_PRICE_FIELD_NUMBER = 1; /** + * + * *
              * Optional. The exact product price.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the exactPrice field is set. */ @java.lang.Override @@ -1650,42 +1873,60 @@ public boolean hasExactPrice() { return priceCase_ == 1; } /** + * + * *
              * Optional. The exact product price.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The exactPrice. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice getExactPrice() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + getExactPrice() { if (priceCase_ == 1) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_; } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + .getDefaultInstance(); } /** + * + * *
              * Optional. The exact product price.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder getExactPriceOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder + getExactPriceOrBuilder() { if (priceCase_ == 1) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_; } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + .getDefaultInstance(); } public static final int PRICE_RANGE_FIELD_NUMBER = 2; /** + * + * *
              * Optional. The product price range.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the priceRange field is set. */ @java.lang.Override @@ -1693,54 +1934,66 @@ public boolean hasPriceRange() { return priceCase_ == 2; } /** + * + * *
              * Optional. The product price range.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The priceRange. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange getPriceRange() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + getPriceRange() { if (priceCase_ == 2) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_; } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + .getDefaultInstance(); } /** + * + * *
              * Optional. The product price range.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder getPriceRangeOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder + getPriceRangeOrBuilder() { if (priceCase_ == 2) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_; } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + .getDefaultInstance(); } public static final int COSTS_FIELD_NUMBER = 3; + private static final class CostsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Float> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.FLOAT, - 0F); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Float> costs_; - private com.google.protobuf.MapField - internalGetCosts() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_CostsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.FLOAT, + 0F); + } + + private com.google.protobuf.MapField costs_; + + private com.google.protobuf.MapField internalGetCosts() { if (costs_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CostsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(CostsDefaultEntryHolder.defaultEntry); } return costs_; } @@ -1749,6 +2002,8 @@ public int getCostsCount() { return internalGetCosts().getMap().size(); } /** + * + * *
              * Optional. A map to pass the costs associated with the product.
              * For example:
          @@ -1760,22 +2015,22 @@ public int getCostsCount() {
              *
              * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
              */
          -
             @java.lang.Override
          -  public boolean containsCosts(
          -      java.lang.String key) {
          -    if (key == null) { throw new NullPointerException("map key"); }
          +  public boolean containsCosts(java.lang.String key) {
          +    if (key == null) {
          +      throw new NullPointerException("map key");
          +    }
               return internalGetCosts().getMap().containsKey(key);
             }
          -  /**
          -   * Use {@link #getCostsMap()} instead.
          -   */
          +  /** Use {@link #getCostsMap()} instead. */
             @java.lang.Override
             @java.lang.Deprecated
             public java.util.Map getCosts() {
               return getCostsMap();
             }
             /**
          +   *
          +   *
              * 
              * Optional. A map to pass the costs associated with the product.
              * For example:
          @@ -1788,11 +2043,12 @@ public java.util.Map getCosts() {
              * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
              */
             @java.lang.Override
          -
             public java.util.Map getCostsMap() {
               return internalGetCosts().getMap();
             }
             /**
          +   *
          +   *
              * 
              * Optional. A map to pass the costs associated with the product.
              * For example:
          @@ -1805,16 +2061,16 @@ public java.util.Map getCostsMap() {
              * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
              */
             @java.lang.Override
          -
          -  public float getCostsOrDefault(
          -      java.lang.String key,
          -      float defaultValue) {
          -    if (key == null) { throw new NullPointerException("map key"); }
          -    java.util.Map map =
          -        internalGetCosts().getMap();
          +  public float getCostsOrDefault(java.lang.String key, float defaultValue) {
          +    if (key == null) {
          +      throw new NullPointerException("map key");
          +    }
          +    java.util.Map map = internalGetCosts().getMap();
               return map.containsKey(key) ? map.get(key) : defaultValue;
             }
             /**
          +   *
          +   *
              * 
              * Optional. A map to pass the costs associated with the product.
              * For example:
          @@ -1827,12 +2083,11 @@ public float getCostsOrDefault(
              * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
              */
             @java.lang.Override
          -
          -  public float getCostsOrThrow(
          -      java.lang.String key) {
          -    if (key == null) { throw new NullPointerException("map key"); }
          -    java.util.Map map =
          -        internalGetCosts().getMap();
          +  public float getCostsOrThrow(java.lang.String key) {
          +    if (key == null) {
          +      throw new NullPointerException("map key");
          +    }
          +    java.util.Map map = internalGetCosts().getMap();
               if (!map.containsKey(key)) {
                 throw new java.lang.IllegalArgumentException();
               }
          @@ -1842,12 +2097,15 @@ public float getCostsOrThrow(
             public static final int CURRENCY_CODE_FIELD_NUMBER = 4;
             private volatile java.lang.Object currencyCode_;
             /**
          +   *
          +   *
              * 
              * Optional. Only required if the price is set. Currency code for price/costs. Use
              * three-character ISO-4217 code.
              * 
          * * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The currencyCode. */ @java.lang.Override @@ -1856,30 +2114,30 @@ public java.lang.String getCurrencyCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; } } /** + * + * *
              * Optional. Only required if the price is set. Currency code for price/costs. Use
              * three-character ISO-4217 code.
              * 
          * * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for currencyCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getCurrencyCodeBytes() { + public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -1890,38 +2148,58 @@ public java.lang.String getCurrencyCode() { public static final int STOCK_STATE_FIELD_NUMBER = 5; private int stockState_; /** + * + * *
              * Optional. Online stock state of the catalog item. Default is `IN_STOCK`.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for stockState. */ - @java.lang.Override public int getStockStateValue() { + @java.lang.Override + public int getStockStateValue() { return stockState_; } /** + * + * *
              * Optional. Online stock state of the catalog item. Default is `IN_STOCK`.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The stockState. */ - @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState getStockState() { + @java.lang.Override + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState + getStockState() { @SuppressWarnings("deprecation") - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState result = com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.valueOf(stockState_); - return result == null ? com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.UNRECOGNIZED : result; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState result = + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.valueOf( + stockState_); + return result == null + ? com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.UNRECOGNIZED + : result; } public static final int AVAILABLE_QUANTITY_FIELD_NUMBER = 6; private long availableQuantity_; /** + * + * *
              * Optional. The available quantity of the item.
              * 
          * * int64 available_quantity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The availableQuantity. */ @java.lang.Override @@ -1932,12 +2210,15 @@ public long getAvailableQuantity() { public static final int CANONICAL_PRODUCT_URI_FIELD_NUMBER = 7; private volatile java.lang.Object canonicalProductUri_; /** + * + * *
              * Optional. Canonical URL directly linking to the item detail page with a
              * length limit of 5 KiB..
              * 
          * * string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The canonicalProductUri. */ @java.lang.Override @@ -1946,30 +2227,30 @@ public java.lang.String getCanonicalProductUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalProductUri_ = s; return s; } } /** + * + * *
              * Optional. Canonical URL directly linking to the item detail page with a
              * length limit of 5 KiB..
              * 
          * * string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for canonicalProductUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getCanonicalProductUriBytes() { + public com.google.protobuf.ByteString getCanonicalProductUriBytes() { java.lang.Object ref = canonicalProductUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalProductUri_ = b; return b; } else { @@ -1980,56 +2261,76 @@ public java.lang.String getCanonicalProductUri() { public static final int IMAGES_FIELD_NUMBER = 8; private java.util.List images_; /** + * + * *
              * Optional. Product images for the catalog item.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getImagesList() { return images_; } /** + * + * *
              * Optional. Product images for the catalog item.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getImagesOrBuilderList() { return images_; } /** + * + * *
              * Optional. Product images for the catalog item.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getImagesCount() { return images_.size(); } /** + * + * *
              * Optional. Product images for the catalog item.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.Image getImages(int index) { return images_.get(index); } /** + * + * *
              * Optional. Product images for the catalog item.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder getImagesOrBuilder( @@ -2038,6 +2339,7 @@ public com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder getImagesOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2049,24 +2351,24 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (priceCase_ == 1) { - output.writeMessage(1, (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_); + output.writeMessage( + 1, (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_); } if (priceCase_ == 2) { - output.writeMessage(2, (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetCosts(), - CostsDefaultEntryHolder.defaultEntry, - 3); + output.writeMessage( + 2, (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetCosts(), CostsDefaultEntryHolder.defaultEntry, 3); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, currencyCode_); } - if (stockState_ != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.STOCK_STATE_UNSPECIFIED.getNumber()) { + if (stockState_ + != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState + .STOCK_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(5, stockState_); } if (availableQuantity_ != 0L) { @@ -2088,40 +2390,44 @@ public int getSerializedSize() { size = 0; if (priceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_); } if (priceCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_); - } - for (java.util.Map.Entry entry - : internalGetCosts().getMap().entrySet()) { - com.google.protobuf.MapEntry - costs__ = CostsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, costs__); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_); + } + for (java.util.Map.Entry entry : + internalGetCosts().getMap().entrySet()) { + com.google.protobuf.MapEntry costs__ = + CostsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, costs__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, currencyCode_); } - if (stockState_ != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.STOCK_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, stockState_); + if (stockState_ + != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState + .STOCK_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, stockState_); } if (availableQuantity_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, availableQuantity_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, availableQuantity_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalProductUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, canonicalProductUri_); } for (int i = 0; i < images_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, images_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, images_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2131,33 +2437,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem other = (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) obj; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem other = + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) obj; - if (!internalGetCosts().equals( - other.internalGetCosts())) return false; - if (!getCurrencyCode() - .equals(other.getCurrencyCode())) return false; + if (!internalGetCosts().equals(other.internalGetCosts())) return false; + if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; if (stockState_ != other.stockState_) return false; - if (getAvailableQuantity() - != other.getAvailableQuantity()) return false; - if (!getCanonicalProductUri() - .equals(other.getCanonicalProductUri())) return false; - if (!getImagesList() - .equals(other.getImagesList())) return false; + if (getAvailableQuantity() != other.getAvailableQuantity()) return false; + if (!getCanonicalProductUri().equals(other.getCanonicalProductUri())) return false; + if (!getImagesList().equals(other.getImagesList())) return false; if (!getPriceCase().equals(other.getPriceCase())) return false; switch (priceCase_) { case 1: - if (!getExactPrice() - .equals(other.getExactPrice())) return false; + if (!getExactPrice().equals(other.getExactPrice())) return false; break; case 2: - if (!getPriceRange() - .equals(other.getPriceRange())) return false; + if (!getPriceRange().equals(other.getPriceRange())) return false; break; case 0: default: @@ -2182,8 +2482,7 @@ public int hashCode() { hash = (37 * hash) + STOCK_STATE_FIELD_NUMBER; hash = (53 * hash) + stockState_; hash = (37 * hash) + AVAILABLE_QUANTITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAvailableQuantity()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAvailableQuantity()); hash = (37 * hash) + CANONICAL_PRODUCT_URI_FIELD_NUMBER; hash = (53 * hash) + getCanonicalProductUri().hashCode(); if (getImagesCount() > 0) { @@ -2208,139 +2507,147 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * ProductCatalogItem captures item metadata specific to retail products.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ProductCatalogItem} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ProductCatalogItem) com.google.cloud.recommendationengine.v1beta1.ProductCatalogItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetCosts(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 3: return internalGetMutableCosts(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.class, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.class, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.Builder.class); } // Construct using com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.newBuilder() @@ -2348,17 +2655,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getImagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2383,13 +2690,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Catalog.internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Catalog + .internal_static_google_cloud_recommendationengine_v1beta1_ProductCatalogItem_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem + getDefaultInstanceForType() { return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance(); } @@ -2404,7 +2712,8 @@ public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem build() @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem result = new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem(this); + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem result = + new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem(this); int from_bitField0_ = bitField0_; if (priceCase_ == 1) { if (exactPriceBuilder_ == null) { @@ -2444,48 +2753,51 @@ public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem)other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem other) { - if (other == com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance()) return this; - internalGetMutableCosts().mergeFrom( - other.internalGetCosts()); + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.getDefaultInstance()) + return this; + internalGetMutableCosts().mergeFrom(other.internalGetCosts()); if (!other.getCurrencyCode().isEmpty()) { currencyCode_ = other.currencyCode_; onChanged(); @@ -2518,26 +2830,30 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ProductCa imagesBuilder_ = null; images_ = other.images_; bitField0_ = (bitField0_ & ~0x00000002); - imagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getImagesFieldBuilder() : null; + imagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getImagesFieldBuilder() + : null; } else { imagesBuilder_.addAllMessages(other.images_); } } } switch (other.getPriceCase()) { - case EXACT_PRICE: { - mergeExactPrice(other.getExactPrice()); - break; - } - case PRICE_RANGE: { - mergePriceRange(other.getPriceRange()); - break; - } - case PRICE_NOT_SET: { - break; - } + case EXACT_PRICE: + { + mergeExactPrice(other.getExactPrice()); + break; + } + case PRICE_RANGE: + { + mergePriceRange(other.getPriceRange()); + break; + } + case PRICE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2558,7 +2874,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2567,12 +2885,12 @@ public Builder mergeFrom( } return this; } + private int priceCase_ = 0; private java.lang.Object price_; - public PriceCase - getPriceCase() { - return PriceCase.forNumber( - priceCase_); + + public PriceCase getPriceCase() { + return PriceCase.forNumber(priceCase_); } public Builder clearPrice() { @@ -2585,13 +2903,21 @@ public Builder clearPrice() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder> exactPriceBuilder_; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder> + exactPriceBuilder_; /** + * + * *
                * Optional. The exact product price.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the exactPrice field is set. */ @java.lang.Override @@ -2599,35 +2925,49 @@ public boolean hasExactPrice() { return priceCase_ == 1; } /** + * + * *
                * Optional. The exact product price.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The exactPrice. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice getExactPrice() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + getExactPrice() { if (exactPriceBuilder_ == null) { if (priceCase_ == 1) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) + price_; } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + .getDefaultInstance(); } else { if (priceCase_ == 1) { return exactPriceBuilder_.getMessage(); } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + .getDefaultInstance(); } } /** + * + * *
                * Optional. The exact product price.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setExactPrice(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice value) { + public Builder setExactPrice( + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice value) { if (exactPriceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2641,14 +2981,19 @@ public Builder setExactPrice(com.google.cloud.recommendationengine.v1beta1.Produ return this; } /** + * + * *
                * Optional. The exact product price.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setExactPrice( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder builderForValue) { + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder + builderForValue) { if (exactPriceBuilder_ == null) { price_ = builderForValue.build(); onChanged(); @@ -2659,18 +3004,30 @@ public Builder setExactPrice( return this; } /** + * + * *
                * Optional. The exact product price.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeExactPrice(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice value) { + public Builder mergeExactPrice( + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice value) { if (exactPriceBuilder_ == null) { - if (priceCase_ == 1 && - price_ != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.getDefaultInstance()) { - price_ = com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.newBuilder((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_) - .mergeFrom(value).buildPartial(); + if (priceCase_ == 1 + && price_ + != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + .getDefaultInstance()) { + price_ = + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + .newBuilder( + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) + price_) + .mergeFrom(value) + .buildPartial(); } else { price_ = value; } @@ -2686,11 +3043,15 @@ public Builder mergeExactPrice(com.google.cloud.recommendationengine.v1beta1.Pro return this; } /** + * + * *
                * Optional. The exact product price.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearExactPrice() { if (exactPriceBuilder_ == null) { @@ -2709,67 +3070,101 @@ public Builder clearExactPrice() { return this; } /** + * + * *
                * Optional. The exact product price.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder getExactPriceBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder + getExactPriceBuilder() { return getExactPriceFieldBuilder().getBuilder(); } /** + * + * *
                * Optional. The exact product price.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder getExactPriceOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder + getExactPriceOrBuilder() { if ((priceCase_ == 1) && (exactPriceBuilder_ != null)) { return exactPriceBuilder_.getMessageOrBuilder(); } else { if (priceCase_ == 1) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) + price_; } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + .getDefaultInstance(); } } /** + * + * *
                * Optional. The exact product price.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder> + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder> getExactPriceFieldBuilder() { if (exactPriceBuilder_ == null) { if (!(priceCase_ == 1)) { - price_ = com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.getDefaultInstance(); + price_ = + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice + .getDefaultInstance(); } - exactPriceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder>( - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) price_, + exactPriceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice.Builder, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem + .ExactPriceOrBuilder>( + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice) + price_, getParentForChildren(), isClean()); price_ = null; } priceCase_ = 1; - onChanged();; + onChanged(); + ; return exactPriceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder> priceRangeBuilder_; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder> + priceRangeBuilder_; /** + * + * *
                * Optional. The product price range.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the priceRange field is set. */ @java.lang.Override @@ -2777,35 +3172,49 @@ public boolean hasPriceRange() { return priceCase_ == 2; } /** + * + * *
                * Optional. The product price range.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The priceRange. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange getPriceRange() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + getPriceRange() { if (priceRangeBuilder_ == null) { if (priceCase_ == 2) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) + price_; } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + .getDefaultInstance(); } else { if (priceCase_ == 2) { return priceRangeBuilder_.getMessage(); } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + .getDefaultInstance(); } } /** + * + * *
                * Optional. The product price range.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPriceRange(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange value) { + public Builder setPriceRange( + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange value) { if (priceRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2819,14 +3228,19 @@ public Builder setPriceRange(com.google.cloud.recommendationengine.v1beta1.Produ return this; } /** + * + * *
                * Optional. The product price range.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPriceRange( - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder builderForValue) { + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder + builderForValue) { if (priceRangeBuilder_ == null) { price_ = builderForValue.build(); onChanged(); @@ -2837,18 +3251,30 @@ public Builder setPriceRange( return this; } /** + * + * *
                * Optional. The product price range.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergePriceRange(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange value) { + public Builder mergePriceRange( + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange value) { if (priceRangeBuilder_ == null) { - if (priceCase_ == 2 && - price_ != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.getDefaultInstance()) { - price_ = com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.newBuilder((com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_) - .mergeFrom(value).buildPartial(); + if (priceCase_ == 2 + && price_ + != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + .getDefaultInstance()) { + price_ = + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + .newBuilder( + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) + price_) + .mergeFrom(value) + .buildPartial(); } else { price_ = value; } @@ -2864,11 +3290,15 @@ public Builder mergePriceRange(com.google.cloud.recommendationengine.v1beta1.Pro return this; } /** + * + * *
                * Optional. The product price range.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPriceRange() { if (priceRangeBuilder_ == null) { @@ -2887,75 +3317,100 @@ public Builder clearPriceRange() { return this; } /** + * + * *
                * Optional. The product price range.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder getPriceRangeBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder + getPriceRangeBuilder() { return getPriceRangeFieldBuilder().getBuilder(); } /** + * + * *
                * Optional. The product price range.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder getPriceRangeOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder + getPriceRangeOrBuilder() { if ((priceCase_ == 2) && (priceRangeBuilder_ != null)) { return priceRangeBuilder_.getMessageOrBuilder(); } else { if (priceCase_ == 2) { - return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_; + return (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) + price_; } - return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.getDefaultInstance(); + return com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + .getDefaultInstance(); } } /** + * + * *
                * Optional. The product price range.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder> + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder> getPriceRangeFieldBuilder() { if (priceRangeBuilder_ == null) { if (!(priceCase_ == 2)) { - price_ = com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.getDefaultInstance(); + price_ = + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange + .getDefaultInstance(); } - priceRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder, com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder>( - (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) price_, + priceRangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange.Builder, + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem + .PriceRangeOrBuilder>( + (com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange) + price_, getParentForChildren(), isClean()); price_ = null; } priceCase_ = 2; - onChanged();; + onChanged(); + ; return priceRangeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Float> costs_; - private com.google.protobuf.MapField - internalGetCosts() { + private com.google.protobuf.MapField costs_; + + private com.google.protobuf.MapField internalGetCosts() { if (costs_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CostsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(CostsDefaultEntryHolder.defaultEntry); } return costs_; } + private com.google.protobuf.MapField - internalGetMutableCosts() { - onChanged();; + internalGetMutableCosts() { + onChanged(); + ; if (costs_ == null) { - costs_ = com.google.protobuf.MapField.newMapField( - CostsDefaultEntryHolder.defaultEntry); + costs_ = com.google.protobuf.MapField.newMapField(CostsDefaultEntryHolder.defaultEntry); } if (!costs_.isMutable()) { costs_ = costs_.copy(); @@ -2967,6 +3422,8 @@ public int getCostsCount() { return internalGetCosts().getMap().size(); } /** + * + * *
                * Optional. A map to pass the costs associated with the product.
                * For example:
          @@ -2978,22 +3435,22 @@ public int getCostsCount() {
                *
                * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
                */
          -
               @java.lang.Override
          -    public boolean containsCosts(
          -        java.lang.String key) {
          -      if (key == null) { throw new NullPointerException("map key"); }
          +    public boolean containsCosts(java.lang.String key) {
          +      if (key == null) {
          +        throw new NullPointerException("map key");
          +      }
                 return internalGetCosts().getMap().containsKey(key);
               }
          -    /**
          -     * Use {@link #getCostsMap()} instead.
          -     */
          +    /** Use {@link #getCostsMap()} instead. */
               @java.lang.Override
               @java.lang.Deprecated
               public java.util.Map getCosts() {
                 return getCostsMap();
               }
               /**
          +     *
          +     *
                * 
                * Optional. A map to pass the costs associated with the product.
                * For example:
          @@ -3006,11 +3463,12 @@ public java.util.Map getCosts() {
                * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
                */
               @java.lang.Override
          -
               public java.util.Map getCostsMap() {
                 return internalGetCosts().getMap();
               }
               /**
          +     *
          +     *
                * 
                * Optional. A map to pass the costs associated with the product.
                * For example:
          @@ -3023,16 +3481,16 @@ public java.util.Map getCostsMap() {
                * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
                */
               @java.lang.Override
          -
          -    public float getCostsOrDefault(
          -        java.lang.String key,
          -        float defaultValue) {
          -      if (key == null) { throw new NullPointerException("map key"); }
          -      java.util.Map map =
          -          internalGetCosts().getMap();
          +    public float getCostsOrDefault(java.lang.String key, float defaultValue) {
          +      if (key == null) {
          +        throw new NullPointerException("map key");
          +      }
          +      java.util.Map map = internalGetCosts().getMap();
                 return map.containsKey(key) ? map.get(key) : defaultValue;
               }
               /**
          +     *
          +     *
                * 
                * Optional. A map to pass the costs associated with the product.
                * For example:
          @@ -3045,12 +3503,11 @@ public float getCostsOrDefault(
                * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
                */
               @java.lang.Override
          -
          -    public float getCostsOrThrow(
          -        java.lang.String key) {
          -      if (key == null) { throw new NullPointerException("map key"); }
          -      java.util.Map map =
          -          internalGetCosts().getMap();
          +    public float getCostsOrThrow(java.lang.String key) {
          +      if (key == null) {
          +        throw new NullPointerException("map key");
          +      }
          +      java.util.Map map = internalGetCosts().getMap();
                 if (!map.containsKey(key)) {
                   throw new java.lang.IllegalArgumentException();
                 }
          @@ -3058,11 +3515,12 @@ public float getCostsOrThrow(
               }
           
               public Builder clearCosts() {
          -      internalGetMutableCosts().getMutableMap()
          -          .clear();
          +      internalGetMutableCosts().getMutableMap().clear();
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Optional. A map to pass the costs associated with the product.
                * For example:
          @@ -3074,23 +3532,21 @@ public Builder clearCosts() {
                *
                * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
                */
          -
          -    public Builder removeCosts(
          -        java.lang.String key) {
          -      if (key == null) { throw new NullPointerException("map key"); }
          -      internalGetMutableCosts().getMutableMap()
          -          .remove(key);
          +    public Builder removeCosts(java.lang.String key) {
          +      if (key == null) {
          +        throw new NullPointerException("map key");
          +      }
          +      internalGetMutableCosts().getMutableMap().remove(key);
                 return this;
               }
          -    /**
          -     * Use alternate mutation accessors instead.
          -     */
          +    /** Use alternate mutation accessors instead. */
               @java.lang.Deprecated
          -    public java.util.Map
          -    getMutableCosts() {
          +    public java.util.Map getMutableCosts() {
                 return internalGetMutableCosts().getMutableMap();
               }
               /**
          +     *
          +     *
                * 
                * Optional. A map to pass the costs associated with the product.
                * For example:
          @@ -3102,16 +3558,17 @@ public Builder removeCosts(
                *
                * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
                */
          -    public Builder putCosts(
          -        java.lang.String key,
          -        float value) {
          -      if (key == null) { throw new NullPointerException("map key"); }
          -      
          -      internalGetMutableCosts().getMutableMap()
          -          .put(key, value);
          +    public Builder putCosts(java.lang.String key, float value) {
          +      if (key == null) {
          +        throw new NullPointerException("map key");
          +      }
          +
          +      internalGetMutableCosts().getMutableMap().put(key, value);
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Optional. A map to pass the costs associated with the product.
                * For example:
          @@ -3123,29 +3580,28 @@ public Builder putCosts(
                *
                * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
                */
          -
          -    public Builder putAllCosts(
          -        java.util.Map values) {
          -      internalGetMutableCosts().getMutableMap()
          -          .putAll(values);
          +    public Builder putAllCosts(java.util.Map values) {
          +      internalGetMutableCosts().getMutableMap().putAll(values);
                 return this;
               }
           
               private java.lang.Object currencyCode_ = "";
               /**
          +     *
          +     *
                * 
                * Optional. Only required if the price is set. Currency code for price/costs. Use
                * three-character ISO-4217 code.
                * 
          * * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The currencyCode. */ public java.lang.String getCurrencyCode() { java.lang.Object ref = currencyCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; @@ -3154,21 +3610,22 @@ public java.lang.String getCurrencyCode() { } } /** + * + * *
                * Optional. Only required if the price is set. Currency code for price/costs. Use
                * three-character ISO-4217 code.
                * 
          * * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for currencyCode. */ - public com.google.protobuf.ByteString - getCurrencyCodeBytes() { + public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -3176,57 +3633,64 @@ public java.lang.String getCurrencyCode() { } } /** + * + * *
                * Optional. Only required if the price is set. Currency code for price/costs. Use
                * three-character ISO-4217 code.
                * 
          * * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCode( - java.lang.String value) { + public Builder setCurrencyCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + currencyCode_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Only required if the price is set. Currency code for price/costs. Use
                * three-character ISO-4217 code.
                * 
          * * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCurrencyCode() { - + currencyCode_ = getDefaultInstance().getCurrencyCode(); onChanged(); return this; } /** + * + * *
                * Optional. Only required if the price is set. Currency code for price/costs. Use
                * three-character ISO-4217 code.
                * 
          * * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + currencyCode_ = value; onChanged(); return this; @@ -3234,85 +3698,120 @@ public Builder setCurrencyCodeBytes( private int stockState_ = 0; /** + * + * *
                * Optional. Online stock state of the catalog item. Default is `IN_STOCK`.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for stockState. */ - @java.lang.Override public int getStockStateValue() { + @java.lang.Override + public int getStockStateValue() { return stockState_; } /** + * + * *
                * Optional. Online stock state of the catalog item. Default is `IN_STOCK`.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for stockState to set. * @return This builder for chaining. */ public Builder setStockStateValue(int value) { - + stockState_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Online stock state of the catalog item. Default is `IN_STOCK`.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The stockState. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState getStockState() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState + getStockState() { @SuppressWarnings("deprecation") - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState result = com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.valueOf(stockState_); - return result == null ? com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.UNRECOGNIZED : result; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState result = + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.valueOf( + stockState_); + return result == null + ? com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.UNRECOGNIZED + : result; } /** + * + * *
                * Optional. Online stock state of the catalog item. Default is `IN_STOCK`.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The stockState to set. * @return This builder for chaining. */ - public Builder setStockState(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState value) { + public Builder setStockState( + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState value) { if (value == null) { throw new NullPointerException(); } - + stockState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                * Optional. Online stock state of the catalog item. Default is `IN_STOCK`.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearStockState() { - + stockState_ = 0; onChanged(); return this; } - private long availableQuantity_ ; + private long availableQuantity_; /** + * + * *
                * Optional. The available quantity of the item.
                * 
          * * int64 available_quantity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The availableQuantity. */ @java.lang.Override @@ -3320,30 +3819,36 @@ public long getAvailableQuantity() { return availableQuantity_; } /** + * + * *
                * Optional. The available quantity of the item.
                * 
          * * int64 available_quantity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The availableQuantity to set. * @return This builder for chaining. */ public Builder setAvailableQuantity(long value) { - + availableQuantity_ = value; onChanged(); return this; } /** + * + * *
                * Optional. The available quantity of the item.
                * 
          * * int64 available_quantity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAvailableQuantity() { - + availableQuantity_ = 0L; onChanged(); return this; @@ -3351,19 +3856,21 @@ public Builder clearAvailableQuantity() { private java.lang.Object canonicalProductUri_ = ""; /** + * + * *
                * Optional. Canonical URL directly linking to the item detail page with a
                * length limit of 5 KiB..
                * 
          * * string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The canonicalProductUri. */ public java.lang.String getCanonicalProductUri() { java.lang.Object ref = canonicalProductUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalProductUri_ = s; return s; @@ -3372,21 +3879,22 @@ public java.lang.String getCanonicalProductUri() { } } /** + * + * *
                * Optional. Canonical URL directly linking to the item detail page with a
                * length limit of 5 KiB..
                * 
          * * string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for canonicalProductUri. */ - public com.google.protobuf.ByteString - getCanonicalProductUriBytes() { + public com.google.protobuf.ByteString getCanonicalProductUriBytes() { java.lang.Object ref = canonicalProductUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalProductUri_ = b; return b; } else { @@ -3394,80 +3902,96 @@ public java.lang.String getCanonicalProductUri() { } } /** + * + * *
                * Optional. Canonical URL directly linking to the item detail page with a
                * length limit of 5 KiB..
                * 
          * * string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The canonicalProductUri to set. * @return This builder for chaining. */ - public Builder setCanonicalProductUri( - java.lang.String value) { + public Builder setCanonicalProductUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + canonicalProductUri_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Canonical URL directly linking to the item detail page with a
                * length limit of 5 KiB..
                * 
          * * string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCanonicalProductUri() { - + canonicalProductUri_ = getDefaultInstance().getCanonicalProductUri(); onChanged(); return this; } /** + * + * *
                * Optional. Canonical URL directly linking to the item detail page with a
                * length limit of 5 KiB..
                * 
          * * string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for canonicalProductUri to set. * @return This builder for chaining. */ - public Builder setCanonicalProductUriBytes( - com.google.protobuf.ByteString value) { + public Builder setCanonicalProductUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + canonicalProductUri_ = value; onChanged(); return this; } private java.util.List images_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - images_ = new java.util.ArrayList(images_); + images_ = + new java.util.ArrayList(images_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.Image, com.google.cloud.recommendationengine.v1beta1.Image.Builder, com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder> imagesBuilder_; + com.google.cloud.recommendationengine.v1beta1.Image, + com.google.cloud.recommendationengine.v1beta1.Image.Builder, + com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder> + imagesBuilder_; /** + * + * *
                * Optional. Product images for the catalog item.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getImagesList() { if (imagesBuilder_ == null) { @@ -3477,11 +4001,15 @@ public java.util.List getIm } } /** + * + * *
                * Optional. Product images for the catalog item.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getImagesCount() { if (imagesBuilder_ == null) { @@ -3491,11 +4019,15 @@ public int getImagesCount() { } } /** + * + * *
                * Optional. Product images for the catalog item.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.recommendationengine.v1beta1.Image getImages(int index) { if (imagesBuilder_ == null) { @@ -3505,14 +4037,17 @@ public com.google.cloud.recommendationengine.v1beta1.Image getImages(int index) } } /** + * + * *
                * Optional. Product images for the catalog item.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setImages( - int index, com.google.cloud.recommendationengine.v1beta1.Image value) { + public Builder setImages(int index, com.google.cloud.recommendationengine.v1beta1.Image value) { if (imagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3526,11 +4061,15 @@ public Builder setImages( return this; } /** + * + * *
                * Optional. Product images for the catalog item.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setImages( int index, com.google.cloud.recommendationengine.v1beta1.Image.Builder builderForValue) { @@ -3544,11 +4083,15 @@ public Builder setImages( return this; } /** + * + * *
                * Optional. Product images for the catalog item.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addImages(com.google.cloud.recommendationengine.v1beta1.Image value) { if (imagesBuilder_ == null) { @@ -3564,14 +4107,17 @@ public Builder addImages(com.google.cloud.recommendationengine.v1beta1.Image val return this; } /** + * + * *
                * Optional. Product images for the catalog item.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addImages( - int index, com.google.cloud.recommendationengine.v1beta1.Image value) { + public Builder addImages(int index, com.google.cloud.recommendationengine.v1beta1.Image value) { if (imagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3585,11 +4131,15 @@ public Builder addImages( return this; } /** + * + * *
                * Optional. Product images for the catalog item.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addImages( com.google.cloud.recommendationengine.v1beta1.Image.Builder builderForValue) { @@ -3603,11 +4153,15 @@ public Builder addImages( return this; } /** + * + * *
                * Optional. Product images for the catalog item.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addImages( int index, com.google.cloud.recommendationengine.v1beta1.Image.Builder builderForValue) { @@ -3621,18 +4175,21 @@ public Builder addImages( return this; } /** + * + * *
                * Optional. Product images for the catalog item.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllImages( java.lang.Iterable values) { if (imagesBuilder_ == null) { ensureImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, images_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, images_); onChanged(); } else { imagesBuilder_.addAllMessages(values); @@ -3640,11 +4197,15 @@ public Builder addAllImages( return this; } /** + * + * *
                * Optional. Product images for the catalog item.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearImages() { if (imagesBuilder_ == null) { @@ -3657,11 +4218,15 @@ public Builder clearImages() { return this; } /** + * + * *
                * Optional. Product images for the catalog item.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeImages(int index) { if (imagesBuilder_ == null) { @@ -3674,39 +4239,51 @@ public Builder removeImages(int index) { return this; } /** + * + * *
                * Optional. Product images for the catalog item.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.Image.Builder getImagesBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.Image.Builder getImagesBuilder(int index) { return getImagesFieldBuilder().getBuilder(index); } /** + * + * *
                * Optional. Product images for the catalog item.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder getImagesOrBuilder( int index) { if (imagesBuilder_ == null) { - return images_.get(index); } else { + return images_.get(index); + } else { return imagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * Optional. Product images for the catalog item.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getImagesOrBuilderList() { + public java.util.List + getImagesOrBuilderList() { if (imagesBuilder_ != null) { return imagesBuilder_.getMessageOrBuilderList(); } else { @@ -3714,56 +4291,71 @@ public com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder getImagesOrB } } /** + * + * *
                * Optional. Product images for the catalog item.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.recommendationengine.v1beta1.Image.Builder addImagesBuilder() { - return getImagesFieldBuilder().addBuilder( - com.google.cloud.recommendationengine.v1beta1.Image.getDefaultInstance()); + return getImagesFieldBuilder() + .addBuilder(com.google.cloud.recommendationengine.v1beta1.Image.getDefaultInstance()); } /** + * + * *
                * Optional. Product images for the catalog item.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.Image.Builder addImagesBuilder( - int index) { - return getImagesFieldBuilder().addBuilder( - index, com.google.cloud.recommendationengine.v1beta1.Image.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.Image.Builder addImagesBuilder(int index) { + return getImagesFieldBuilder() + .addBuilder( + index, com.google.cloud.recommendationengine.v1beta1.Image.getDefaultInstance()); } /** + * + * *
                * Optional. Product images for the catalog item.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getImagesBuilderList() { + public java.util.List + getImagesBuilderList() { return getImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.Image, com.google.cloud.recommendationengine.v1beta1.Image.Builder, com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder> + com.google.cloud.recommendationengine.v1beta1.Image, + com.google.cloud.recommendationengine.v1beta1.Image.Builder, + com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder> getImagesFieldBuilder() { if (imagesBuilder_ == null) { - imagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.Image, com.google.cloud.recommendationengine.v1beta1.Image.Builder, com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder>( - images_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + imagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.Image, + com.google.cloud.recommendationengine.v1beta1.Image.Builder, + com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder>( + images_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); images_ = null; } return imagesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3773,30 +4365,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ProductCatalogItem) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ProductCatalogItem) - private static final com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem(); } - public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductCatalogItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductCatalogItem(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductCatalogItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductCatalogItem(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3808,9 +4402,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItemOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItemOrBuilder.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItemOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItemOrBuilder.java index 7a3daf97..6d9fa853 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItemOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductCatalogItemOrBuilder.java @@ -1,67 +1,115 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ProductCatalogItemOrBuilder extends +public interface ProductCatalogItemOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ProductCatalogItem) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Optional. The exact product price.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the exactPrice field is set. */ boolean hasExactPrice(); /** + * + * *
              * Optional. The exact product price.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The exactPrice. */ com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice getExactPrice(); /** + * + * *
              * Optional. The exact product price.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPrice exact_price = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder getExactPriceOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.ExactPriceOrBuilder + getExactPriceOrBuilder(); /** + * + * *
              * Optional. The product price range.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the priceRange field is set. */ boolean hasPriceRange(); /** + * + * *
              * Optional. The product price range.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The priceRange. */ com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange getPriceRange(); /** + * + * *
              * Optional. The product price range.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRange price_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder getPriceRangeOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceRangeOrBuilder + getPriceRangeOrBuilder(); /** + * + * *
              * Optional. A map to pass the costs associated with the product.
              * For example:
          @@ -75,6 +123,8 @@ public interface ProductCatalogItemOrBuilder extends
              */
             int getCostsCount();
             /**
          +   *
          +   *
              * 
              * Optional. A map to pass the costs associated with the product.
              * For example:
          @@ -86,15 +136,13 @@ public interface ProductCatalogItemOrBuilder extends
              *
              * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
              */
          -  boolean containsCosts(
          -      java.lang.String key);
          -  /**
          -   * Use {@link #getCostsMap()} instead.
          -   */
          +  boolean containsCosts(java.lang.String key);
          +  /** Use {@link #getCostsMap()} instead. */
             @java.lang.Deprecated
          -  java.util.Map
          -  getCosts();
          +  java.util.Map getCosts();
             /**
          +   *
          +   *
              * 
              * Optional. A map to pass the costs associated with the product.
              * For example:
          @@ -106,9 +154,10 @@ boolean containsCosts(
              *
              * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
              */
          -  java.util.Map
          -  getCostsMap();
          +  java.util.Map getCostsMap();
             /**
          +   *
          +   *
              * 
              * Optional. A map to pass the costs associated with the product.
              * For example:
          @@ -120,11 +169,10 @@ boolean containsCosts(
              *
              * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
              */
          -
          -  float getCostsOrDefault(
          -      java.lang.String key,
          -      float defaultValue);
          +  float getCostsOrDefault(java.lang.String key, float defaultValue);
             /**
          +   *
          +   *
              * 
              * Optional. A map to pass the costs associated with the product.
              * For example:
          @@ -136,126 +184,165 @@ float getCostsOrDefault(
              *
              * map<string, float> costs = 3 [(.google.api.field_behavior) = OPTIONAL];
              */
          -
          -  float getCostsOrThrow(
          -      java.lang.String key);
          +  float getCostsOrThrow(java.lang.String key);
           
             /**
          +   *
          +   *
              * 
              * Optional. Only required if the price is set. Currency code for price/costs. Use
              * three-character ISO-4217 code.
              * 
          * * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The currencyCode. */ java.lang.String getCurrencyCode(); /** + * + * *
              * Optional. Only required if the price is set. Currency code for price/costs. Use
              * three-character ISO-4217 code.
              * 
          * * string currency_code = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for currencyCode. */ - com.google.protobuf.ByteString - getCurrencyCodeBytes(); + com.google.protobuf.ByteString getCurrencyCodeBytes(); /** + * + * *
              * Optional. Online stock state of the catalog item. Default is `IN_STOCK`.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for stockState. */ int getStockStateValue(); /** + * + * *
              * Optional. Online stock state of the catalog item. Default is `IN_STOCK`.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The stockState. */ com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState getStockState(); /** + * + * *
              * Optional. The available quantity of the item.
              * 
          * * int64 available_quantity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The availableQuantity. */ long getAvailableQuantity(); /** + * + * *
              * Optional. Canonical URL directly linking to the item detail page with a
              * length limit of 5 KiB..
              * 
          * * string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The canonicalProductUri. */ java.lang.String getCanonicalProductUri(); /** + * + * *
              * Optional. Canonical URL directly linking to the item detail page with a
              * length limit of 5 KiB..
              * 
          * * string canonical_product_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for canonicalProductUri. */ - com.google.protobuf.ByteString - getCanonicalProductUriBytes(); + com.google.protobuf.ByteString getCanonicalProductUriBytes(); /** + * + * *
              * Optional. Product images for the catalog item.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getImagesList(); + java.util.List getImagesList(); /** + * + * *
              * Optional. Product images for the catalog item.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.recommendationengine.v1beta1.Image getImages(int index); /** + * + * *
              * Optional. Product images for the catalog item.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getImagesCount(); /** + * + * *
              * Optional. Product images for the catalog item.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getImagesOrBuilderList(); /** + * + * *
              * Optional. Product images for the catalog item.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.Image images = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder getImagesOrBuilder( - int index); + com.google.cloud.recommendationengine.v1beta1.ImageOrBuilder getImagesOrBuilder(int index); public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.PriceCase getPriceCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetail.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetail.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetail.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetail.java index 56ddbc2f..56120879 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetail.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetail.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Detailed product information associated with a user event.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ProductDetail} */ -public final class ProductDetail extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ProductDetail extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ProductDetail) ProductDetailOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProductDetail.newBuilder() to construct. private ProductDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ProductDetail() { id_ = ""; currencyCode_ = ""; @@ -27,16 +45,15 @@ private ProductDetail() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProductDetail(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ProductDetail( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,64 +72,71 @@ private ProductDetail( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - currencyCode_ = s; - break; - } - case 29: { - - originalPrice_ = input.readFloat(); - break; - } - case 37: { - - displayPrice_ = input.readFloat(); - break; - } - case 40: { - int rawValue = input.readEnum(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - stockState_ = rawValue; - break; - } - case 48: { - - quantity_ = input.readInt32(); - break; - } - case 56: { + id_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - availableQuantity_ = input.readInt32(); - break; - } - case 66: { - com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder subBuilder = null; - if (itemAttributes_ != null) { - subBuilder = itemAttributes_.toBuilder(); + currencyCode_ = s; + break; + } + case 29: + { + originalPrice_ = input.readFloat(); + break; } - itemAttributes_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.FeatureMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(itemAttributes_); - itemAttributes_ = subBuilder.buildPartial(); + case 37: + { + displayPrice_ = input.readFloat(); + break; } + case 40: + { + int rawValue = input.readEnum(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + stockState_ = rawValue; + break; + } + case 48: + { + quantity_ = input.readInt32(); + break; + } + case 56: + { + availableQuantity_ = input.readInt32(); + break; + } + case 66: + { + com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder subBuilder = null; + if (itemAttributes_ != null) { + subBuilder = itemAttributes_.toBuilder(); + } + itemAttributes_ = + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.FeatureMap.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(itemAttributes_); + itemAttributes_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,35 +144,40 @@ private ProductDetail( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ProductDetail.class, com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ProductDetail.class, + com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** + * + * *
              * Required. Catalog item ID. UTF-8 encoded string with a length limit of 128
              * characters.
              * 
          * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The id. */ @java.lang.Override @@ -157,30 +186,30 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** + * + * *
              * Required. Catalog item ID. UTF-8 encoded string with a length limit of 128
              * characters.
              * 
          * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -191,12 +220,15 @@ public java.lang.String getId() { public static final int CURRENCY_CODE_FIELD_NUMBER = 2; private volatile java.lang.Object currencyCode_; /** + * + * *
              * Optional. Currency code for price/costs. Use three-character ISO-4217
              * code. Required only if originalPrice or displayPrice is set.
              * 
          * * string currency_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The currencyCode. */ @java.lang.Override @@ -205,30 +237,30 @@ public java.lang.String getCurrencyCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; } } /** + * + * *
              * Optional. Currency code for price/costs. Use three-character ISO-4217
              * code. Required only if originalPrice or displayPrice is set.
              * 
          * * string currency_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for currencyCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getCurrencyCodeBytes() { + public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -239,12 +271,15 @@ public java.lang.String getCurrencyCode() { public static final int ORIGINAL_PRICE_FIELD_NUMBER = 3; private float originalPrice_; /** + * + * *
              * Optional. Original price of the product. If provided, this will override
              * the original price in Catalog for this product.
              * 
          * * float original_price = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The originalPrice. */ @java.lang.Override @@ -255,12 +290,15 @@ public float getOriginalPrice() { public static final int DISPLAY_PRICE_FIELD_NUMBER = 4; private float displayPrice_; /** + * + * *
              * Optional. Display price of the product (e.g. discounted price). If
              * provided, this will override the display price in Catalog for this product.
              * 
          * * float display_price = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayPrice. */ @java.lang.Override @@ -271,35 +309,54 @@ public float getDisplayPrice() { public static final int STOCK_STATE_FIELD_NUMBER = 5; private int stockState_; /** + * + * *
              * Optional. Item stock state. If provided, this overrides the stock state
              * in Catalog for items in this event.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for stockState. */ - @java.lang.Override public int getStockStateValue() { + @java.lang.Override + public int getStockStateValue() { return stockState_; } /** + * + * *
              * Optional. Item stock state. If provided, this overrides the stock state
              * in Catalog for items in this event.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The stockState. */ - @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState getStockState() { + @java.lang.Override + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState + getStockState() { @SuppressWarnings("deprecation") - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState result = com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.valueOf(stockState_); - return result == null ? com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.UNRECOGNIZED : result; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState result = + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.valueOf( + stockState_); + return result == null + ? com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.UNRECOGNIZED + : result; } public static final int QUANTITY_FIELD_NUMBER = 6; private int quantity_; /** + * + * *
              * Optional. Quantity of the product associated with the user event. For
              * example, this field will be 2 if two products are added to the shopping
          @@ -309,6 +366,7 @@ public float getDisplayPrice() {
              * 
          * * int32 quantity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The quantity. */ @java.lang.Override @@ -319,6 +377,8 @@ public int getQuantity() { public static final int AVAILABLE_QUANTITY_FIELD_NUMBER = 7; private int availableQuantity_; /** + * + * *
              * Optional. Quantity of the products in stock when a user event happens.
              * Optional. If provided, this overrides the available quantity in Catalog for
          @@ -329,6 +389,7 @@ public int getQuantity() {
              * 
          * * int32 available_quantity = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The availableQuantity. */ @java.lang.Override @@ -339,11 +400,16 @@ public int getAvailableQuantity() { public static final int ITEM_ATTRIBUTES_FIELD_NUMBER = 8; private com.google.cloud.recommendationengine.v1beta1.FeatureMap itemAttributes_; /** + * + * *
              * Optional. Extra features associated with a product in the user event.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the itemAttributes field is set. */ @java.lang.Override @@ -351,30 +417,43 @@ public boolean hasItemAttributes() { return itemAttributes_ != null; } /** + * + * *
              * Optional. Extra features associated with a product in the user event.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The itemAttributes. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.FeatureMap getItemAttributes() { - return itemAttributes_ == null ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() : itemAttributes_; + return itemAttributes_ == null + ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() + : itemAttributes_; } /** + * + * *
              * Optional. Extra features associated with a product in the user event.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getItemAttributesOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder + getItemAttributesOrBuilder() { return getItemAttributes(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -386,8 +465,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -400,7 +478,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (java.lang.Float.floatToRawIntBits(displayPrice_) != 0) { output.writeFloat(4, displayPrice_); } - if (stockState_ != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.STOCK_STATE_UNSPECIFIED.getNumber()) { + if (stockState_ + != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState + .STOCK_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(5, stockState_); } if (quantity_ != 0) { @@ -428,28 +509,25 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, currencyCode_); } if (java.lang.Float.floatToRawIntBits(originalPrice_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, originalPrice_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, originalPrice_); } if (java.lang.Float.floatToRawIntBits(displayPrice_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, displayPrice_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, displayPrice_); } - if (stockState_ != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.STOCK_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, stockState_); + if (stockState_ + != com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState + .STOCK_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, stockState_); } if (quantity_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, quantity_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, quantity_); } if (availableQuantity_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, availableQuantity_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, availableQuantity_); } if (itemAttributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getItemAttributes()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getItemAttributes()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -459,32 +537,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ProductDetail)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ProductDetail other = (com.google.cloud.recommendationengine.v1beta1.ProductDetail) obj; + com.google.cloud.recommendationengine.v1beta1.ProductDetail other = + (com.google.cloud.recommendationengine.v1beta1.ProductDetail) obj; - if (!getId() - .equals(other.getId())) return false; - if (!getCurrencyCode() - .equals(other.getCurrencyCode())) return false; + if (!getId().equals(other.getId())) return false; + if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; if (java.lang.Float.floatToIntBits(getOriginalPrice()) - != java.lang.Float.floatToIntBits( - other.getOriginalPrice())) return false; + != java.lang.Float.floatToIntBits(other.getOriginalPrice())) return false; if (java.lang.Float.floatToIntBits(getDisplayPrice()) - != java.lang.Float.floatToIntBits( - other.getDisplayPrice())) return false; + != java.lang.Float.floatToIntBits(other.getDisplayPrice())) return false; if (stockState_ != other.stockState_) return false; - if (getQuantity() - != other.getQuantity()) return false; - if (getAvailableQuantity() - != other.getAvailableQuantity()) return false; + if (getQuantity() != other.getQuantity()) return false; + if (getAvailableQuantity() != other.getAvailableQuantity()) return false; if (hasItemAttributes() != other.hasItemAttributes()) return false; if (hasItemAttributes()) { - if (!getItemAttributes() - .equals(other.getItemAttributes())) return false; + if (!getItemAttributes().equals(other.getItemAttributes())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -502,11 +574,9 @@ public int hashCode() { hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; hash = (53 * hash) + getCurrencyCode().hashCode(); hash = (37 * hash) + ORIGINAL_PRICE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getOriginalPrice()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getOriginalPrice()); hash = (37 * hash) + DISPLAY_PRICE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getDisplayPrice()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getDisplayPrice()); hash = (37 * hash) + STOCK_STATE_FIELD_NUMBER; hash = (53 * hash) + stockState_; hash = (37 * hash) + QUANTITY_FIELD_NUMBER; @@ -523,117 +593,127 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ProductDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ProductDetail prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.ProductDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Detailed product information associated with a user event.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ProductDetail} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ProductDetail) com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.ProductDetail.class, com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder.class); + com.google.cloud.recommendationengine.v1beta1.ProductDetail.class, + com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder.class); } // Construct using com.google.cloud.recommendationengine.v1beta1.ProductDetail.newBuilder() @@ -641,16 +721,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -678,9 +757,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor; } @java.lang.Override @@ -699,7 +778,8 @@ public com.google.cloud.recommendationengine.v1beta1.ProductDetail build() { @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ProductDetail buildPartial() { - com.google.cloud.recommendationengine.v1beta1.ProductDetail result = new com.google.cloud.recommendationengine.v1beta1.ProductDetail(this); + com.google.cloud.recommendationengine.v1beta1.ProductDetail result = + new com.google.cloud.recommendationengine.v1beta1.ProductDetail(this); result.id_ = id_; result.currencyCode_ = currencyCode_; result.originalPrice_ = originalPrice_; @@ -720,38 +800,39 @@ public com.google.cloud.recommendationengine.v1beta1.ProductDetail buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.ProductDetail) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductDetail)other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductDetail) other); } else { super.mergeFrom(other); return this; @@ -759,7 +840,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ProductDetail other) { - if (other == com.google.cloud.recommendationengine.v1beta1.ProductDetail.getDefaultInstance()) return this; + if (other == com.google.cloud.recommendationengine.v1beta1.ProductDetail.getDefaultInstance()) + return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); @@ -805,7 +887,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ProductDetail) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.ProductDetail) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -817,19 +900,21 @@ public Builder mergeFrom( private java.lang.Object id_ = ""; /** + * + * *
                * Required. Catalog item ID. UTF-8 encoded string with a length limit of 128
                * characters.
                * 
          * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -838,21 +923,22 @@ public java.lang.String getId() { } } /** + * + * *
                * Required. Catalog item ID. UTF-8 encoded string with a length limit of 128
                * characters.
                * 
          * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -860,57 +946,64 @@ public java.lang.String getId() { } } /** + * + * *
                * Required. Catalog item ID. UTF-8 encoded string with a length limit of 128
                * characters.
                * 
          * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** + * + * *
                * Required. Catalog item ID. UTF-8 encoded string with a length limit of 128
                * characters.
                * 
          * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
                * Required. Catalog item ID. UTF-8 encoded string with a length limit of 128
                * characters.
                * 
          * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -918,19 +1011,21 @@ public Builder setIdBytes( private java.lang.Object currencyCode_ = ""; /** + * + * *
                * Optional. Currency code for price/costs. Use three-character ISO-4217
                * code. Required only if originalPrice or displayPrice is set.
                * 
          * * string currency_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The currencyCode. */ public java.lang.String getCurrencyCode() { java.lang.Object ref = currencyCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; @@ -939,21 +1034,22 @@ public java.lang.String getCurrencyCode() { } } /** + * + * *
                * Optional. Currency code for price/costs. Use three-character ISO-4217
                * code. Required only if originalPrice or displayPrice is set.
                * 
          * * string currency_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for currencyCode. */ - public com.google.protobuf.ByteString - getCurrencyCodeBytes() { + public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -961,70 +1057,80 @@ public java.lang.String getCurrencyCode() { } } /** + * + * *
                * Optional. Currency code for price/costs. Use three-character ISO-4217
                * code. Required only if originalPrice or displayPrice is set.
                * 
          * * string currency_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCode( - java.lang.String value) { + public Builder setCurrencyCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + currencyCode_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Currency code for price/costs. Use three-character ISO-4217
                * code. Required only if originalPrice or displayPrice is set.
                * 
          * * string currency_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCurrencyCode() { - + currencyCode_ = getDefaultInstance().getCurrencyCode(); onChanged(); return this; } /** + * + * *
                * Optional. Currency code for price/costs. Use three-character ISO-4217
                * code. Required only if originalPrice or displayPrice is set.
                * 
          * * string currency_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + currencyCode_ = value; onChanged(); return this; } - private float originalPrice_ ; + private float originalPrice_; /** + * + * *
                * Optional. Original price of the product. If provided, this will override
                * the original price in Catalog for this product.
                * 
          * * float original_price = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The originalPrice. */ @java.lang.Override @@ -1032,45 +1138,54 @@ public float getOriginalPrice() { return originalPrice_; } /** + * + * *
                * Optional. Original price of the product. If provided, this will override
                * the original price in Catalog for this product.
                * 
          * * float original_price = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The originalPrice to set. * @return This builder for chaining. */ public Builder setOriginalPrice(float value) { - + originalPrice_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Original price of the product. If provided, this will override
                * the original price in Catalog for this product.
                * 
          * * float original_price = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOriginalPrice() { - + originalPrice_ = 0F; onChanged(); return this; } - private float displayPrice_ ; + private float displayPrice_; /** + * + * *
                * Optional. Display price of the product (e.g. discounted price). If
                * provided, this will override the display price in Catalog for this product.
                * 
          * * float display_price = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayPrice. */ @java.lang.Override @@ -1078,32 +1193,38 @@ public float getDisplayPrice() { return displayPrice_; } /** + * + * *
                * Optional. Display price of the product (e.g. discounted price). If
                * provided, this will override the display price in Catalog for this product.
                * 
          * * float display_price = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The displayPrice to set. * @return This builder for chaining. */ public Builder setDisplayPrice(float value) { - + displayPrice_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Display price of the product (e.g. discounted price). If
                * provided, this will override the display price in Catalog for this product.
                * 
          * * float display_price = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayPrice() { - + displayPrice_ = 0F; onChanged(); return this; @@ -1111,85 +1232,119 @@ public Builder clearDisplayPrice() { private int stockState_ = 0; /** + * + * *
                * Optional. Item stock state. If provided, this overrides the stock state
                * in Catalog for items in this event.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for stockState. */ - @java.lang.Override public int getStockStateValue() { + @java.lang.Override + public int getStockStateValue() { return stockState_; } /** + * + * *
                * Optional. Item stock state. If provided, this overrides the stock state
                * in Catalog for items in this event.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for stockState to set. * @return This builder for chaining. */ public Builder setStockStateValue(int value) { - + stockState_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Item stock state. If provided, this overrides the stock state
                * in Catalog for items in this event.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The stockState. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState getStockState() { + public com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState + getStockState() { @SuppressWarnings("deprecation") - com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState result = com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.valueOf(stockState_); - return result == null ? com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.UNRECOGNIZED : result; + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState result = + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.valueOf( + stockState_); + return result == null + ? com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState.UNRECOGNIZED + : result; } /** + * + * *
                * Optional. Item stock state. If provided, this overrides the stock state
                * in Catalog for items in this event.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The stockState to set. * @return This builder for chaining. */ - public Builder setStockState(com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState value) { + public Builder setStockState( + com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState value) { if (value == null) { throw new NullPointerException(); } - + stockState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                * Optional. Item stock state. If provided, this overrides the stock state
                * in Catalog for items in this event.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearStockState() { - + stockState_ = 0; onChanged(); return this; } - private int quantity_ ; + private int quantity_; /** + * + * *
                * Optional. Quantity of the product associated with the user event. For
                * example, this field will be 2 if two products are added to the shopping
          @@ -1199,6 +1354,7 @@ public Builder clearStockState() {
                * 
          * * int32 quantity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The quantity. */ @java.lang.Override @@ -1206,6 +1362,8 @@ public int getQuantity() { return quantity_; } /** + * + * *
                * Optional. Quantity of the product associated with the user event. For
                * example, this field will be 2 if two products are added to the shopping
          @@ -1215,16 +1373,19 @@ public int getQuantity() {
                * 
          * * int32 quantity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The quantity to set. * @return This builder for chaining. */ public Builder setQuantity(int value) { - + quantity_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Quantity of the product associated with the user event. For
                * example, this field will be 2 if two products are added to the shopping
          @@ -1234,17 +1395,20 @@ public Builder setQuantity(int value) {
                * 
          * * int32 quantity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearQuantity() { - + quantity_ = 0; onChanged(); return this; } - private int availableQuantity_ ; + private int availableQuantity_; /** + * + * *
                * Optional. Quantity of the products in stock when a user event happens.
                * Optional. If provided, this overrides the available quantity in Catalog for
          @@ -1255,6 +1419,7 @@ public Builder clearQuantity() {
                * 
          * * int32 available_quantity = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The availableQuantity. */ @java.lang.Override @@ -1262,6 +1427,8 @@ public int getAvailableQuantity() { return availableQuantity_; } /** + * + * *
                * Optional. Quantity of the products in stock when a user event happens.
                * Optional. If provided, this overrides the available quantity in Catalog for
          @@ -1272,16 +1439,19 @@ public int getAvailableQuantity() {
                * 
          * * int32 available_quantity = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The availableQuantity to set. * @return This builder for chaining. */ public Builder setAvailableQuantity(int value) { - + availableQuantity_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Quantity of the products in stock when a user event happens.
                * Optional. If provided, this overrides the available quantity in Catalog for
          @@ -1292,10 +1462,11 @@ public Builder setAvailableQuantity(int value) {
                * 
          * * int32 available_quantity = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAvailableQuantity() { - + availableQuantity_ = 0; onChanged(); return this; @@ -1303,41 +1474,61 @@ public Builder clearAvailableQuantity() { private com.google.cloud.recommendationengine.v1beta1.FeatureMap itemAttributes_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.FeatureMap, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> itemAttributesBuilder_; + com.google.cloud.recommendationengine.v1beta1.FeatureMap, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, + com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> + itemAttributesBuilder_; /** + * + * *
                * Optional. Extra features associated with a product in the user event.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the itemAttributes field is set. */ public boolean hasItemAttributes() { return itemAttributesBuilder_ != null || itemAttributes_ != null; } /** + * + * *
                * Optional. Extra features associated with a product in the user event.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The itemAttributes. */ public com.google.cloud.recommendationengine.v1beta1.FeatureMap getItemAttributes() { if (itemAttributesBuilder_ == null) { - return itemAttributes_ == null ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() : itemAttributes_; + return itemAttributes_ == null + ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() + : itemAttributes_; } else { return itemAttributesBuilder_.getMessage(); } } /** + * + * *
                * Optional. Extra features associated with a product in the user event.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setItemAttributes(com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { + public Builder setItemAttributes( + com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { if (itemAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1351,11 +1542,15 @@ public Builder setItemAttributes(com.google.cloud.recommendationengine.v1beta1.F return this; } /** + * + * *
                * Optional. Extra features associated with a product in the user event.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setItemAttributes( com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder builderForValue) { @@ -1369,17 +1564,24 @@ public Builder setItemAttributes( return this; } /** + * + * *
                * Optional. Extra features associated with a product in the user event.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeItemAttributes(com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { + public Builder mergeItemAttributes( + com.google.cloud.recommendationengine.v1beta1.FeatureMap value) { if (itemAttributesBuilder_ == null) { if (itemAttributes_ != null) { itemAttributes_ = - com.google.cloud.recommendationengine.v1beta1.FeatureMap.newBuilder(itemAttributes_).mergeFrom(value).buildPartial(); + com.google.cloud.recommendationengine.v1beta1.FeatureMap.newBuilder(itemAttributes_) + .mergeFrom(value) + .buildPartial(); } else { itemAttributes_ = value; } @@ -1391,11 +1593,15 @@ public Builder mergeItemAttributes(com.google.cloud.recommendationengine.v1beta1 return this; } /** + * + * *
                * Optional. Extra features associated with a product in the user event.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearItemAttributes() { if (itemAttributesBuilder_ == null) { @@ -1409,55 +1615,73 @@ public Builder clearItemAttributes() { return this; } /** + * + * *
                * Optional. Extra features associated with a product in the user event.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder getItemAttributesBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder + getItemAttributesBuilder() { + onChanged(); return getItemAttributesFieldBuilder().getBuilder(); } /** + * + * *
                * Optional. Extra features associated with a product in the user event.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getItemAttributesOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder + getItemAttributesOrBuilder() { if (itemAttributesBuilder_ != null) { return itemAttributesBuilder_.getMessageOrBuilder(); } else { - return itemAttributes_ == null ? - com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() : itemAttributes_; + return itemAttributes_ == null + ? com.google.cloud.recommendationengine.v1beta1.FeatureMap.getDefaultInstance() + : itemAttributes_; } } /** + * + * *
                * Optional. Extra features associated with a product in the user event.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.FeatureMap, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> + com.google.cloud.recommendationengine.v1beta1.FeatureMap, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, + com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder> getItemAttributesFieldBuilder() { if (itemAttributesBuilder_ == null) { - itemAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.FeatureMap, com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder>( - getItemAttributes(), - getParentForChildren(), - isClean()); + itemAttributesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.FeatureMap, + com.google.cloud.recommendationengine.v1beta1.FeatureMap.Builder, + com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder>( + getItemAttributes(), getParentForChildren(), isClean()); itemAttributes_ = null; } return itemAttributesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1467,12 +1691,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ProductDetail) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ProductDetail) private static final com.google.cloud.recommendationengine.v1beta1.ProductDetail DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ProductDetail(); } @@ -1481,16 +1705,16 @@ public static com.google.cloud.recommendationengine.v1beta1.ProductDetail getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductDetail(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductDetail(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1505,6 +1729,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.recommendationengine.v1beta1.ProductDetail getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetailOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetailOrBuilder.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetailOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetailOrBuilder.java index 64562f69..f628f0a2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetailOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductDetailOrBuilder.java @@ -1,100 +1,144 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ProductDetailOrBuilder extends +public interface ProductDetailOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ProductDetail) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required. Catalog item ID. UTF-8 encoded string with a length limit of 128
              * characters.
              * 
          * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The id. */ java.lang.String getId(); /** + * + * *
              * Required. Catalog item ID. UTF-8 encoded string with a length limit of 128
              * characters.
              * 
          * * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
              * Optional. Currency code for price/costs. Use three-character ISO-4217
              * code. Required only if originalPrice or displayPrice is set.
              * 
          * * string currency_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The currencyCode. */ java.lang.String getCurrencyCode(); /** + * + * *
              * Optional. Currency code for price/costs. Use three-character ISO-4217
              * code. Required only if originalPrice or displayPrice is set.
              * 
          * * string currency_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for currencyCode. */ - com.google.protobuf.ByteString - getCurrencyCodeBytes(); + com.google.protobuf.ByteString getCurrencyCodeBytes(); /** + * + * *
              * Optional. Original price of the product. If provided, this will override
              * the original price in Catalog for this product.
              * 
          * * float original_price = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The originalPrice. */ float getOriginalPrice(); /** + * + * *
              * Optional. Display price of the product (e.g. discounted price). If
              * provided, this will override the display price in Catalog for this product.
              * 
          * * float display_price = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayPrice. */ float getDisplayPrice(); /** + * + * *
              * Optional. Item stock state. If provided, this overrides the stock state
              * in Catalog for items in this event.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for stockState. */ int getStockStateValue(); /** + * + * *
              * Optional. Item stock state. If provided, this overrides the stock state
              * in Catalog for items in this event.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState stock_state = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The stockState. */ com.google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState getStockState(); /** + * + * *
              * Optional. Quantity of the product associated with the user event. For
              * example, this field will be 2 if two products are added to the shopping
          @@ -104,11 +148,14 @@ public interface ProductDetailOrBuilder extends
              * 
          * * int32 quantity = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The quantity. */ int getQuantity(); /** + * + * *
              * Optional. Quantity of the products in stock when a user event happens.
              * Optional. If provided, this overrides the available quantity in Catalog for
          @@ -119,34 +166,49 @@ public interface ProductDetailOrBuilder extends
              * 
          * * int32 available_quantity = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The availableQuantity. */ int getAvailableQuantity(); /** + * + * *
              * Optional. Extra features associated with a product in the user event.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the itemAttributes field is set. */ boolean hasItemAttributes(); /** + * + * *
              * Optional. Extra features associated with a product in the user event.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The itemAttributes. */ com.google.cloud.recommendationengine.v1beta1.FeatureMap getItemAttributes(); /** + * + * *
              * Optional. Extra features associated with a product in the user event.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.FeatureMap item_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.recommendationengine.v1beta1.FeatureMapOrBuilder getItemAttributesOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetail.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetail.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetail.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetail.java index 110324d7..bf2dbea4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetail.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetail.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * ProductEventDetail captures user event information specific to retail
            * products.
          @@ -11,15 +28,16 @@
            *
            * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ProductEventDetail}
            */
          -public final class ProductEventDetail extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class ProductEventDetail extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.ProductEventDetail)
               ProductEventDetailOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use ProductEventDetail.newBuilder() to construct.
             private ProductEventDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          +
             private ProductEventDetail() {
               searchQuery_ = "";
               pageCategories_ = java.util.Collections.emptyList();
          @@ -30,16 +48,15 @@ private ProductEventDetail() {
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new ProductEventDetail();
             }
           
             @java.lang.Override
          -  public final com.google.protobuf.UnknownFieldSet
          -  getUnknownFields() {
          +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
               return this.unknownFields;
             }
          +
             private ProductEventDetail(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          @@ -59,62 +76,82 @@ private ProductEventDetail(
                     case 0:
                       done = true;
                       break;
          -          case 10: {
          -            java.lang.String s = input.readStringRequireUtf8();
          +          case 10:
          +            {
          +              java.lang.String s = input.readStringRequireUtf8();
           
          -            searchQuery_ = s;
          -            break;
          -          }
          -          case 18: {
          -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          -              pageCategories_ = new java.util.ArrayList();
          -              mutable_bitField0_ |= 0x00000001;
          +              searchQuery_ = s;
          +              break;
                       }
          -            pageCategories_.add(
          -                input.readMessage(com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.parser(), extensionRegistry));
          -            break;
          -          }
          -          case 26: {
          -            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
          -              productDetails_ = new java.util.ArrayList();
          -              mutable_bitField0_ |= 0x00000002;
          +          case 18:
          +            {
          +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          +                pageCategories_ =
          +                    new java.util.ArrayList<
          +                        com.google.cloud.recommendationengine.v1beta1.CatalogItem
          +                            .CategoryHierarchy>();
          +                mutable_bitField0_ |= 0x00000001;
          +              }
          +              pageCategories_.add(
          +                  input.readMessage(
          +                      com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy
          +                          .parser(),
          +                      extensionRegistry));
          +              break;
                       }
          -            productDetails_.add(
          -                input.readMessage(com.google.cloud.recommendationengine.v1beta1.ProductDetail.parser(), extensionRegistry));
          -            break;
          -          }
          -          case 34: {
          -            java.lang.String s = input.readStringRequireUtf8();
          +          case 26:
          +            {
          +              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
          +                productDetails_ =
          +                    new java.util.ArrayList<
          +                        com.google.cloud.recommendationengine.v1beta1.ProductDetail>();
          +                mutable_bitField0_ |= 0x00000002;
          +              }
          +              productDetails_.add(
          +                  input.readMessage(
          +                      com.google.cloud.recommendationengine.v1beta1.ProductDetail.parser(),
          +                      extensionRegistry));
          +              break;
          +            }
          +          case 34:
          +            {
          +              java.lang.String s = input.readStringRequireUtf8();
           
          -            listId_ = s;
          -            break;
          -          }
          -          case 42: {
          -            java.lang.String s = input.readStringRequireUtf8();
          +              listId_ = s;
          +              break;
          +            }
          +          case 42:
          +            {
          +              java.lang.String s = input.readStringRequireUtf8();
           
          -            cartId_ = s;
          -            break;
          -          }
          -          case 50: {
          -            com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder subBuilder = null;
          -            if (purchaseTransaction_ != null) {
          -              subBuilder = purchaseTransaction_.toBuilder();
          +              cartId_ = s;
          +              break;
                       }
          -            purchaseTransaction_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.parser(), extensionRegistry);
          -            if (subBuilder != null) {
          -              subBuilder.mergeFrom(purchaseTransaction_);
          -              purchaseTransaction_ = subBuilder.buildPartial();
          +          case 50:
          +            {
          +              com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder subBuilder =
          +                  null;
          +              if (purchaseTransaction_ != null) {
          +                subBuilder = purchaseTransaction_.toBuilder();
          +              }
          +              purchaseTransaction_ =
          +                  input.readMessage(
          +                      com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.parser(),
          +                      extensionRegistry);
          +              if (subBuilder != null) {
          +                subBuilder.mergeFrom(purchaseTransaction_);
          +                purchaseTransaction_ = subBuilder.buildPartial();
          +              }
          +
          +              break;
                       }
          -
          -            break;
          -          }
          -          default: {
          -            if (!parseUnknownField(
          -                input, unknownFields, extensionRegistry, tag)) {
          -              done = true;
          +          default:
          +            {
          +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
          +                done = true;
          +              }
          +              break;
                       }
          -            break;
          -          }
                   }
                 }
               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          @@ -122,8 +159,7 @@ private ProductEventDetail(
               } catch (com.google.protobuf.UninitializedMessageException e) {
                 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
               } catch (java.io.IOException e) {
          -      throw new com.google.protobuf.InvalidProtocolBufferException(
          -          e).setUnfinishedMessage(this);
          +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
               } finally {
                 if (((mutable_bitField0_ & 0x00000001) != 0)) {
                   pageCategories_ = java.util.Collections.unmodifiableList(pageCategories_);
          @@ -135,28 +171,34 @@ private ProductEventDetail(
                 makeExtensionsImmutable();
               }
             }
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor;
          +
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass
          +        .internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_fieldAccessorTable
          +    return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass
          +        .internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.class, com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder.class);
          +            com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.class,
          +            com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder.class);
             }
           
             public static final int SEARCH_QUERY_FIELD_NUMBER = 1;
             private volatile java.lang.Object searchQuery_;
             /**
          +   *
          +   *
              * 
              * Required for `search` events. Other event types should not set this field.
              * The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
              * 
          * * string search_query = 1; + * * @return The searchQuery. */ @java.lang.Override @@ -165,30 +207,30 @@ public java.lang.String getSearchQuery() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); searchQuery_ = s; return s; } } /** + * + * *
              * Required for `search` events. Other event types should not set this field.
              * The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
              * 
          * * string search_query = 1; + * * @return The bytes for searchQuery. */ @java.lang.Override - public com.google.protobuf.ByteString - getSearchQueryBytes() { + public com.google.protobuf.ByteString getSearchQueryBytes() { java.lang.Object ref = searchQuery_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); searchQuery_ = b; return b; } else { @@ -197,8 +239,12 @@ public java.lang.String getSearchQuery() { } public static final int PAGE_CATEGORIES_FIELD_NUMBER = 2; - private java.util.List pageCategories_; + private java.util.List< + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy> + pageCategories_; /** + * + * *
              * Required for `category-page-view` events. Other event types should not set
              * this field.
          @@ -208,13 +254,18 @@ public java.lang.String getSearchQuery() {
              * categories : ["Sales", "2017 Black Friday Deals"].
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ @java.lang.Override - public java.util.List getPageCategoriesList() { + public java.util.List + getPageCategoriesList() { return pageCategories_; } /** + * + * *
              * Required for `category-page-view` events. Other event types should not set
              * this field.
          @@ -224,14 +275,20 @@ public java.util.List
              *
          -   * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2;
          +   * 
          +   * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2;
          +   * 
              */
             @java.lang.Override
          -  public java.util.List 
          +  public java.util.List<
          +          ? extends
          +              com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder>
                 getPageCategoriesOrBuilderList() {
               return pageCategories_;
             }
             /**
          +   *
          +   *
              * 
              * Required for `category-page-view` events. Other event types should not set
              * this field.
          @@ -241,13 +298,17 @@ public java.util.List
              *
          -   * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2;
          +   * 
          +   * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2;
          +   * 
              */
             @java.lang.Override
             public int getPageCategoriesCount() {
               return pageCategories_.size();
             }
             /**
          +   *
          +   *
              * 
              * Required for `category-page-view` events. Other event types should not set
              * this field.
          @@ -257,13 +318,18 @@ public int getPageCategoriesCount() {
              * categories : ["Sales", "2017 Black Friday Deals"].
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getPageCategories(int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + getPageCategories(int index) { return pageCategories_.get(index); } /** + * + * *
              * Required for `category-page-view` events. Other event types should not set
              * this field.
          @@ -273,17 +339,22 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc
              * categories : ["Sales", "2017 Black Friday Deals"].
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder getPageCategoriesOrBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder + getPageCategoriesOrBuilder(int index) { return pageCategories_.get(index); } public static final int PRODUCT_DETAILS_FIELD_NUMBER = 3; - private java.util.List productDetails_; + private java.util.List + productDetails_; /** + * + * *
              * The main product details related to the event.
              * This field is required for the following event types:
          @@ -305,13 +376,17 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc
              * * `search`
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ @java.lang.Override - public java.util.List getProductDetailsList() { + public java.util.List + getProductDetailsList() { return productDetails_; } /** + * + * *
              * The main product details related to the event.
              * This field is required for the following event types:
          @@ -333,14 +408,18 @@ public java.util.List
              *
          -   * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3;
          +   * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3;
          +   * 
              */
             @java.lang.Override
          -  public java.util.List 
          +  public java.util.List<
          +          ? extends com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder>
                 getProductDetailsOrBuilderList() {
               return productDetails_;
             }
             /**
          +   *
          +   *
              * 
              * The main product details related to the event.
              * This field is required for the following event types:
          @@ -362,13 +441,16 @@ public java.util.List
              *
          -   * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3;
          +   * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3;
          +   * 
              */
             @java.lang.Override
             public int getProductDetailsCount() {
               return productDetails_.size();
             }
             /**
          +   *
          +   *
              * 
              * The main product details related to the event.
              * This field is required for the following event types:
          @@ -390,13 +472,16 @@ public int getProductDetailsCount() {
              * * `search`
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ProductDetail getProductDetails(int index) { return productDetails_.get(index); } /** + * + * *
              * The main product details related to the event.
              * This field is required for the following event types:
          @@ -418,17 +503,20 @@ public com.google.cloud.recommendationengine.v1beta1.ProductDetail getProductDet
              * * `search`
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder getProductDetailsOrBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder + getProductDetailsOrBuilder(int index) { return productDetails_.get(index); } public static final int LIST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object listId_; /** + * + * *
              * Required for `add-to-list` and `remove-from-list` events. The id or name of
              * the list that the item is being added to or removed from. Other event types
          @@ -436,6 +524,7 @@ public com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder getP
              * 
          * * string list_id = 4; + * * @return The listId. */ @java.lang.Override @@ -444,14 +533,15 @@ public java.lang.String getListId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); listId_ = s; return s; } } /** + * + * *
              * Required for `add-to-list` and `remove-from-list` events. The id or name of
              * the list that the item is being added to or removed from. Other event types
          @@ -459,16 +549,15 @@ public java.lang.String getListId() {
              * 
          * * string list_id = 4; + * * @return The bytes for listId. */ @java.lang.Override - public com.google.protobuf.ByteString - getListIdBytes() { + public com.google.protobuf.ByteString getListIdBytes() { java.lang.Object ref = listId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); listId_ = b; return b; } else { @@ -479,6 +568,8 @@ public java.lang.String getListId() { public static final int CART_ID_FIELD_NUMBER = 5; private volatile java.lang.Object cartId_; /** + * + * *
              * Optional. The id or name of the associated shopping cart. This id is used
              * to associate multiple items added or present in the cart before purchase.
          @@ -487,6 +578,7 @@ public java.lang.String getListId() {
              * 
          * * string cart_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The cartId. */ @java.lang.Override @@ -495,14 +587,15 @@ public java.lang.String getCartId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cartId_ = s; return s; } } /** + * + * *
              * Optional. The id or name of the associated shopping cart. This id is used
              * to associate multiple items added or present in the cart before purchase.
          @@ -511,16 +604,15 @@ public java.lang.String getCartId() {
              * 
          * * string cart_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for cartId. */ @java.lang.Override - public com.google.protobuf.ByteString - getCartIdBytes() { + public com.google.protobuf.ByteString getCartIdBytes() { java.lang.Object ref = cartId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cartId_ = b; return b; } else { @@ -531,13 +623,18 @@ public java.lang.String getCartId() { public static final int PURCHASE_TRANSACTION_FIELD_NUMBER = 6; private com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchaseTransaction_; /** + * + * *
              * Optional. A transaction represents the entire purchase transaction.
              * Required for `purchase-complete` events. Optional for `checkout-start`
              * events. Other event types should not set this field.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the purchaseTransaction field is set. */ @java.lang.Override @@ -545,34 +642,48 @@ public boolean hasPurchaseTransaction() { return purchaseTransaction_ != null; } /** + * + * *
              * Optional. A transaction represents the entire purchase transaction.
              * Required for `purchase-complete` events. Optional for `checkout-start`
              * events. Other event types should not set this field.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The purchaseTransaction. */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction getPurchaseTransaction() { - return purchaseTransaction_ == null ? com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.getDefaultInstance() : purchaseTransaction_; + public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction + getPurchaseTransaction() { + return purchaseTransaction_ == null + ? com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.getDefaultInstance() + : purchaseTransaction_; } /** + * + * *
              * Optional. A transaction represents the entire purchase transaction.
              * Required for `purchase-complete` events. Optional for `checkout-start`
              * events. Other event types should not set this field.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder getPurchaseTransactionOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder + getPurchaseTransactionOrBuilder() { return getPurchaseTransaction(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -584,8 +695,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(searchQuery_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, searchQuery_); } @@ -617,12 +727,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, searchQuery_); } for (int i = 0; i < pageCategories_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, pageCategories_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, pageCategories_.get(i)); } for (int i = 0; i < productDetails_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, productDetails_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, productDetails_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(listId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, listId_); @@ -631,8 +739,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, cartId_); } if (purchaseTransaction_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getPurchaseTransaction()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPurchaseTransaction()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -642,27 +749,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.ProductEventDetail)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.ProductEventDetail other = (com.google.cloud.recommendationengine.v1beta1.ProductEventDetail) obj; - - if (!getSearchQuery() - .equals(other.getSearchQuery())) return false; - if (!getPageCategoriesList() - .equals(other.getPageCategoriesList())) return false; - if (!getProductDetailsList() - .equals(other.getProductDetailsList())) return false; - if (!getListId() - .equals(other.getListId())) return false; - if (!getCartId() - .equals(other.getCartId())) return false; + com.google.cloud.recommendationengine.v1beta1.ProductEventDetail other = + (com.google.cloud.recommendationengine.v1beta1.ProductEventDetail) obj; + + if (!getSearchQuery().equals(other.getSearchQuery())) return false; + if (!getPageCategoriesList().equals(other.getPageCategoriesList())) return false; + if (!getProductDetailsList().equals(other.getProductDetailsList())) return false; + if (!getListId().equals(other.getListId())) return false; + if (!getCartId().equals(other.getCartId())) return false; if (hasPurchaseTransaction() != other.hasPurchaseTransaction()) return false; if (hasPurchaseTransaction()) { - if (!getPurchaseTransaction() - .equals(other.getPurchaseTransaction())) return false; + if (!getPurchaseTransaction().equals(other.getPurchaseTransaction())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -699,96 +801,104 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.ProductEventDetail prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.ProductEventDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * ProductEventDetail captures user event information specific to retail
              * products.
          @@ -796,21 +906,23 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.cloud.recommendationengine.v1beta1.ProductEventDetail}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.ProductEventDetail)
                 com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass
          +          .internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_fieldAccessorTable
          +      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass
          +          .internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.class, com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder.class);
          +              com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.class,
          +              com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder.class);
               }
           
               // Construct using com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.newBuilder()
          @@ -818,18 +930,18 @@ private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          +
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3
          -              .alwaysUseFieldBuilders) {
          +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                   getPageCategoriesFieldBuilder();
                   getProductDetailsFieldBuilder();
                 }
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -861,13 +973,14 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass
          +          .internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor;
               }
           
               @java.lang.Override
          -    public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail getDefaultInstanceForType() {
          +    public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail
          +        getDefaultInstanceForType() {
                 return com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.getDefaultInstance();
               }
           
          @@ -882,7 +995,8 @@ public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail build()
           
               @java.lang.Override
               public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail buildPartial() {
          -      com.google.cloud.recommendationengine.v1beta1.ProductEventDetail result = new com.google.cloud.recommendationengine.v1beta1.ProductEventDetail(this);
          +      com.google.cloud.recommendationengine.v1beta1.ProductEventDetail result =
          +          new com.google.cloud.recommendationengine.v1beta1.ProductEventDetail(this);
                 int from_bitField0_ = bitField0_;
                 result.searchQuery_ = searchQuery_;
                 if (pageCategoriesBuilder_ == null) {
          @@ -918,46 +1032,50 @@ public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail buildPar
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                 return super.setField(field, value);
               }
          +
               @java.lang.Override
          -    public Builder clearField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field) {
          +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                 return super.clearField(field);
               }
          +
               @java.lang.Override
          -    public Builder clearOneof(
          -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
          +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                 return super.clearOneof(oneof);
               }
          +
               @java.lang.Override
               public Builder setRepeatedField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        int index, java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                 return super.setRepeatedField(field, index, value);
               }
          +
               @java.lang.Override
               public Builder addRepeatedField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                 return super.addRepeatedField(field, value);
               }
          +
               @java.lang.Override
               public Builder mergeFrom(com.google.protobuf.Message other) {
                 if (other instanceof com.google.cloud.recommendationengine.v1beta1.ProductEventDetail) {
          -        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductEventDetail)other);
          +        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.ProductEventDetail) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
                 }
               }
           
          -    public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ProductEventDetail other) {
          -      if (other == com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.getDefaultInstance()) return this;
          +    public Builder mergeFrom(
          +        com.google.cloud.recommendationengine.v1beta1.ProductEventDetail other) {
          +      if (other
          +          == com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.getDefaultInstance())
          +        return this;
                 if (!other.getSearchQuery().isEmpty()) {
                   searchQuery_ = other.searchQuery_;
                   onChanged();
          @@ -980,9 +1098,10 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ProductEv
                       pageCategoriesBuilder_ = null;
                       pageCategories_ = other.pageCategories_;
                       bitField0_ = (bitField0_ & ~0x00000001);
          -            pageCategoriesBuilder_ = 
          -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          -                 getPageCategoriesFieldBuilder() : null;
          +            pageCategoriesBuilder_ =
          +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          +                    ? getPageCategoriesFieldBuilder()
          +                    : null;
                     } else {
                       pageCategoriesBuilder_.addAllMessages(other.pageCategories_);
                     }
          @@ -1006,9 +1125,10 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.ProductEv
                       productDetailsBuilder_ = null;
                       productDetails_ = other.productDetails_;
                       bitField0_ = (bitField0_ & ~0x00000002);
          -            productDetailsBuilder_ = 
          -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          -                 getProductDetailsFieldBuilder() : null;
          +            productDetailsBuilder_ =
          +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          +                    ? getProductDetailsFieldBuilder()
          +                    : null;
                     } else {
                       productDetailsBuilder_.addAllMessages(other.productDetails_);
                     }
          @@ -1044,7 +1164,9 @@ public Builder mergeFrom(
                 try {
                   parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          -        parsedMessage = (com.google.cloud.recommendationengine.v1beta1.ProductEventDetail) e.getUnfinishedMessage();
          +        parsedMessage =
          +            (com.google.cloud.recommendationengine.v1beta1.ProductEventDetail)
          +                e.getUnfinishedMessage();
                   throw e.unwrapIOException();
                 } finally {
                   if (parsedMessage != null) {
          @@ -1053,23 +1175,26 @@ public Builder mergeFrom(
                 }
                 return this;
               }
          +
               private int bitField0_;
           
               private java.lang.Object searchQuery_ = "";
               /**
          +     *
          +     *
                * 
                * Required for `search` events. Other event types should not set this field.
                * The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
                * 
          * * string search_query = 1; + * * @return The searchQuery. */ public java.lang.String getSearchQuery() { java.lang.Object ref = searchQuery_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); searchQuery_ = s; return s; @@ -1078,21 +1203,22 @@ public java.lang.String getSearchQuery() { } } /** + * + * *
                * Required for `search` events. Other event types should not set this field.
                * The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
                * 
          * * string search_query = 1; + * * @return The bytes for searchQuery. */ - public com.google.protobuf.ByteString - getSearchQueryBytes() { + public com.google.protobuf.ByteString getSearchQueryBytes() { java.lang.Object ref = searchQuery_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); searchQuery_ = b; return b; } else { @@ -1100,75 +1226,92 @@ public java.lang.String getSearchQuery() { } } /** + * + * *
                * Required for `search` events. Other event types should not set this field.
                * The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
                * 
          * * string search_query = 1; + * * @param value The searchQuery to set. * @return This builder for chaining. */ - public Builder setSearchQuery( - java.lang.String value) { + public Builder setSearchQuery(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + searchQuery_ = value; onChanged(); return this; } /** + * + * *
                * Required for `search` events. Other event types should not set this field.
                * The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
                * 
          * * string search_query = 1; + * * @return This builder for chaining. */ public Builder clearSearchQuery() { - + searchQuery_ = getDefaultInstance().getSearchQuery(); onChanged(); return this; } /** + * + * *
                * Required for `search` events. Other event types should not set this field.
                * The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
                * 
          * * string search_query = 1; + * * @param value The bytes for searchQuery to set. * @return This builder for chaining. */ - public Builder setSearchQueryBytes( - com.google.protobuf.ByteString value) { + public Builder setSearchQueryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + searchQuery_ = value; onChanged(); return this; } - private java.util.List pageCategories_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy> + pageCategories_ = java.util.Collections.emptyList(); + private void ensurePageCategoriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - pageCategories_ = new java.util.ArrayList(pageCategories_); + pageCategories_ = + new java.util.ArrayList< + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy>( + pageCategories_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> pageCategoriesBuilder_; + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> + pageCategoriesBuilder_; /** + * + * *
                * Required for `category-page-view` events. Other event types should not set
                * this field.
          @@ -1178,9 +1321,13 @@ private void ensurePageCategoriesIsMutable() {
                * categories : ["Sales", "2017 Black Friday Deals"].
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ - public java.util.List getPageCategoriesList() { + public java.util.List< + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy> + getPageCategoriesList() { if (pageCategoriesBuilder_ == null) { return java.util.Collections.unmodifiableList(pageCategories_); } else { @@ -1188,6 +1335,8 @@ public java.util.List * Required for `category-page-view` events. Other event types should not set * this field. @@ -1197,7 +1346,9 @@ public java.util.List * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ public int getPageCategoriesCount() { if (pageCategoriesBuilder_ == null) { @@ -1207,6 +1358,8 @@ public int getPageCategoriesCount() { } } /** + * + * *
                * Required for `category-page-view` events. Other event types should not set
                * this field.
          @@ -1216,9 +1369,12 @@ public int getPageCategoriesCount() {
                * categories : ["Sales", "2017 Black Friday Deals"].
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getPageCategories(int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + getPageCategories(int index) { if (pageCategoriesBuilder_ == null) { return pageCategories_.get(index); } else { @@ -1226,6 +1382,8 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc } } /** + * + * *
                * Required for `category-page-view` events. Other event types should not set
                * this field.
          @@ -1235,10 +1393,13 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc
                * categories : ["Sales", "2017 Black Friday Deals"].
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ public Builder setPageCategories( - int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { + int index, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { if (pageCategoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1252,6 +1413,8 @@ public Builder setPageCategories( return this; } /** + * + * *
                * Required for `category-page-view` events. Other event types should not set
                * this field.
          @@ -1261,10 +1424,14 @@ public Builder setPageCategories(
                * categories : ["Sales", "2017 Black Friday Deals"].
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ public Builder setPageCategories( - int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder builderForValue) { + int index, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder + builderForValue) { if (pageCategoriesBuilder_ == null) { ensurePageCategoriesIsMutable(); pageCategories_.set(index, builderForValue.build()); @@ -1275,6 +1442,8 @@ public Builder setPageCategories( return this; } /** + * + * *
                * Required for `category-page-view` events. Other event types should not set
                * this field.
          @@ -1284,9 +1453,12 @@ public Builder setPageCategories(
                * categories : ["Sales", "2017 Black Friday Deals"].
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ - public Builder addPageCategories(com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { + public Builder addPageCategories( + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { if (pageCategoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1300,6 +1472,8 @@ public Builder addPageCategories(com.google.cloud.recommendationengine.v1beta1.C return this; } /** + * + * *
                * Required for `category-page-view` events. Other event types should not set
                * this field.
          @@ -1309,10 +1483,13 @@ public Builder addPageCategories(com.google.cloud.recommendationengine.v1beta1.C
                * categories : ["Sales", "2017 Black Friday Deals"].
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ public Builder addPageCategories( - int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { + int index, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy value) { if (pageCategoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1326,6 +1503,8 @@ public Builder addPageCategories( return this; } /** + * + * *
                * Required for `category-page-view` events. Other event types should not set
                * this field.
          @@ -1335,10 +1514,13 @@ public Builder addPageCategories(
                * categories : ["Sales", "2017 Black Friday Deals"].
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ public Builder addPageCategories( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder builderForValue) { + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder + builderForValue) { if (pageCategoriesBuilder_ == null) { ensurePageCategoriesIsMutable(); pageCategories_.add(builderForValue.build()); @@ -1349,6 +1531,8 @@ public Builder addPageCategories( return this; } /** + * + * *
                * Required for `category-page-view` events. Other event types should not set
                * this field.
          @@ -1358,10 +1542,14 @@ public Builder addPageCategories(
                * categories : ["Sales", "2017 Black Friday Deals"].
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ public Builder addPageCategories( - int index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder builderForValue) { + int index, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder + builderForValue) { if (pageCategoriesBuilder_ == null) { ensurePageCategoriesIsMutable(); pageCategories_.add(index, builderForValue.build()); @@ -1372,6 +1560,8 @@ public Builder addPageCategories( return this; } /** + * + * *
                * Required for `category-page-view` events. Other event types should not set
                * this field.
          @@ -1381,14 +1571,18 @@ public Builder addPageCategories(
                * categories : ["Sales", "2017 Black Friday Deals"].
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ public Builder addAllPageCategories( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy> + values) { if (pageCategoriesBuilder_ == null) { ensurePageCategoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pageCategories_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pageCategories_); onChanged(); } else { pageCategoriesBuilder_.addAllMessages(values); @@ -1396,6 +1590,8 @@ public Builder addAllPageCategories( return this; } /** + * + * *
                * Required for `category-page-view` events. Other event types should not set
                * this field.
          @@ -1405,7 +1601,9 @@ public Builder addAllPageCategories(
                * categories : ["Sales", "2017 Black Friday Deals"].
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ public Builder clearPageCategories() { if (pageCategoriesBuilder_ == null) { @@ -1418,6 +1616,8 @@ public Builder clearPageCategories() { return this; } /** + * + * *
                * Required for `category-page-view` events. Other event types should not set
                * this field.
          @@ -1427,7 +1627,9 @@ public Builder clearPageCategories() {
                * categories : ["Sales", "2017 Black Friday Deals"].
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ public Builder removePageCategories(int index) { if (pageCategoriesBuilder_ == null) { @@ -1440,6 +1642,8 @@ public Builder removePageCategories(int index) { return this; } /** + * + * *
                * Required for `category-page-view` events. Other event types should not set
                * this field.
          @@ -1449,13 +1653,17 @@ public Builder removePageCategories(int index) {
                * categories : ["Sales", "2017 Black Friday Deals"].
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder getPageCategoriesBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder + getPageCategoriesBuilder(int index) { return getPageCategoriesFieldBuilder().getBuilder(index); } /** + * + * *
                * Required for `category-page-view` events. Other event types should not set
                * this field.
          @@ -1465,16 +1673,21 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc
                * categories : ["Sales", "2017 Black Friday Deals"].
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder getPageCategoriesOrBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder + getPageCategoriesOrBuilder(int index) { if (pageCategoriesBuilder_ == null) { - return pageCategories_.get(index); } else { + return pageCategories_.get(index); + } else { return pageCategoriesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * Required for `category-page-view` events. Other event types should not set
                * this field.
          @@ -1484,10 +1697,15 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc
                * categories : ["Sales", "2017 Black Friday Deals"].
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ - public java.util.List - getPageCategoriesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.recommendationengine.v1beta1.CatalogItem + .CategoryHierarchyOrBuilder> + getPageCategoriesOrBuilderList() { if (pageCategoriesBuilder_ != null) { return pageCategoriesBuilder_.getMessageOrBuilderList(); } else { @@ -1495,6 +1713,8 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc } } /** + * + * *
                * Required for `category-page-view` events. Other event types should not set
                * this field.
          @@ -1504,13 +1724,20 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc
                * categories : ["Sales", "2017 Black Friday Deals"].
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder addPageCategoriesBuilder() { - return getPageCategoriesFieldBuilder().addBuilder( - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder + addPageCategoriesBuilder() { + return getPageCategoriesFieldBuilder() + .addBuilder( + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + .getDefaultInstance()); } /** + * + * *
                * Required for `category-page-view` events. Other event types should not set
                * this field.
          @@ -1520,14 +1747,21 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc
                * categories : ["Sales", "2017 Black Friday Deals"].
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder addPageCategoriesBuilder( - int index) { - return getPageCategoriesFieldBuilder().addBuilder( - index, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder + addPageCategoriesBuilder(int index) { + return getPageCategoriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy + .getDefaultInstance()); } /** + * + * *
                * Required for `category-page-view` events. Other event types should not set
                * this field.
          @@ -1537,18 +1771,28 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc
                * categories : ["Sales", "2017 Black Friday Deals"].
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ - public java.util.List - getPageCategoriesBuilderList() { + public java.util.List< + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder> + getPageCategoriesBuilderList() { return getPageCategoriesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> getPageCategoriesFieldBuilder() { if (pageCategoriesBuilder_ == null) { - pageCategoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder>( + pageCategoriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy.Builder, + com.google.cloud.recommendationengine.v1beta1.CatalogItem + .CategoryHierarchyOrBuilder>( pageCategories_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1558,19 +1802,27 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarc return pageCategoriesBuilder_; } - private java.util.List productDetails_ = - java.util.Collections.emptyList(); + private java.util.List + productDetails_ = java.util.Collections.emptyList(); + private void ensureProductDetailsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - productDetails_ = new java.util.ArrayList(productDetails_); + productDetails_ = + new java.util.ArrayList( + productDetails_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductDetail, com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder, com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder> productDetailsBuilder_; + com.google.cloud.recommendationengine.v1beta1.ProductDetail, + com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder, + com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder> + productDetailsBuilder_; /** + * + * *
                * The main product details related to the event.
                * This field is required for the following event types:
          @@ -1592,9 +1844,11 @@ private void ensureProductDetailsIsMutable() {
                * * `search`
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ - public java.util.List getProductDetailsList() { + public java.util.List + getProductDetailsList() { if (productDetailsBuilder_ == null) { return java.util.Collections.unmodifiableList(productDetails_); } else { @@ -1602,6 +1856,8 @@ public java.util.List * The main product details related to the event. * This field is required for the following event types: @@ -1623,7 +1879,8 @@ public java.util.List * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ public int getProductDetailsCount() { if (productDetailsBuilder_ == null) { @@ -1633,6 +1890,8 @@ public int getProductDetailsCount() { } } /** + * + * *
                * The main product details related to the event.
                * This field is required for the following event types:
          @@ -1654,9 +1913,11 @@ public int getProductDetailsCount() {
                * * `search`
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ - public com.google.cloud.recommendationengine.v1beta1.ProductDetail getProductDetails(int index) { + public com.google.cloud.recommendationengine.v1beta1.ProductDetail getProductDetails( + int index) { if (productDetailsBuilder_ == null) { return productDetails_.get(index); } else { @@ -1664,6 +1925,8 @@ public com.google.cloud.recommendationengine.v1beta1.ProductDetail getProductDet } } /** + * + * *
                * The main product details related to the event.
                * This field is required for the following event types:
          @@ -1685,7 +1948,8 @@ public com.google.cloud.recommendationengine.v1beta1.ProductDetail getProductDet
                * * `search`
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ public Builder setProductDetails( int index, com.google.cloud.recommendationengine.v1beta1.ProductDetail value) { @@ -1702,6 +1966,8 @@ public Builder setProductDetails( return this; } /** + * + * *
                * The main product details related to the event.
                * This field is required for the following event types:
          @@ -1723,10 +1989,12 @@ public Builder setProductDetails(
                * * `search`
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ public Builder setProductDetails( - int index, com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder builderForValue) { + int index, + com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder builderForValue) { if (productDetailsBuilder_ == null) { ensureProductDetailsIsMutable(); productDetails_.set(index, builderForValue.build()); @@ -1737,6 +2005,8 @@ public Builder setProductDetails( return this; } /** + * + * *
                * The main product details related to the event.
                * This field is required for the following event types:
          @@ -1758,9 +2028,11 @@ public Builder setProductDetails(
                * * `search`
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ - public Builder addProductDetails(com.google.cloud.recommendationengine.v1beta1.ProductDetail value) { + public Builder addProductDetails( + com.google.cloud.recommendationengine.v1beta1.ProductDetail value) { if (productDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1774,6 +2046,8 @@ public Builder addProductDetails(com.google.cloud.recommendationengine.v1beta1.P return this; } /** + * + * *
                * The main product details related to the event.
                * This field is required for the following event types:
          @@ -1795,7 +2069,8 @@ public Builder addProductDetails(com.google.cloud.recommendationengine.v1beta1.P
                * * `search`
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ public Builder addProductDetails( int index, com.google.cloud.recommendationengine.v1beta1.ProductDetail value) { @@ -1812,6 +2087,8 @@ public Builder addProductDetails( return this; } /** + * + * *
                * The main product details related to the event.
                * This field is required for the following event types:
          @@ -1833,7 +2110,8 @@ public Builder addProductDetails(
                * * `search`
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ public Builder addProductDetails( com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder builderForValue) { @@ -1847,6 +2125,8 @@ public Builder addProductDetails( return this; } /** + * + * *
                * The main product details related to the event.
                * This field is required for the following event types:
          @@ -1868,10 +2148,12 @@ public Builder addProductDetails(
                * * `search`
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ public Builder addProductDetails( - int index, com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder builderForValue) { + int index, + com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder builderForValue) { if (productDetailsBuilder_ == null) { ensureProductDetailsIsMutable(); productDetails_.add(index, builderForValue.build()); @@ -1882,6 +2164,8 @@ public Builder addProductDetails( return this; } /** + * + * *
                * The main product details related to the event.
                * This field is required for the following event types:
          @@ -1903,14 +2187,15 @@ public Builder addProductDetails(
                * * `search`
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ public Builder addAllProductDetails( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (productDetailsBuilder_ == null) { ensureProductDetailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, productDetails_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productDetails_); onChanged(); } else { productDetailsBuilder_.addAllMessages(values); @@ -1918,6 +2203,8 @@ public Builder addAllProductDetails( return this; } /** + * + * *
                * The main product details related to the event.
                * This field is required for the following event types:
          @@ -1939,7 +2226,8 @@ public Builder addAllProductDetails(
                * * `search`
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ public Builder clearProductDetails() { if (productDetailsBuilder_ == null) { @@ -1952,6 +2240,8 @@ public Builder clearProductDetails() { return this; } /** + * + * *
                * The main product details related to the event.
                * This field is required for the following event types:
          @@ -1973,7 +2263,8 @@ public Builder clearProductDetails() {
                * * `search`
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ public Builder removeProductDetails(int index) { if (productDetailsBuilder_ == null) { @@ -1986,6 +2277,8 @@ public Builder removeProductDetails(int index) { return this; } /** + * + * *
                * The main product details related to the event.
                * This field is required for the following event types:
          @@ -2007,13 +2300,16 @@ public Builder removeProductDetails(int index) {
                * * `search`
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ - public com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder getProductDetailsBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder + getProductDetailsBuilder(int index) { return getProductDetailsFieldBuilder().getBuilder(index); } /** + * + * *
                * The main product details related to the event.
                * This field is required for the following event types:
          @@ -2035,16 +2331,20 @@ public com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder getPr
                * * `search`
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ - public com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder getProductDetailsOrBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder + getProductDetailsOrBuilder(int index) { if (productDetailsBuilder_ == null) { - return productDetails_.get(index); } else { + return productDetails_.get(index); + } else { return productDetailsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * The main product details related to the event.
                * This field is required for the following event types:
          @@ -2066,10 +2366,12 @@ public com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder getP
                * * `search`
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ - public java.util.List - getProductDetailsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder> + getProductDetailsOrBuilderList() { if (productDetailsBuilder_ != null) { return productDetailsBuilder_.getMessageOrBuilderList(); } else { @@ -2077,6 +2379,8 @@ public com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder getP } } /** + * + * *
                * The main product details related to the event.
                * This field is required for the following event types:
          @@ -2098,13 +2402,18 @@ public com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder getP
                * * `search`
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ - public com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder addProductDetailsBuilder() { - return getProductDetailsFieldBuilder().addBuilder( - com.google.cloud.recommendationengine.v1beta1.ProductDetail.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder + addProductDetailsBuilder() { + return getProductDetailsFieldBuilder() + .addBuilder( + com.google.cloud.recommendationengine.v1beta1.ProductDetail.getDefaultInstance()); } /** + * + * *
                * The main product details related to the event.
                * This field is required for the following event types:
          @@ -2126,14 +2435,19 @@ public com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder addPr
                * * `search`
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ - public com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder addProductDetailsBuilder( - int index) { - return getProductDetailsFieldBuilder().addBuilder( - index, com.google.cloud.recommendationengine.v1beta1.ProductDetail.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder + addProductDetailsBuilder(int index) { + return getProductDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.recommendationengine.v1beta1.ProductDetail.getDefaultInstance()); } /** + * + * *
                * The main product details related to the event.
                * This field is required for the following event types:
          @@ -2155,18 +2469,25 @@ public com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder addPr
                * * `search`
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ - public java.util.List - getProductDetailsBuilderList() { + public java.util.List + getProductDetailsBuilderList() { return getProductDetailsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductDetail, com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder, com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder> + com.google.cloud.recommendationengine.v1beta1.ProductDetail, + com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder, + com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder> getProductDetailsFieldBuilder() { if (productDetailsBuilder_ == null) { - productDetailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductDetail, com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder, com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder>( + productDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.ProductDetail, + com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder, + com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder>( productDetails_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2178,6 +2499,8 @@ public com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder addPr private java.lang.Object listId_ = ""; /** + * + * *
                * Required for `add-to-list` and `remove-from-list` events. The id or name of
                * the list that the item is being added to or removed from. Other event types
          @@ -2185,13 +2508,13 @@ public com.google.cloud.recommendationengine.v1beta1.ProductDetail.Builder addPr
                * 
          * * string list_id = 4; + * * @return The listId. */ public java.lang.String getListId() { java.lang.Object ref = listId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); listId_ = s; return s; @@ -2200,6 +2523,8 @@ public java.lang.String getListId() { } } /** + * + * *
                * Required for `add-to-list` and `remove-from-list` events. The id or name of
                * the list that the item is being added to or removed from. Other event types
          @@ -2207,15 +2532,14 @@ public java.lang.String getListId() {
                * 
          * * string list_id = 4; + * * @return The bytes for listId. */ - public com.google.protobuf.ByteString - getListIdBytes() { + public com.google.protobuf.ByteString getListIdBytes() { java.lang.Object ref = listId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); listId_ = b; return b; } else { @@ -2223,6 +2547,8 @@ public java.lang.String getListId() { } } /** + * + * *
                * Required for `add-to-list` and `remove-from-list` events. The id or name of
                * the list that the item is being added to or removed from. Other event types
          @@ -2230,20 +2556,22 @@ public java.lang.String getListId() {
                * 
          * * string list_id = 4; + * * @param value The listId to set. * @return This builder for chaining. */ - public Builder setListId( - java.lang.String value) { + public Builder setListId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + listId_ = value; onChanged(); return this; } /** + * + * *
                * Required for `add-to-list` and `remove-from-list` events. The id or name of
                * the list that the item is being added to or removed from. Other event types
          @@ -2251,15 +2579,18 @@ public Builder setListId(
                * 
          * * string list_id = 4; + * * @return This builder for chaining. */ public Builder clearListId() { - + listId_ = getDefaultInstance().getListId(); onChanged(); return this; } /** + * + * *
                * Required for `add-to-list` and `remove-from-list` events. The id or name of
                * the list that the item is being added to or removed from. Other event types
          @@ -2267,16 +2598,16 @@ public Builder clearListId() {
                * 
          * * string list_id = 4; + * * @param value The bytes for listId to set. * @return This builder for chaining. */ - public Builder setListIdBytes( - com.google.protobuf.ByteString value) { + public Builder setListIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + listId_ = value; onChanged(); return this; @@ -2284,6 +2615,8 @@ public Builder setListIdBytes( private java.lang.Object cartId_ = ""; /** + * + * *
                * Optional. The id or name of the associated shopping cart. This id is used
                * to associate multiple items added or present in the cart before purchase.
          @@ -2292,13 +2625,13 @@ public Builder setListIdBytes(
                * 
          * * string cart_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The cartId. */ public java.lang.String getCartId() { java.lang.Object ref = cartId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cartId_ = s; return s; @@ -2307,6 +2640,8 @@ public java.lang.String getCartId() { } } /** + * + * *
                * Optional. The id or name of the associated shopping cart. This id is used
                * to associate multiple items added or present in the cart before purchase.
          @@ -2315,15 +2650,14 @@ public java.lang.String getCartId() {
                * 
          * * string cart_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for cartId. */ - public com.google.protobuf.ByteString - getCartIdBytes() { + public com.google.protobuf.ByteString getCartIdBytes() { java.lang.Object ref = cartId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cartId_ = b; return b; } else { @@ -2331,6 +2665,8 @@ public java.lang.String getCartId() { } } /** + * + * *
                * Optional. The id or name of the associated shopping cart. This id is used
                * to associate multiple items added or present in the cart before purchase.
          @@ -2339,20 +2675,22 @@ public java.lang.String getCartId() {
                * 
          * * string cart_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The cartId to set. * @return This builder for chaining. */ - public Builder setCartId( - java.lang.String value) { + public Builder setCartId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cartId_ = value; onChanged(); return this; } /** + * + * *
                * Optional. The id or name of the associated shopping cart. This id is used
                * to associate multiple items added or present in the cart before purchase.
          @@ -2361,15 +2699,18 @@ public Builder setCartId(
                * 
          * * string cart_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCartId() { - + cartId_ = getDefaultInstance().getCartId(); onChanged(); return this; } /** + * + * *
                * Optional. The id or name of the associated shopping cart. This id is used
                * to associate multiple items added or present in the cart before purchase.
          @@ -2378,16 +2719,16 @@ public Builder clearCartId() {
                * 
          * * string cart_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for cartId to set. * @return This builder for chaining. */ - public Builder setCartIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCartIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cartId_ = value; onChanged(); return this; @@ -2395,47 +2736,68 @@ public Builder setCartIdBytes( private com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchaseTransaction_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction, com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder, com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder> purchaseTransactionBuilder_; + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction, + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder, + com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder> + purchaseTransactionBuilder_; /** + * + * *
                * Optional. A transaction represents the entire purchase transaction.
                * Required for `purchase-complete` events. Optional for `checkout-start`
                * events. Other event types should not set this field.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the purchaseTransaction field is set. */ public boolean hasPurchaseTransaction() { return purchaseTransactionBuilder_ != null || purchaseTransaction_ != null; } /** + * + * *
                * Optional. A transaction represents the entire purchase transaction.
                * Required for `purchase-complete` events. Optional for `checkout-start`
                * events. Other event types should not set this field.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The purchaseTransaction. */ - public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction getPurchaseTransaction() { + public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction + getPurchaseTransaction() { if (purchaseTransactionBuilder_ == null) { - return purchaseTransaction_ == null ? com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.getDefaultInstance() : purchaseTransaction_; + return purchaseTransaction_ == null + ? com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.getDefaultInstance() + : purchaseTransaction_; } else { return purchaseTransactionBuilder_.getMessage(); } } /** + * + * *
                * Optional. A transaction represents the entire purchase transaction.
                * Required for `purchase-complete` events. Optional for `checkout-start`
                * events. Other event types should not set this field.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPurchaseTransaction(com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction value) { + public Builder setPurchaseTransaction( + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction value) { if (purchaseTransactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2449,13 +2811,17 @@ public Builder setPurchaseTransaction(com.google.cloud.recommendationengine.v1be return this; } /** + * + * *
                * Optional. A transaction represents the entire purchase transaction.
                * Required for `purchase-complete` events. Optional for `checkout-start`
                * events. Other event types should not set this field.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPurchaseTransaction( com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder builderForValue) { @@ -2469,19 +2835,27 @@ public Builder setPurchaseTransaction( return this; } /** + * + * *
                * Optional. A transaction represents the entire purchase transaction.
                * Required for `purchase-complete` events. Optional for `checkout-start`
                * events. Other event types should not set this field.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergePurchaseTransaction(com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction value) { + public Builder mergePurchaseTransaction( + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction value) { if (purchaseTransactionBuilder_ == null) { if (purchaseTransaction_ != null) { purchaseTransaction_ = - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.newBuilder(purchaseTransaction_).mergeFrom(value).buildPartial(); + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.newBuilder( + purchaseTransaction_) + .mergeFrom(value) + .buildPartial(); } else { purchaseTransaction_ = value; } @@ -2493,13 +2867,17 @@ public Builder mergePurchaseTransaction(com.google.cloud.recommendationengine.v1 return this; } /** + * + * *
                * Optional. A transaction represents the entire purchase transaction.
                * Required for `purchase-complete` events. Optional for `checkout-start`
                * events. Other event types should not set this field.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPurchaseTransaction() { if (purchaseTransactionBuilder_ == null) { @@ -2513,61 +2891,79 @@ public Builder clearPurchaseTransaction() { return this; } /** + * + * *
                * Optional. A transaction represents the entire purchase transaction.
                * Required for `purchase-complete` events. Optional for `checkout-start`
                * events. Other event types should not set this field.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder getPurchaseTransactionBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder + getPurchaseTransactionBuilder() { + onChanged(); return getPurchaseTransactionFieldBuilder().getBuilder(); } /** + * + * *
                * Optional. A transaction represents the entire purchase transaction.
                * Required for `purchase-complete` events. Optional for `checkout-start`
                * events. Other event types should not set this field.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder getPurchaseTransactionOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder + getPurchaseTransactionOrBuilder() { if (purchaseTransactionBuilder_ != null) { return purchaseTransactionBuilder_.getMessageOrBuilder(); } else { - return purchaseTransaction_ == null ? - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.getDefaultInstance() : purchaseTransaction_; + return purchaseTransaction_ == null + ? com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.getDefaultInstance() + : purchaseTransaction_; } } /** + * + * *
                * Optional. A transaction represents the entire purchase transaction.
                * Required for `purchase-complete` events. Optional for `checkout-start`
                * events. Other event types should not set this field.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction, com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder, com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder> + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction, + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder, + com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder> getPurchaseTransactionFieldBuilder() { if (purchaseTransactionBuilder_ == null) { - purchaseTransactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction, com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder, com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder>( - getPurchaseTransaction(), - getParentForChildren(), - isClean()); + purchaseTransactionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction, + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder, + com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder>( + getPurchaseTransaction(), getParentForChildren(), isClean()); purchaseTransaction_ = null; } return purchaseTransactionBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2577,30 +2973,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.ProductEventDetail) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.ProductEventDetail) - private static final com.google.cloud.recommendationengine.v1beta1.ProductEventDetail DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.ProductEventDetail + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.ProductEventDetail(); } - public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.ProductEventDetail + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProductEventDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProductEventDetail(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductEventDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProductEventDetail(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2612,9 +3010,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetailOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetailOrBuilder.java similarity index 78% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetailOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetailOrBuilder.java index 855af76b..c4a54864 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetailOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/ProductEventDetailOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; -public interface ProductEventDetailOrBuilder extends +public interface ProductEventDetailOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.ProductEventDetail) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required for `search` events. Other event types should not set this field.
              * The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
              * 
          * * string search_query = 1; + * * @return The searchQuery. */ java.lang.String getSearchQuery(); /** + * + * *
              * Required for `search` events. Other event types should not set this field.
              * The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
              * 
          * * string search_query = 1; + * * @return The bytes for searchQuery. */ - com.google.protobuf.ByteString - getSearchQueryBytes(); + com.google.protobuf.ByteString getSearchQueryBytes(); /** + * + * *
              * Required for `category-page-view` events. Other event types should not set
              * this field.
          @@ -39,11 +62,15 @@ public interface ProductEventDetailOrBuilder extends
              * categories : ["Sales", "2017 Black Friday Deals"].
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ - java.util.List + java.util.List getPageCategoriesList(); /** + * + * *
              * Required for `category-page-view` events. Other event types should not set
              * this field.
          @@ -53,10 +80,15 @@ public interface ProductEventDetailOrBuilder extends
              * categories : ["Sales", "2017 Black Friday Deals"].
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getPageCategories(int index); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy getPageCategories( + int index); /** + * + * *
              * Required for `category-page-view` events. Other event types should not set
              * this field.
          @@ -66,10 +98,14 @@ public interface ProductEventDetailOrBuilder extends
              * categories : ["Sales", "2017 Black Friday Deals"].
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ int getPageCategoriesCount(); /** + * + * *
              * Required for `category-page-view` events. Other event types should not set
              * this field.
          @@ -79,11 +115,17 @@ public interface ProductEventDetailOrBuilder extends
              * categories : ["Sales", "2017 Black Friday Deals"].
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder> getPageCategoriesOrBuilderList(); /** + * + * *
              * Required for `category-page-view` events. Other event types should not set
              * this field.
          @@ -93,12 +135,16 @@ public interface ProductEventDetailOrBuilder extends
              * categories : ["Sales", "2017 Black Friday Deals"].
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * + * repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2; + * */ - com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder getPageCategoriesOrBuilder( - int index); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBuilder + getPageCategoriesOrBuilder(int index); /** + * + * *
              * The main product details related to the event.
              * This field is required for the following event types:
          @@ -120,11 +166,14 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBui
              * * `search`
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ - java.util.List + java.util.List getProductDetailsList(); /** + * + * *
              * The main product details related to the event.
              * This field is required for the following event types:
          @@ -146,10 +195,13 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBui
              * * `search`
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ com.google.cloud.recommendationengine.v1beta1.ProductDetail getProductDetails(int index); /** + * + * *
              * The main product details related to the event.
              * This field is required for the following event types:
          @@ -171,10 +223,13 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBui
              * * `search`
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ int getProductDetailsCount(); /** + * + * *
              * The main product details related to the event.
              * This field is required for the following event types:
          @@ -196,11 +251,14 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBui
              * * `search`
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ - java.util.List + java.util.List getProductDetailsOrBuilderList(); /** + * + * *
              * The main product details related to the event.
              * This field is required for the following event types:
          @@ -222,12 +280,15 @@ com.google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchyOrBui
              * * `search`
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3; + * */ com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder getProductDetailsOrBuilder( int index); /** + * + * *
              * Required for `add-to-list` and `remove-from-list` events. The id or name of
              * the list that the item is being added to or removed from. Other event types
          @@ -235,10 +296,13 @@ com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder getProductD
              * 
          * * string list_id = 4; + * * @return The listId. */ java.lang.String getListId(); /** + * + * *
              * Required for `add-to-list` and `remove-from-list` events. The id or name of
              * the list that the item is being added to or removed from. Other event types
          @@ -246,12 +310,14 @@ com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder getProductD
              * 
          * * string list_id = 4; + * * @return The bytes for listId. */ - com.google.protobuf.ByteString - getListIdBytes(); + com.google.protobuf.ByteString getListIdBytes(); /** + * + * *
              * Optional. The id or name of the associated shopping cart. This id is used
              * to associate multiple items added or present in the cart before purchase.
          @@ -260,10 +326,13 @@ com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder getProductD
              * 
          * * string cart_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The cartId. */ java.lang.String getCartId(); /** + * + * *
              * Optional. The id or name of the associated shopping cart. This id is used
              * to associate multiple items added or present in the cart before purchase.
          @@ -272,41 +341,56 @@ com.google.cloud.recommendationengine.v1beta1.ProductDetailOrBuilder getProductD
              * 
          * * string cart_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for cartId. */ - com.google.protobuf.ByteString - getCartIdBytes(); + com.google.protobuf.ByteString getCartIdBytes(); /** + * + * *
              * Optional. A transaction represents the entire purchase transaction.
              * Required for `purchase-complete` events. Optional for `checkout-start`
              * events. Other event types should not set this field.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the purchaseTransaction field is set. */ boolean hasPurchaseTransaction(); /** + * + * *
              * Optional. A transaction represents the entire purchase transaction.
              * Required for `purchase-complete` events. Optional for `checkout-start`
              * events. Other event types should not set this field.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The purchaseTransaction. */ com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction getPurchaseTransaction(); /** + * + * *
              * Optional. A transaction represents the entire purchase transaction.
              * Required for `purchase-complete` events. Optional for `checkout-start`
              * events. Other event types should not set this field.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder getPurchaseTransactionOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder + getPurchaseTransactionOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransaction.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransaction.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransaction.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransaction.java index 10c2bca1..8ee6dc08 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransaction.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransaction.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * A transaction represents the entire purchase transaction.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PurchaseTransaction} */ -public final class PurchaseTransaction extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PurchaseTransaction extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.PurchaseTransaction) PurchaseTransactionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PurchaseTransaction.newBuilder() to construct. private PurchaseTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PurchaseTransaction() { id_ = ""; currencyCode_ = ""; @@ -26,16 +44,15 @@ private PurchaseTransaction() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PurchaseTransaction(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PurchaseTransaction( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,56 +72,58 @@ private PurchaseTransaction( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 21: { - - revenue_ = input.readFloat(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - taxes_ = com.google.protobuf.MapField.newMapField( - TaxesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + id_ = s; + break; } - com.google.protobuf.MapEntry - taxes__ = input.readMessage( - TaxesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - taxes_.getMutableMap().put( - taxes__.getKey(), taxes__.getValue()); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - costs_ = com.google.protobuf.MapField.newMapField( - CostsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + case 21: + { + revenue_ = input.readFloat(); + break; } - com.google.protobuf.MapEntry - costs__ = input.readMessage( - CostsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - costs_.getMutableMap().put( - costs__.getKey(), costs__.getValue()); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + taxes_ = + com.google.protobuf.MapField.newMapField(TaxesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry taxes__ = + input.readMessage( + TaxesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + taxes_.getMutableMap().put(taxes__.getKey(), taxes__.getValue()); + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + costs_ = + com.google.protobuf.MapField.newMapField(CostsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry costs__ = + input.readMessage( + CostsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + costs_.getMutableMap().put(costs__.getKey(), costs__.getValue()); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - currencyCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + currencyCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,48 +131,52 @@ private PurchaseTransaction( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetTaxes(); case 4: return internalGetCosts(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.class, com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder.class); + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.class, + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** + * + * *
              * Optional. The transaction ID with a length limit of 128 bytes.
              * 
          * * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The id. */ @java.lang.Override @@ -162,29 +185,29 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** + * + * *
              * Optional. The transaction ID with a length limit of 128 bytes.
              * 
          * * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -195,6 +218,8 @@ public java.lang.String getId() { public static final int REVENUE_FIELD_NUMBER = 2; private float revenue_; /** + * + * *
              * Required. Total revenue or grand total associated with the transaction.
              * This value include shipping, tax, or other adjustments to total revenue
          @@ -203,6 +228,7 @@ public java.lang.String getId() {
              * 
          * * float revenue = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The revenue. */ @java.lang.Override @@ -211,24 +237,23 @@ public float getRevenue() { } public static final int TAXES_FIELD_NUMBER = 3; + private static final class TaxesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Float> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.FLOAT, - 0F); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.FLOAT, + 0F); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Float> taxes_; - private com.google.protobuf.MapField - internalGetTaxes() { + + private com.google.protobuf.MapField taxes_; + + private com.google.protobuf.MapField internalGetTaxes() { if (taxes_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TaxesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(TaxesDefaultEntryHolder.defaultEntry); } return taxes_; } @@ -237,28 +262,30 @@ public int getTaxesCount() { return internalGetTaxes().getMap().size(); } /** + * + * *
              * Optional. All the taxes associated with the transaction.
              * 
          * * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - @java.lang.Override - public boolean containsTaxes( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsTaxes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetTaxes().getMap().containsKey(key); } - /** - * Use {@link #getTaxesMap()} instead. - */ + /** Use {@link #getTaxesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTaxes() { return getTaxesMap(); } /** + * + * *
              * Optional. All the taxes associated with the transaction.
              * 
          @@ -266,11 +293,12 @@ public java.util.Map getTaxes() { * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getTaxesMap() { return internalGetTaxes().getMap(); } /** + * + * *
              * Optional. All the taxes associated with the transaction.
              * 
          @@ -278,16 +306,16 @@ public java.util.Map getTaxesMap() { * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public float getTaxesOrDefault( - java.lang.String key, - float defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTaxes().getMap(); + public float getTaxesOrDefault(java.lang.String key, float defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTaxes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
              * Optional. All the taxes associated with the transaction.
              * 
          @@ -295,12 +323,11 @@ public float getTaxesOrDefault( * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public float getTaxesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTaxes().getMap(); + public float getTaxesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTaxes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -308,24 +335,23 @@ public float getTaxesOrThrow( } public static final int COSTS_FIELD_NUMBER = 4; + private static final class CostsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Float> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.FLOAT, - 0F); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.FLOAT, + 0F); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Float> costs_; - private com.google.protobuf.MapField - internalGetCosts() { + + private com.google.protobuf.MapField costs_; + + private com.google.protobuf.MapField internalGetCosts() { if (costs_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CostsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(CostsDefaultEntryHolder.defaultEntry); } return costs_; } @@ -334,6 +360,8 @@ public int getCostsCount() { return internalGetCosts().getMap().size(); } /** + * + * *
              * Optional. All the costs associated with the product. These can be
              * manufacturing costs, shipping expenses not borne by the end user, or any
          @@ -348,22 +376,22 @@ public int getCostsCount() {
              *
              * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
              */
          -
             @java.lang.Override
          -  public boolean containsCosts(
          -      java.lang.String key) {
          -    if (key == null) { throw new NullPointerException("map key"); }
          +  public boolean containsCosts(java.lang.String key) {
          +    if (key == null) {
          +      throw new NullPointerException("map key");
          +    }
               return internalGetCosts().getMap().containsKey(key);
             }
          -  /**
          -   * Use {@link #getCostsMap()} instead.
          -   */
          +  /** Use {@link #getCostsMap()} instead. */
             @java.lang.Override
             @java.lang.Deprecated
             public java.util.Map getCosts() {
               return getCostsMap();
             }
             /**
          +   *
          +   *
              * 
              * Optional. All the costs associated with the product. These can be
              * manufacturing costs, shipping expenses not borne by the end user, or any
          @@ -379,11 +407,12 @@ public java.util.Map getCosts() {
              * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
              */
             @java.lang.Override
          -
             public java.util.Map getCostsMap() {
               return internalGetCosts().getMap();
             }
             /**
          +   *
          +   *
              * 
              * Optional. All the costs associated with the product. These can be
              * manufacturing costs, shipping expenses not borne by the end user, or any
          @@ -399,16 +428,16 @@ public java.util.Map getCostsMap() {
              * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
              */
             @java.lang.Override
          -
          -  public float getCostsOrDefault(
          -      java.lang.String key,
          -      float defaultValue) {
          -    if (key == null) { throw new NullPointerException("map key"); }
          -    java.util.Map map =
          -        internalGetCosts().getMap();
          +  public float getCostsOrDefault(java.lang.String key, float defaultValue) {
          +    if (key == null) {
          +      throw new NullPointerException("map key");
          +    }
          +    java.util.Map map = internalGetCosts().getMap();
               return map.containsKey(key) ? map.get(key) : defaultValue;
             }
             /**
          +   *
          +   *
              * 
              * Optional. All the costs associated with the product. These can be
              * manufacturing costs, shipping expenses not borne by the end user, or any
          @@ -424,12 +453,11 @@ public float getCostsOrDefault(
              * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
              */
             @java.lang.Override
          -
          -  public float getCostsOrThrow(
          -      java.lang.String key) {
          -    if (key == null) { throw new NullPointerException("map key"); }
          -    java.util.Map map =
          -        internalGetCosts().getMap();
          +  public float getCostsOrThrow(java.lang.String key) {
          +    if (key == null) {
          +      throw new NullPointerException("map key");
          +    }
          +    java.util.Map map = internalGetCosts().getMap();
               if (!map.containsKey(key)) {
                 throw new java.lang.IllegalArgumentException();
               }
          @@ -439,12 +467,15 @@ public float getCostsOrThrow(
             public static final int CURRENCY_CODE_FIELD_NUMBER = 6;
             private volatile java.lang.Object currencyCode_;
             /**
          +   *
          +   *
              * 
              * Required. Currency code. Use three-character ISO-4217 code. This field
              * is not required if the event type is `refund`.
              * 
          * * string currency_code = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The currencyCode. */ @java.lang.Override @@ -453,30 +484,30 @@ public java.lang.String getCurrencyCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; } } /** + * + * *
              * Required. Currency code. Use three-character ISO-4217 code. This field
              * is not required if the event type is `refund`.
              * 
          * * string currency_code = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for currencyCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getCurrencyCodeBytes() { + public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -485,6 +516,7 @@ public java.lang.String getCurrencyCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -496,26 +528,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (java.lang.Float.floatToRawIntBits(revenue_) != 0) { output.writeFloat(2, revenue_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetTaxes(), - TaxesDefaultEntryHolder.defaultEntry, - 3); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetCosts(), - CostsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetTaxes(), TaxesDefaultEntryHolder.defaultEntry, 3); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetCosts(), CostsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, currencyCode_); } @@ -532,28 +555,27 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (java.lang.Float.floatToRawIntBits(revenue_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, revenue_); - } - for (java.util.Map.Entry entry - : internalGetTaxes().getMap().entrySet()) { - com.google.protobuf.MapEntry - taxes__ = TaxesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, taxes__); - } - for (java.util.Map.Entry entry - : internalGetCosts().getMap().entrySet()) { - com.google.protobuf.MapEntry - costs__ = CostsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, costs__); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, revenue_); + } + for (java.util.Map.Entry entry : + internalGetTaxes().getMap().entrySet()) { + com.google.protobuf.MapEntry taxes__ = + TaxesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, taxes__); + } + for (java.util.Map.Entry entry : + internalGetCosts().getMap().entrySet()) { + com.google.protobuf.MapEntry costs__ = + CostsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, costs__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, currencyCode_); @@ -566,24 +588,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction other = (com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction) obj; + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction other = + (com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction) obj; - if (!getId() - .equals(other.getId())) return false; + if (!getId().equals(other.getId())) return false; if (java.lang.Float.floatToIntBits(getRevenue()) - != java.lang.Float.floatToIntBits( - other.getRevenue())) return false; - if (!internalGetTaxes().equals( - other.internalGetTaxes())) return false; - if (!internalGetCosts().equals( - other.internalGetCosts())) return false; - if (!getCurrencyCode() - .equals(other.getCurrencyCode())) return false; + != java.lang.Float.floatToIntBits(other.getRevenue())) return false; + if (!internalGetTaxes().equals(other.internalGetTaxes())) return false; + if (!internalGetCosts().equals(other.internalGetCosts())) return false; + if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -598,8 +616,7 @@ public int hashCode() { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + REVENUE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRevenue()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRevenue()); if (!internalGetTaxes().getMap().isEmpty()) { hash = (37 * hash) + TAXES_FIELD_NUMBER; hash = (53 * hash) + internalGetTaxes().hashCode(); @@ -616,160 +633,169 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * A transaction represents the entire purchase transaction.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PurchaseTransaction} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.PurchaseTransaction) com.google.cloud.recommendationengine.v1beta1.PurchaseTransactionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetTaxes(); case 4: return internalGetCosts(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 3: return internalGetMutableTaxes(); case 4: return internalGetMutableCosts(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.class, com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder.class); + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.class, + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.Builder.class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -785,13 +811,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction + getDefaultInstanceForType() { return com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.getDefaultInstance(); } @@ -806,7 +833,8 @@ public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction build() @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction buildPartial() { - com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction result = new com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction(this); + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction result = + new com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.revenue_ = revenue_; @@ -823,46 +851,50 @@ public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction)other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction other) { - if (other == com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction.getDefaultInstance()) + return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); @@ -870,10 +902,8 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PurchaseT if (other.getRevenue() != 0F) { setRevenue(other.getRevenue()); } - internalGetMutableTaxes().mergeFrom( - other.internalGetTaxes()); - internalGetMutableCosts().mergeFrom( - other.internalGetCosts()); + internalGetMutableTaxes().mergeFrom(other.internalGetTaxes()); + internalGetMutableCosts().mergeFrom(other.internalGetCosts()); if (!other.getCurrencyCode().isEmpty()) { currencyCode_ = other.currencyCode_; onChanged(); @@ -897,7 +927,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -906,22 +938,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object id_ = ""; /** + * + * *
                * Optional. The transaction ID with a length limit of 128 bytes.
                * 
          * * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -930,20 +965,21 @@ public java.lang.String getId() { } } /** + * + * *
                * Optional. The transaction ID with a length limit of 128 bytes.
                * 
          * * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -951,61 +987,70 @@ public java.lang.String getId() { } } /** + * + * *
                * Optional. The transaction ID with a length limit of 128 bytes.
                * 
          * * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** + * + * *
                * Optional. The transaction ID with a length limit of 128 bytes.
                * 
          * * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
                * Optional. The transaction ID with a length limit of 128 bytes.
                * 
          * * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; } - private float revenue_ ; + private float revenue_; /** + * + * *
                * Required. Total revenue or grand total associated with the transaction.
                * This value include shipping, tax, or other adjustments to total revenue
          @@ -1014,6 +1059,7 @@ public Builder setIdBytes(
                * 
          * * float revenue = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The revenue. */ @java.lang.Override @@ -1021,6 +1067,8 @@ public float getRevenue() { return revenue_; } /** + * + * *
                * Required. Total revenue or grand total associated with the transaction.
                * This value include shipping, tax, or other adjustments to total revenue
          @@ -1029,16 +1077,19 @@ public float getRevenue() {
                * 
          * * float revenue = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The revenue to set. * @return This builder for chaining. */ public Builder setRevenue(float value) { - + revenue_ = value; onChanged(); return this; } /** + * + * *
                * Required. Total revenue or grand total associated with the transaction.
                * This value include shipping, tax, or other adjustments to total revenue
          @@ -1047,31 +1098,31 @@ public Builder setRevenue(float value) {
                * 
          * * float revenue = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRevenue() { - + revenue_ = 0F; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Float> taxes_; - private com.google.protobuf.MapField - internalGetTaxes() { + private com.google.protobuf.MapField taxes_; + + private com.google.protobuf.MapField internalGetTaxes() { if (taxes_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TaxesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(TaxesDefaultEntryHolder.defaultEntry); } return taxes_; } + private com.google.protobuf.MapField - internalGetMutableTaxes() { - onChanged();; + internalGetMutableTaxes() { + onChanged(); + ; if (taxes_ == null) { - taxes_ = com.google.protobuf.MapField.newMapField( - TaxesDefaultEntryHolder.defaultEntry); + taxes_ = com.google.protobuf.MapField.newMapField(TaxesDefaultEntryHolder.defaultEntry); } if (!taxes_.isMutable()) { taxes_ = taxes_.copy(); @@ -1083,28 +1134,30 @@ public int getTaxesCount() { return internalGetTaxes().getMap().size(); } /** + * + * *
                * Optional. All the taxes associated with the transaction.
                * 
          * * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - @java.lang.Override - public boolean containsTaxes( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsTaxes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetTaxes().getMap().containsKey(key); } - /** - * Use {@link #getTaxesMap()} instead. - */ + /** Use {@link #getTaxesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTaxes() { return getTaxesMap(); } /** + * + * *
                * Optional. All the taxes associated with the transaction.
                * 
          @@ -1112,11 +1165,12 @@ public java.util.Map getTaxes() { * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getTaxesMap() { return internalGetTaxes().getMap(); } /** + * + * *
                * Optional. All the taxes associated with the transaction.
                * 
          @@ -1124,16 +1178,16 @@ public java.util.Map getTaxesMap() { * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public float getTaxesOrDefault( - java.lang.String key, - float defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTaxes().getMap(); + public float getTaxesOrDefault(java.lang.String key, float defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTaxes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
                * Optional. All the taxes associated with the transaction.
                * 
          @@ -1141,12 +1195,11 @@ public float getTaxesOrDefault( * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public float getTaxesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTaxes().getMap(); + public float getTaxesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTaxes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1154,80 +1207,76 @@ public float getTaxesOrThrow( } public Builder clearTaxes() { - internalGetMutableTaxes().getMutableMap() - .clear(); + internalGetMutableTaxes().getMutableMap().clear(); return this; } /** + * + * *
                * Optional. All the taxes associated with the transaction.
                * 
          * * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder removeTaxes( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableTaxes().getMutableMap() - .remove(key); + public Builder removeTaxes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableTaxes().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableTaxes() { + public java.util.Map getMutableTaxes() { return internalGetMutableTaxes().getMutableMap(); } /** + * + * *
                * Optional. All the taxes associated with the transaction.
                * 
          * * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putTaxes( - java.lang.String key, - float value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableTaxes().getMutableMap() - .put(key, value); + public Builder putTaxes(java.lang.String key, float value) { + if (key == null) { + throw new NullPointerException("map key"); + } + + internalGetMutableTaxes().getMutableMap().put(key, value); return this; } /** + * + * *
                * Optional. All the taxes associated with the transaction.
                * 
          * * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder putAllTaxes( - java.util.Map values) { - internalGetMutableTaxes().getMutableMap() - .putAll(values); + public Builder putAllTaxes(java.util.Map values) { + internalGetMutableTaxes().getMutableMap().putAll(values); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Float> costs_; - private com.google.protobuf.MapField - internalGetCosts() { + private com.google.protobuf.MapField costs_; + + private com.google.protobuf.MapField internalGetCosts() { if (costs_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CostsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(CostsDefaultEntryHolder.defaultEntry); } return costs_; } + private com.google.protobuf.MapField - internalGetMutableCosts() { - onChanged();; + internalGetMutableCosts() { + onChanged(); + ; if (costs_ == null) { - costs_ = com.google.protobuf.MapField.newMapField( - CostsDefaultEntryHolder.defaultEntry); + costs_ = com.google.protobuf.MapField.newMapField(CostsDefaultEntryHolder.defaultEntry); } if (!costs_.isMutable()) { costs_ = costs_.copy(); @@ -1239,6 +1288,8 @@ public int getCostsCount() { return internalGetCosts().getMap().size(); } /** + * + * *
                * Optional. All the costs associated with the product. These can be
                * manufacturing costs, shipping expenses not borne by the end user, or any
          @@ -1253,22 +1304,22 @@ public int getCostsCount() {
                *
                * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
                */
          -
               @java.lang.Override
          -    public boolean containsCosts(
          -        java.lang.String key) {
          -      if (key == null) { throw new NullPointerException("map key"); }
          +    public boolean containsCosts(java.lang.String key) {
          +      if (key == null) {
          +        throw new NullPointerException("map key");
          +      }
                 return internalGetCosts().getMap().containsKey(key);
               }
          -    /**
          -     * Use {@link #getCostsMap()} instead.
          -     */
          +    /** Use {@link #getCostsMap()} instead. */
               @java.lang.Override
               @java.lang.Deprecated
               public java.util.Map getCosts() {
                 return getCostsMap();
               }
               /**
          +     *
          +     *
                * 
                * Optional. All the costs associated with the product. These can be
                * manufacturing costs, shipping expenses not borne by the end user, or any
          @@ -1284,11 +1335,12 @@ public java.util.Map getCosts() {
                * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
                */
               @java.lang.Override
          -
               public java.util.Map getCostsMap() {
                 return internalGetCosts().getMap();
               }
               /**
          +     *
          +     *
                * 
                * Optional. All the costs associated with the product. These can be
                * manufacturing costs, shipping expenses not borne by the end user, or any
          @@ -1304,16 +1356,16 @@ public java.util.Map getCostsMap() {
                * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
                */
               @java.lang.Override
          -
          -    public float getCostsOrDefault(
          -        java.lang.String key,
          -        float defaultValue) {
          -      if (key == null) { throw new NullPointerException("map key"); }
          -      java.util.Map map =
          -          internalGetCosts().getMap();
          +    public float getCostsOrDefault(java.lang.String key, float defaultValue) {
          +      if (key == null) {
          +        throw new NullPointerException("map key");
          +      }
          +      java.util.Map map = internalGetCosts().getMap();
                 return map.containsKey(key) ? map.get(key) : defaultValue;
               }
               /**
          +     *
          +     *
                * 
                * Optional. All the costs associated with the product. These can be
                * manufacturing costs, shipping expenses not borne by the end user, or any
          @@ -1329,12 +1381,11 @@ public float getCostsOrDefault(
                * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
                */
               @java.lang.Override
          -
          -    public float getCostsOrThrow(
          -        java.lang.String key) {
          -      if (key == null) { throw new NullPointerException("map key"); }
          -      java.util.Map map =
          -          internalGetCosts().getMap();
          +    public float getCostsOrThrow(java.lang.String key) {
          +      if (key == null) {
          +        throw new NullPointerException("map key");
          +      }
          +      java.util.Map map = internalGetCosts().getMap();
                 if (!map.containsKey(key)) {
                   throw new java.lang.IllegalArgumentException();
                 }
          @@ -1342,11 +1393,12 @@ public float getCostsOrThrow(
               }
           
               public Builder clearCosts() {
          -      internalGetMutableCosts().getMutableMap()
          -          .clear();
          +      internalGetMutableCosts().getMutableMap().clear();
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Optional. All the costs associated with the product. These can be
                * manufacturing costs, shipping expenses not borne by the end user, or any
          @@ -1361,23 +1413,21 @@ public Builder clearCosts() {
                *
                * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
                */
          -
          -    public Builder removeCosts(
          -        java.lang.String key) {
          -      if (key == null) { throw new NullPointerException("map key"); }
          -      internalGetMutableCosts().getMutableMap()
          -          .remove(key);
          +    public Builder removeCosts(java.lang.String key) {
          +      if (key == null) {
          +        throw new NullPointerException("map key");
          +      }
          +      internalGetMutableCosts().getMutableMap().remove(key);
                 return this;
               }
          -    /**
          -     * Use alternate mutation accessors instead.
          -     */
          +    /** Use alternate mutation accessors instead. */
               @java.lang.Deprecated
          -    public java.util.Map
          -    getMutableCosts() {
          +    public java.util.Map getMutableCosts() {
                 return internalGetMutableCosts().getMutableMap();
               }
               /**
          +     *
          +     *
                * 
                * Optional. All the costs associated with the product. These can be
                * manufacturing costs, shipping expenses not borne by the end user, or any
          @@ -1392,16 +1442,17 @@ public Builder removeCosts(
                *
                * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
                */
          -    public Builder putCosts(
          -        java.lang.String key,
          -        float value) {
          -      if (key == null) { throw new NullPointerException("map key"); }
          -      
          -      internalGetMutableCosts().getMutableMap()
          -          .put(key, value);
          +    public Builder putCosts(java.lang.String key, float value) {
          +      if (key == null) {
          +        throw new NullPointerException("map key");
          +      }
          +
          +      internalGetMutableCosts().getMutableMap().put(key, value);
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Optional. All the costs associated with the product. These can be
                * manufacturing costs, shipping expenses not borne by the end user, or any
          @@ -1416,29 +1467,28 @@ public Builder putCosts(
                *
                * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
                */
          -
          -    public Builder putAllCosts(
          -        java.util.Map values) {
          -      internalGetMutableCosts().getMutableMap()
          -          .putAll(values);
          +    public Builder putAllCosts(java.util.Map values) {
          +      internalGetMutableCosts().getMutableMap().putAll(values);
                 return this;
               }
           
               private java.lang.Object currencyCode_ = "";
               /**
          +     *
          +     *
                * 
                * Required. Currency code. Use three-character ISO-4217 code. This field
                * is not required if the event type is `refund`.
                * 
          * * string currency_code = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The currencyCode. */ public java.lang.String getCurrencyCode() { java.lang.Object ref = currencyCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; @@ -1447,21 +1497,22 @@ public java.lang.String getCurrencyCode() { } } /** + * + * *
                * Required. Currency code. Use three-character ISO-4217 code. This field
                * is not required if the event type is `refund`.
                * 
          * * string currency_code = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for currencyCode. */ - public com.google.protobuf.ByteString - getCurrencyCodeBytes() { + public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -1469,64 +1520,71 @@ public java.lang.String getCurrencyCode() { } } /** + * + * *
                * Required. Currency code. Use three-character ISO-4217 code. This field
                * is not required if the event type is `refund`.
                * 
          * * string currency_code = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCode( - java.lang.String value) { + public Builder setCurrencyCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + currencyCode_ = value; onChanged(); return this; } /** + * + * *
                * Required. Currency code. Use three-character ISO-4217 code. This field
                * is not required if the event type is `refund`.
                * 
          * * string currency_code = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCurrencyCode() { - + currencyCode_ = getDefaultInstance().getCurrencyCode(); onChanged(); return this; } /** + * + * *
                * Required. Currency code. Use three-character ISO-4217 code. This field
                * is not required if the event type is `refund`.
                * 
          * * string currency_code = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + currencyCode_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1536,30 +1594,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.PurchaseTransaction) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.PurchaseTransaction) - private static final com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction(); } - public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PurchaseTransaction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PurchaseTransaction(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurchaseTransaction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurchaseTransaction(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1571,9 +1631,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.PurchaseTransaction + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransactionOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransactionOrBuilder.java similarity index 79% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransactionOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransactionOrBuilder.java index f690f37a..64493634 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransactionOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurchaseTransactionOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; -public interface PurchaseTransactionOrBuilder extends +public interface PurchaseTransactionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.PurchaseTransaction) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Optional. The transaction ID with a length limit of 128 bytes.
              * 
          * * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The id. */ java.lang.String getId(); /** + * + * *
              * Optional. The transaction ID with a length limit of 128 bytes.
              * 
          * * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
              * Required. Total revenue or grand total associated with the transaction.
              * This value include shipping, tax, or other adjustments to total revenue
          @@ -36,11 +59,14 @@ public interface PurchaseTransactionOrBuilder extends
              * 
          * * float revenue = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The revenue. */ float getRevenue(); /** + * + * *
              * Optional. All the taxes associated with the transaction.
              * 
          @@ -49,52 +75,52 @@ public interface PurchaseTransactionOrBuilder extends */ int getTaxesCount(); /** + * + * *
              * Optional. All the taxes associated with the transaction.
              * 
          * * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean containsTaxes( - java.lang.String key); - /** - * Use {@link #getTaxesMap()} instead. - */ + boolean containsTaxes(java.lang.String key); + /** Use {@link #getTaxesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getTaxes(); + java.util.Map getTaxes(); /** + * + * *
              * Optional. All the taxes associated with the transaction.
              * 
          * * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map - getTaxesMap(); + java.util.Map getTaxesMap(); /** + * + * *
              * Optional. All the taxes associated with the transaction.
              * 
          * * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - - float getTaxesOrDefault( - java.lang.String key, - float defaultValue); + float getTaxesOrDefault(java.lang.String key, float defaultValue); /** + * + * *
              * Optional. All the taxes associated with the transaction.
              * 
          * * map<string, float> taxes = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - - float getTaxesOrThrow( - java.lang.String key); + float getTaxesOrThrow(java.lang.String key); /** + * + * *
              * Optional. All the costs associated with the product. These can be
              * manufacturing costs, shipping expenses not borne by the end user, or any
          @@ -111,6 +137,8 @@ float getTaxesOrThrow(
              */
             int getCostsCount();
             /**
          +   *
          +   *
              * 
              * Optional. All the costs associated with the product. These can be
              * manufacturing costs, shipping expenses not borne by the end user, or any
          @@ -125,15 +153,13 @@ float getTaxesOrThrow(
              *
              * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
              */
          -  boolean containsCosts(
          -      java.lang.String key);
          -  /**
          -   * Use {@link #getCostsMap()} instead.
          -   */
          +  boolean containsCosts(java.lang.String key);
          +  /** Use {@link #getCostsMap()} instead. */
             @java.lang.Deprecated
          -  java.util.Map
          -  getCosts();
          +  java.util.Map getCosts();
             /**
          +   *
          +   *
              * 
              * Optional. All the costs associated with the product. These can be
              * manufacturing costs, shipping expenses not borne by the end user, or any
          @@ -148,9 +174,10 @@ boolean containsCosts(
              *
              * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
              */
          -  java.util.Map
          -  getCostsMap();
          +  java.util.Map getCostsMap();
             /**
          +   *
          +   *
              * 
              * Optional. All the costs associated with the product. These can be
              * manufacturing costs, shipping expenses not borne by the end user, or any
          @@ -165,11 +192,10 @@ boolean containsCosts(
              *
              * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
              */
          -
          -  float getCostsOrDefault(
          -      java.lang.String key,
          -      float defaultValue);
          +  float getCostsOrDefault(java.lang.String key, float defaultValue);
             /**
          +   *
          +   *
              * 
              * Optional. All the costs associated with the product. These can be
              * manufacturing costs, shipping expenses not borne by the end user, or any
          @@ -184,29 +210,32 @@ float getCostsOrDefault(
              *
              * map<string, float> costs = 4 [(.google.api.field_behavior) = OPTIONAL];
              */
          -
          -  float getCostsOrThrow(
          -      java.lang.String key);
          +  float getCostsOrThrow(java.lang.String key);
           
             /**
          +   *
          +   *
              * 
              * Required. Currency code. Use three-character ISO-4217 code. This field
              * is not required if the event type is `refund`.
              * 
          * * string currency_code = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The currencyCode. */ java.lang.String getCurrencyCode(); /** + * + * *
              * Required. Currency code. Use three-character ISO-4217 code. This field
              * is not required if the event type is `refund`.
              * 
          * * string currency_code = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for currencyCode. */ - com.google.protobuf.ByteString - getCurrencyCodeBytes(); + com.google.protobuf.ByteString getCurrencyCodeBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadata.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadata.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadata.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadata.java index d2218dda..d58f29ff 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadata.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Metadata related to the progress of the PurgeUserEvents operation.
            * This will be returned by the google.longrunning.Operation.metadata field.
          @@ -11,31 +28,31 @@
            *
            * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata}
            */
          -public final class PurgeUserEventsMetadata extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class PurgeUserEventsMetadata extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata)
               PurgeUserEventsMetadataOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use PurgeUserEventsMetadata.newBuilder() to construct.
             private PurgeUserEventsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          +
             private PurgeUserEventsMetadata() {
               operationName_ = "";
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new PurgeUserEventsMetadata();
             }
           
             @java.lang.Override
          -  public final com.google.protobuf.UnknownFieldSet
          -  getUnknownFields() {
          +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
               return this.unknownFields;
             }
          +
             private PurgeUserEventsMetadata(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          @@ -54,32 +71,35 @@ private PurgeUserEventsMetadata(
                     case 0:
                       done = true;
                       break;
          -          case 10: {
          -            java.lang.String s = input.readStringRequireUtf8();
          +          case 10:
          +            {
          +              java.lang.String s = input.readStringRequireUtf8();
           
          -            operationName_ = s;
          -            break;
          -          }
          -          case 18: {
          -            com.google.protobuf.Timestamp.Builder subBuilder = null;
          -            if (createTime_ != null) {
          -              subBuilder = createTime_.toBuilder();
          +              operationName_ = s;
          +              break;
                       }
          -            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
          -            if (subBuilder != null) {
          -              subBuilder.mergeFrom(createTime_);
          -              createTime_ = subBuilder.buildPartial();
          +          case 18:
          +            {
          +              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;
                       }
          -
          -            break;
          -          }
          -          default: {
          -            if (!parseUnknownField(
          -                input, unknownFields, extensionRegistry, tag)) {
          -              done = true;
          +          default:
          +            {
          +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
          +                done = true;
          +              }
          +              break;
                       }
          -            break;
          -          }
                   }
                 }
               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          @@ -87,34 +107,39 @@ private PurgeUserEventsMetadata(
               } catch (com.google.protobuf.UninitializedMessageException e) {
                 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
               } catch (java.io.IOException e) {
          -      throw new com.google.protobuf.InvalidProtocolBufferException(
          -          e).setUnfinishedMessage(this);
          +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
               } finally {
                 this.unknownFields = unknownFields.build();
                 makeExtensionsImmutable();
               }
             }
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor;
          +
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass
          +        .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_fieldAccessorTable
          +    return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass
          +        .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.class, com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.Builder.class);
          +            com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.class,
          +            com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.Builder.class);
             }
           
             public static final int OPERATION_NAME_FIELD_NUMBER = 1;
             private volatile java.lang.Object operationName_;
             /**
          +   *
          +   *
              * 
              * The ID of the request / operation.
              * 
          * * string operation_name = 1; + * * @return The operationName. */ @java.lang.Override @@ -123,29 +148,29 @@ public java.lang.String getOperationName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationName_ = s; return s; } } /** + * + * *
              * The ID of the request / operation.
              * 
          * * string operation_name = 1; + * * @return The bytes for operationName. */ @java.lang.Override - public com.google.protobuf.ByteString - getOperationNameBytes() { + public com.google.protobuf.ByteString getOperationNameBytes() { java.lang.Object ref = operationName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operationName_ = b; return b; } else { @@ -156,11 +181,14 @@ public java.lang.String getOperationName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
              * Operation create time.
              * 
          * * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -168,11 +196,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
              * Operation create time.
              * 
          * * .google.protobuf.Timestamp create_time = 2; + * * @return The createTime. */ @java.lang.Override @@ -180,6 +211,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
              * Operation create time.
              * 
          @@ -192,6 +225,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,8 +237,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operationName_); } @@ -224,8 +257,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, operationName_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -235,19 +267,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata other = (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata) obj; + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata other = + (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata) obj; - if (!getOperationName() - .equals(other.getOperationName())) return false; + if (!getOperationName().equals(other.getOperationName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -272,96 +303,105 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Metadata related to the progress of the PurgeUserEvents operation.
              * This will be returned by the google.longrunning.Operation.metadata field.
          @@ -369,38 +409,40 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata)
                 com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadataOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass
          +          .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_fieldAccessorTable
          +      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass
          +          .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.class, com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.Builder.class);
          +              com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.class,
          +              com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.Builder.class);
               }
           
          -    // Construct using com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.newBuilder()
          +    // Construct using
          +    // com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.newBuilder()
               private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          +
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3
          -              .alwaysUseFieldBuilders) {
          -      }
          +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -416,14 +458,16 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass
          +          .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor;
               }
           
               @java.lang.Override
          -    public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata getDefaultInstanceForType() {
          -      return com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.getDefaultInstance();
          +    public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata
          +        getDefaultInstanceForType() {
          +      return com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata
          +          .getDefaultInstance();
               }
           
               @java.lang.Override
          @@ -437,7 +481,8 @@ public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata bui
           
               @java.lang.Override
               public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata buildPartial() {
          -      com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata result = new com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata(this);
          +      com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata result =
          +          new com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata(this);
                 result.operationName_ = operationName_;
                 if (createTimeBuilder_ == null) {
                   result.createTime_ = createTime_;
          @@ -452,46 +497,51 @@ public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata bui
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                 return super.setField(field, value);
               }
          +
               @java.lang.Override
          -    public Builder clearField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field) {
          +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                 return super.clearField(field);
               }
          +
               @java.lang.Override
          -    public Builder clearOneof(
          -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
          +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                 return super.clearOneof(oneof);
               }
          +
               @java.lang.Override
               public Builder setRepeatedField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        int index, java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                 return super.setRepeatedField(field, index, value);
               }
          +
               @java.lang.Override
               public Builder addRepeatedField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                 return super.addRepeatedField(field, value);
               }
          +
               @java.lang.Override
               public Builder mergeFrom(com.google.protobuf.Message other) {
                 if (other instanceof com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata) {
          -        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata)other);
          +        return mergeFrom(
          +            (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
                 }
               }
           
          -    public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata other) {
          -      if (other == com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata.getDefaultInstance()) return this;
          +    public Builder mergeFrom(
          +        com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata other) {
          +      if (other
          +          == com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata
          +              .getDefaultInstance()) return this;
                 if (!other.getOperationName().isEmpty()) {
                   operationName_ = other.operationName_;
                   onChanged();
          @@ -518,7 +568,9 @@ public Builder mergeFrom(
                 try {
                   parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          -        parsedMessage = (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata) e.getUnfinishedMessage();
          +        parsedMessage =
          +            (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata)
          +                e.getUnfinishedMessage();
                   throw e.unwrapIOException();
                 } finally {
                   if (parsedMessage != null) {
          @@ -530,18 +582,20 @@ public Builder mergeFrom(
           
               private java.lang.Object operationName_ = "";
               /**
          +     *
          +     *
                * 
                * The ID of the request / operation.
                * 
          * * string operation_name = 1; + * * @return The operationName. */ public java.lang.String getOperationName() { java.lang.Object ref = operationName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operationName_ = s; return s; @@ -550,20 +604,21 @@ public java.lang.String getOperationName() { } } /** + * + * *
                * The ID of the request / operation.
                * 
          * * string operation_name = 1; + * * @return The bytes for operationName. */ - public com.google.protobuf.ByteString - getOperationNameBytes() { + public com.google.protobuf.ByteString getOperationNameBytes() { java.lang.Object ref = operationName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operationName_ = b; return b; } else { @@ -571,54 +626,61 @@ public java.lang.String getOperationName() { } } /** + * + * *
                * The ID of the request / operation.
                * 
          * * string operation_name = 1; + * * @param value The operationName to set. * @return This builder for chaining. */ - public Builder setOperationName( - java.lang.String value) { + public Builder setOperationName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + operationName_ = value; onChanged(); return this; } /** + * + * *
                * The ID of the request / operation.
                * 
          * * string operation_name = 1; + * * @return This builder for chaining. */ public Builder clearOperationName() { - + operationName_ = getDefaultInstance().getOperationName(); onChanged(); return this; } /** + * + * *
                * The ID of the request / operation.
                * 
          * * string operation_name = 1; + * * @param value The bytes for operationName to set. * @return This builder for chaining. */ - public Builder setOperationNameBytes( - com.google.protobuf.ByteString value) { + public Builder setOperationNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operationName_ = value; onChanged(); return this; @@ -626,34 +688,47 @@ public Builder setOperationNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
                * Operation create time.
                * 
          * * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
                * Operation create time.
                * 
          * * .google.protobuf.Timestamp create_time = 2; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
                * Operation create time.
                * 
          @@ -674,14 +749,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                * Operation create time.
                * 
          * * .google.protobuf.Timestamp create_time = 2; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -692,6 +768,8 @@ public Builder setCreateTime( return this; } /** + * + * *
                * Operation create time.
                * 
          @@ -702,7 +780,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -714,6 +792,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                * Operation create time.
                * 
          @@ -732,6 +812,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
                * Operation create time.
                * 
          @@ -739,11 +821,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 2; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
                * Operation create time.
                * 
          @@ -754,11 +838,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
                * Operation create time.
                * 
          @@ -766,21 +853,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -790,30 +880,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata) - private static final com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata(); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PurgeUserEventsMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PurgeUserEventsMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeUserEventsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurgeUserEventsMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -825,9 +917,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadataOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadataOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadataOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadataOrBuilder.java index 6caa1db0..afe3fa06 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadataOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsMetadataOrBuilder.java @@ -1,51 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface PurgeUserEventsMetadataOrBuilder extends +public interface PurgeUserEventsMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * The ID of the request / operation.
              * 
          * * string operation_name = 1; + * * @return The operationName. */ java.lang.String getOperationName(); /** + * + * *
              * The ID of the request / operation.
              * 
          * * string operation_name = 1; + * * @return The bytes for operationName. */ - com.google.protobuf.ByteString - getOperationNameBytes(); + com.google.protobuf.ByteString getOperationNameBytes(); /** + * + * *
              * Operation create time.
              * 
          * * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
              * Operation create time.
              * 
          * * .google.protobuf.Timestamp create_time = 2; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
              * Operation create time.
              * 
          diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequest.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequest.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequest.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequest.java index e18ab3ca..9b5bc944 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequest.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Request message for PurgeUserEvents method.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest} */ -public final class PurgeUserEventsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PurgeUserEventsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) PurgeUserEventsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PurgeUserEventsRequest.newBuilder() to construct. private PurgeUserEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PurgeUserEventsRequest() { parent_ = ""; filter_ = ""; @@ -26,16 +44,15 @@ private PurgeUserEventsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PurgeUserEventsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PurgeUserEventsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private PurgeUserEventsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - force_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + case 24: + { + force_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,36 +104,43 @@ private PurgeUserEventsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.class, com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.class, + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
              * Required. The resource name of the event_store under which the events are
              * created. The format is
              * `projects/${projectId}/locations/global/catalogs/${catalogId}/eventStores/${eventStoreId}`
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,31 +149,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
              * Required. The resource name of the event_store under which the events are
              * created. The format is
              * `projects/${projectId}/locations/global/catalogs/${catalogId}/eventStores/${eventStoreId}`
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -158,6 +186,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
              * Required. The filter string to specify the events to be deleted. Empty
              * string filter is not allowed. This filter can also be used with
          @@ -180,6 +210,7 @@ public java.lang.String getParent() {
              * 
          * * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ @java.lang.Override @@ -188,14 +219,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
              * Required. The filter string to specify the events to be deleted. Empty
              * string filter is not allowed. This filter can also be used with
          @@ -218,16 +250,15 @@ public java.lang.String getFilter() {
              * 
          * * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -238,6 +269,8 @@ public java.lang.String getFilter() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_; /** + * + * *
              * Optional. The default value is false. Override this flag to true to
              * actually perform the purge. If the field is not set to true, a sampling of
          @@ -245,6 +278,7 @@ public java.lang.String getFilter() {
              * 
          * * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -253,6 +287,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,8 +299,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -291,8 +325,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -302,19 +335,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest other = (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) obj; + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest other = + (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getForce() - != other.getForce()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getForce() != other.getForce()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -331,142 +362,152 @@ public int hashCode() { hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Request message for PurgeUserEvents method.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.class, com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.class, + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.Builder.class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -480,14 +521,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest + .getDefaultInstance(); } @java.lang.Override @@ -501,7 +544,8 @@ public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest buil @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest result = new com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest(this); + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest result = + new com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.force_ = force_; @@ -513,46 +557,51 @@ public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest buil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest)other); + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest other) { - if (other == com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -583,7 +632,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -595,20 +646,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                * Required. The resource name of the event_store under which the events are
                * created. The format is
                * `projects/${projectId}/locations/global/catalogs/${catalogId}/eventStores/${eventStoreId}`
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -617,22 +672,25 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required. The resource name of the event_store under which the events are
                * created. The format is
                * `projects/${projectId}/locations/global/catalogs/${catalogId}/eventStores/${eventStoreId}`
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -640,60 +698,73 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required. The resource name of the event_store under which the events are
                * created. The format is
                * `projects/${projectId}/locations/global/catalogs/${catalogId}/eventStores/${eventStoreId}`
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                * Required. The resource name of the event_store under which the events are
                * created. The format is
                * `projects/${projectId}/locations/global/catalogs/${catalogId}/eventStores/${eventStoreId}`
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                * Required. The resource name of the event_store under which the events are
                * created. The format is
                * `projects/${projectId}/locations/global/catalogs/${catalogId}/eventStores/${eventStoreId}`
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -701,6 +772,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
                * Required. The filter string to specify the events to be deleted. Empty
                * string filter is not allowed. This filter can also be used with
          @@ -723,13 +796,13 @@ public Builder setParentBytes(
                * 
          * * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -738,6 +811,8 @@ public java.lang.String getFilter() { } } /** + * + * *
                * Required. The filter string to specify the events to be deleted. Empty
                * string filter is not allowed. This filter can also be used with
          @@ -760,15 +835,14 @@ public java.lang.String getFilter() {
                * 
          * * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -776,6 +850,8 @@ public java.lang.String getFilter() { } } /** + * + * *
                * Required. The filter string to specify the events to be deleted. Empty
                * string filter is not allowed. This filter can also be used with
          @@ -798,20 +874,22 @@ public java.lang.String getFilter() {
                * 
          * * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
                * Required. The filter string to specify the events to be deleted. Empty
                * string filter is not allowed. This filter can also be used with
          @@ -834,15 +912,18 @@ public Builder setFilter(
                * 
          * * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
                * Required. The filter string to specify the events to be deleted. Empty
                * string filter is not allowed. This filter can also be used with
          @@ -865,23 +946,25 @@ public Builder clearFilter() {
                * 
          * * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
                * Optional. The default value is false. Override this flag to true to
                * actually perform the purge. If the field is not set to true, a sampling of
          @@ -889,6 +972,7 @@ public Builder setFilterBytes(
                * 
          * * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -896,6 +980,8 @@ public boolean getForce() { return force_; } /** + * + * *
                * Optional. The default value is false. Override this flag to true to
                * actually perform the purge. If the field is not set to true, a sampling of
          @@ -903,16 +989,19 @@ public boolean getForce() {
                * 
          * * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** + * + * *
                * Optional. The default value is false. Override this flag to true to
                * actually perform the purge. If the field is not set to true, a sampling of
          @@ -920,17 +1009,18 @@ public Builder setForce(boolean value) {
                * 
          * * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -940,30 +1030,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) - private static final com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PurgeUserEventsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PurgeUserEventsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeUserEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurgeUserEventsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -975,9 +1067,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequestOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequestOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequestOrBuilder.java index a3f6e6e6..f11d9362 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequestOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface PurgeUserEventsRequestOrBuilder extends +public interface PurgeUserEventsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.PurgeUserEventsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required. The resource name of the event_store under which the events are
              * created. The format is
              * `projects/${projectId}/locations/global/catalogs/${catalogId}/eventStores/${eventStoreId}`
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
              * Required. The resource name of the event_store under which the events are
              * created. The format is
              * `projects/${projectId}/locations/global/catalogs/${catalogId}/eventStores/${eventStoreId}`
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
              * Required. The filter string to specify the events to be deleted. Empty
              * string filter is not allowed. This filter can also be used with
          @@ -54,10 +81,13 @@ public interface PurgeUserEventsRequestOrBuilder extends
              * 
          * * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
              * Required. The filter string to specify the events to be deleted. Empty
              * string filter is not allowed. This filter can also be used with
          @@ -80,12 +110,14 @@ public interface PurgeUserEventsRequestOrBuilder extends
              * 
          * * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
              * Optional. The default value is false. Override this flag to true to
              * actually perform the purge. If the field is not set to true, a sampling of
          @@ -93,6 +125,7 @@ public interface PurgeUserEventsRequestOrBuilder extends
              * 
          * * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponse.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponse.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponse.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponse.java index ca0b7244..cdea7abb 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponse.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Response of the PurgeUserEventsRequest. If the long running operation is
            * successfully done, then this message is returned by the
          @@ -12,31 +29,31 @@
            *
            * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse}
            */
          -public final class PurgeUserEventsResponse extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class PurgeUserEventsResponse extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse)
               PurgeUserEventsResponseOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use PurgeUserEventsResponse.newBuilder() to construct.
             private PurgeUserEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          +
             private PurgeUserEventsResponse() {
               userEventsSample_ = java.util.Collections.emptyList();
             }
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new PurgeUserEventsResponse();
             }
           
             @java.lang.Override
          -  public final com.google.protobuf.UnknownFieldSet
          -  getUnknownFields() {
          +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
               return this.unknownFields;
             }
          +
             private PurgeUserEventsResponse(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          @@ -56,27 +73,32 @@ private PurgeUserEventsResponse(
                     case 0:
                       done = true;
                       break;
          -          case 8: {
          -
          -            purgedEventsCount_ = input.readInt64();
          -            break;
          -          }
          -          case 18: {
          -            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          -              userEventsSample_ = new java.util.ArrayList();
          -              mutable_bitField0_ |= 0x00000001;
          +          case 8:
          +            {
          +              purgedEventsCount_ = input.readInt64();
          +              break;
                       }
          -            userEventsSample_.add(
          -                input.readMessage(com.google.cloud.recommendationengine.v1beta1.UserEvent.parser(), extensionRegistry));
          -            break;
          -          }
          -          default: {
          -            if (!parseUnknownField(
          -                input, unknownFields, extensionRegistry, tag)) {
          -              done = true;
          +          case 18:
          +            {
          +              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
          +                userEventsSample_ =
          +                    new java.util.ArrayList<
          +                        com.google.cloud.recommendationengine.v1beta1.UserEvent>();
          +                mutable_bitField0_ |= 0x00000001;
          +              }
          +              userEventsSample_.add(
          +                  input.readMessage(
          +                      com.google.cloud.recommendationengine.v1beta1.UserEvent.parser(),
          +                      extensionRegistry));
          +              break;
          +            }
          +          default:
          +            {
          +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
          +                done = true;
          +              }
          +              break;
                       }
          -            break;
          -          }
                   }
                 }
               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          @@ -84,8 +106,7 @@ private PurgeUserEventsResponse(
               } catch (com.google.protobuf.UninitializedMessageException e) {
                 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
               } catch (java.io.IOException e) {
          -      throw new com.google.protobuf.InvalidProtocolBufferException(
          -          e).setUnfinishedMessage(this);
          +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
               } finally {
                 if (((mutable_bitField0_ & 0x00000001) != 0)) {
                   userEventsSample_ = java.util.Collections.unmodifiableList(userEventsSample_);
          @@ -94,27 +115,33 @@ private PurgeUserEventsResponse(
                 makeExtensionsImmutable();
               }
             }
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor;
          +
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass
          +        .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_fieldAccessorTable
          +    return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass
          +        .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.class, com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.Builder.class);
          +            com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.class,
          +            com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.Builder.class);
             }
           
             public static final int PURGED_EVENTS_COUNT_FIELD_NUMBER = 1;
             private long purgedEventsCount_;
             /**
          +   *
          +   *
              * 
              * The total count of events purged as a result of the operation.
              * 
          * * int64 purged_events_count = 1; + * * @return The purgedEventsCount. */ @java.lang.Override @@ -125,69 +152,86 @@ public long getPurgedEventsCount() { public static final int USER_EVENTS_SAMPLE_FIELD_NUMBER = 2; private java.util.List userEventsSample_; /** + * + * *
              * A sampling of events deleted (or will be deleted) depending on the `force`
              * property in the request. Max of 500 items will be returned.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ @java.lang.Override - public java.util.List getUserEventsSampleList() { + public java.util.List + getUserEventsSampleList() { return userEventsSample_; } /** + * + * *
              * A sampling of events deleted (or will be deleted) depending on the `force`
              * property in the request. Max of 500 items will be returned.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ @java.lang.Override - public java.util.List + public java.util.List getUserEventsSampleOrBuilderList() { return userEventsSample_; } /** + * + * *
              * A sampling of events deleted (or will be deleted) depending on the `force`
              * property in the request. Max of 500 items will be returned.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ @java.lang.Override public int getUserEventsSampleCount() { return userEventsSample_.size(); } /** + * + * *
              * A sampling of events deleted (or will be deleted) depending on the `force`
              * property in the request. Max of 500 items will be returned.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEventsSample(int index) { return userEventsSample_.get(index); } /** + * + * *
              * A sampling of events deleted (or will be deleted) depending on the `force`
              * property in the request. Max of 500 items will be returned.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventsSampleOrBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder + getUserEventsSampleOrBuilder(int index) { return userEventsSample_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,8 +243,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (purgedEventsCount_ != 0L) { output.writeInt64(1, purgedEventsCount_); } @@ -217,12 +260,10 @@ public int getSerializedSize() { size = 0; if (purgedEventsCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, purgedEventsCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, purgedEventsCount_); } for (int i = 0; i < userEventsSample_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, userEventsSample_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, userEventsSample_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -232,17 +273,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse other = (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse) obj; + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse other = + (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse) obj; - if (getPurgedEventsCount() - != other.getPurgedEventsCount()) return false; - if (!getUserEventsSampleList() - .equals(other.getUserEventsSampleList())) return false; + if (getPurgedEventsCount() != other.getPurgedEventsCount()) return false; + if (!getUserEventsSampleList().equals(other.getUserEventsSampleList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -255,8 +295,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PURGED_EVENTS_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPurgedEventsCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPurgedEventsCount()); if (getUserEventsSampleCount() > 0) { hash = (37 * hash) + USER_EVENTS_SAMPLE_FIELD_NUMBER; hash = (53 * hash) + getUserEventsSampleList().hashCode(); @@ -267,96 +306,105 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Response of the PurgeUserEventsRequest. If the long running operation is
              * successfully done, then this message is returned by the
          @@ -365,39 +413,42 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse)
                 com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponseOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass
          +          .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_fieldAccessorTable
          +      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass
          +          .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.class, com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.Builder.class);
          +              com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.class,
          +              com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.Builder.class);
               }
           
          -    // Construct using com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.newBuilder()
          +    // Construct using
          +    // com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.newBuilder()
               private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          +
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3
          -              .alwaysUseFieldBuilders) {
          +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                   getUserEventsSampleFieldBuilder();
                 }
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -413,14 +464,16 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass
          +          .internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor;
               }
           
               @java.lang.Override
          -    public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse getDefaultInstanceForType() {
          -      return com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.getDefaultInstance();
          +    public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse
          +        getDefaultInstanceForType() {
          +      return com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse
          +          .getDefaultInstance();
               }
           
               @java.lang.Override
          @@ -434,7 +487,8 @@ public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse bui
           
               @java.lang.Override
               public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse buildPartial() {
          -      com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse result = new com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse(this);
          +      com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse result =
          +          new com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse(this);
                 int from_bitField0_ = bitField0_;
                 result.purgedEventsCount_ = purgedEventsCount_;
                 if (userEventsSampleBuilder_ == null) {
          @@ -454,46 +508,51 @@ public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse bui
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                 return super.setField(field, value);
               }
          +
               @java.lang.Override
          -    public Builder clearField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field) {
          +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                 return super.clearField(field);
               }
          +
               @java.lang.Override
          -    public Builder clearOneof(
          -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
          +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                 return super.clearOneof(oneof);
               }
          +
               @java.lang.Override
               public Builder setRepeatedField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        int index, java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                 return super.setRepeatedField(field, index, value);
               }
          +
               @java.lang.Override
               public Builder addRepeatedField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                 return super.addRepeatedField(field, value);
               }
          +
               @java.lang.Override
               public Builder mergeFrom(com.google.protobuf.Message other) {
                 if (other instanceof com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse) {
          -        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse)other);
          +        return mergeFrom(
          +            (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
                 }
               }
           
          -    public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse other) {
          -      if (other == com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse.getDefaultInstance()) return this;
          +    public Builder mergeFrom(
          +        com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse other) {
          +      if (other
          +          == com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse
          +              .getDefaultInstance()) return this;
                 if (other.getPurgedEventsCount() != 0L) {
                   setPurgedEventsCount(other.getPurgedEventsCount());
                 }
          @@ -515,9 +574,10 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.PurgeUser
                       userEventsSampleBuilder_ = null;
                       userEventsSample_ = other.userEventsSample_;
                       bitField0_ = (bitField0_ & ~0x00000001);
          -            userEventsSampleBuilder_ = 
          -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
          -                 getUserEventsSampleFieldBuilder() : null;
          +            userEventsSampleBuilder_ =
          +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
          +                    ? getUserEventsSampleFieldBuilder()
          +                    : null;
                     } else {
                       userEventsSampleBuilder_.addAllMessages(other.userEventsSample_);
                     }
          @@ -542,7 +602,9 @@ public Builder mergeFrom(
                 try {
                   parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          -        parsedMessage = (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse) e.getUnfinishedMessage();
          +        parsedMessage =
          +            (com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse)
          +                e.getUnfinishedMessage();
                   throw e.unwrapIOException();
                 } finally {
                   if (parsedMessage != null) {
          @@ -551,15 +613,19 @@ public Builder mergeFrom(
                 }
                 return this;
               }
          +
               private int bitField0_;
           
          -    private long purgedEventsCount_ ;
          +    private long purgedEventsCount_;
               /**
          +     *
          +     *
                * 
                * The total count of events purged as a result of the operation.
                * 
          * * int64 purged_events_count = 1; + * * @return The purgedEventsCount. */ @java.lang.Override @@ -567,56 +633,72 @@ public long getPurgedEventsCount() { return purgedEventsCount_; } /** + * + * *
                * The total count of events purged as a result of the operation.
                * 
          * * int64 purged_events_count = 1; + * * @param value The purgedEventsCount to set. * @return This builder for chaining. */ public Builder setPurgedEventsCount(long value) { - + purgedEventsCount_ = value; onChanged(); return this; } /** + * + * *
                * The total count of events purged as a result of the operation.
                * 
          * * int64 purged_events_count = 1; + * * @return This builder for chaining. */ public Builder clearPurgedEventsCount() { - + purgedEventsCount_ = 0L; onChanged(); return this; } - private java.util.List userEventsSample_ = - java.util.Collections.emptyList(); + private java.util.List + userEventsSample_ = java.util.Collections.emptyList(); + private void ensureUserEventsSampleIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - userEventsSample_ = new java.util.ArrayList(userEventsSample_); + userEventsSample_ = + new java.util.ArrayList( + userEventsSample_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> userEventsSampleBuilder_; + com.google.cloud.recommendationengine.v1beta1.UserEvent, + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, + com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> + userEventsSampleBuilder_; /** + * + * *
                * A sampling of events deleted (or will be deleted) depending on the `force`
                * property in the request. Max of 500 items will be returned.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ - public java.util.List getUserEventsSampleList() { + public java.util.List + getUserEventsSampleList() { if (userEventsSampleBuilder_ == null) { return java.util.Collections.unmodifiableList(userEventsSample_); } else { @@ -624,12 +706,15 @@ public java.util.List g } } /** + * + * *
                * A sampling of events deleted (or will be deleted) depending on the `force`
                * property in the request. Max of 500 items will be returned.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ public int getUserEventsSampleCount() { if (userEventsSampleBuilder_ == null) { @@ -639,12 +724,15 @@ public int getUserEventsSampleCount() { } } /** + * + * *
                * A sampling of events deleted (or will be deleted) depending on the `force`
                * property in the request. Max of 500 items will be returned.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEventsSample(int index) { if (userEventsSampleBuilder_ == null) { @@ -654,12 +742,15 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEventsSamp } } /** + * + * *
                * A sampling of events deleted (or will be deleted) depending on the `force`
                * property in the request. Max of 500 items will be returned.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ public Builder setUserEventsSample( int index, com.google.cloud.recommendationengine.v1beta1.UserEvent value) { @@ -676,15 +767,19 @@ public Builder setUserEventsSample( return this; } /** + * + * *
                * A sampling of events deleted (or will be deleted) depending on the `force`
                * property in the request. Max of 500 items will be returned.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ public Builder setUserEventsSample( - int index, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { + int index, + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { if (userEventsSampleBuilder_ == null) { ensureUserEventsSampleIsMutable(); userEventsSample_.set(index, builderForValue.build()); @@ -695,14 +790,18 @@ public Builder setUserEventsSample( return this; } /** + * + * *
                * A sampling of events deleted (or will be deleted) depending on the `force`
                * property in the request. Max of 500 items will be returned.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ - public Builder addUserEventsSample(com.google.cloud.recommendationengine.v1beta1.UserEvent value) { + public Builder addUserEventsSample( + com.google.cloud.recommendationengine.v1beta1.UserEvent value) { if (userEventsSampleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -716,12 +815,15 @@ public Builder addUserEventsSample(com.google.cloud.recommendationengine.v1beta1 return this; } /** + * + * *
                * A sampling of events deleted (or will be deleted) depending on the `force`
                * property in the request. Max of 500 items will be returned.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ public Builder addUserEventsSample( int index, com.google.cloud.recommendationengine.v1beta1.UserEvent value) { @@ -738,12 +840,15 @@ public Builder addUserEventsSample( return this; } /** + * + * *
                * A sampling of events deleted (or will be deleted) depending on the `force`
                * property in the request. Max of 500 items will be returned.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ public Builder addUserEventsSample( com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { @@ -757,15 +862,19 @@ public Builder addUserEventsSample( return this; } /** + * + * *
                * A sampling of events deleted (or will be deleted) depending on the `force`
                * property in the request. Max of 500 items will be returned.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ public Builder addUserEventsSample( - int index, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { + int index, + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { if (userEventsSampleBuilder_ == null) { ensureUserEventsSampleIsMutable(); userEventsSample_.add(index, builderForValue.build()); @@ -776,19 +885,22 @@ public Builder addUserEventsSample( return this; } /** + * + * *
                * A sampling of events deleted (or will be deleted) depending on the `force`
                * property in the request. Max of 500 items will be returned.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ public Builder addAllUserEventsSample( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (userEventsSampleBuilder_ == null) { ensureUserEventsSampleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, userEventsSample_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userEventsSample_); onChanged(); } else { userEventsSampleBuilder_.addAllMessages(values); @@ -796,12 +908,15 @@ public Builder addAllUserEventsSample( return this; } /** + * + * *
                * A sampling of events deleted (or will be deleted) depending on the `force`
                * property in the request. Max of 500 items will be returned.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ public Builder clearUserEventsSample() { if (userEventsSampleBuilder_ == null) { @@ -814,12 +929,15 @@ public Builder clearUserEventsSample() { return this; } /** + * + * *
                * A sampling of events deleted (or will be deleted) depending on the `force`
                * property in the request. Max of 500 items will be returned.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ public Builder removeUserEventsSample(int index) { if (userEventsSampleBuilder_ == null) { @@ -832,42 +950,53 @@ public Builder removeUserEventsSample(int index) { return this; } /** + * + * *
                * A sampling of events deleted (or will be deleted) depending on the `force`
                * property in the request. Max of 500 items will be returned.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ - public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder getUserEventsSampleBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder + getUserEventsSampleBuilder(int index) { return getUserEventsSampleFieldBuilder().getBuilder(index); } /** + * + * *
                * A sampling of events deleted (or will be deleted) depending on the `force`
                * property in the request. Max of 500 items will be returned.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ - public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventsSampleOrBuilder( - int index) { + public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder + getUserEventsSampleOrBuilder(int index) { if (userEventsSampleBuilder_ == null) { - return userEventsSample_.get(index); } else { + return userEventsSample_.get(index); + } else { return userEventsSampleBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * A sampling of events deleted (or will be deleted) depending on the `force`
                * property in the request. Max of 500 items will be returned.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ - public java.util.List - getUserEventsSampleOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> + getUserEventsSampleOrBuilderList() { if (userEventsSampleBuilder_ != null) { return userEventsSampleBuilder_.getMessageOrBuilderList(); } else { @@ -875,48 +1004,65 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserE } } /** + * + * *
                * A sampling of events deleted (or will be deleted) depending on the `force`
                * property in the request. Max of 500 items will be returned.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ - public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder addUserEventsSampleBuilder() { - return getUserEventsSampleFieldBuilder().addBuilder( - com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder + addUserEventsSampleBuilder() { + return getUserEventsSampleFieldBuilder() + .addBuilder(com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); } /** + * + * *
                * A sampling of events deleted (or will be deleted) depending on the `force`
                * property in the request. Max of 500 items will be returned.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ - public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder addUserEventsSampleBuilder( - int index) { - return getUserEventsSampleFieldBuilder().addBuilder( - index, com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); + public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder + addUserEventsSampleBuilder(int index) { + return getUserEventsSampleFieldBuilder() + .addBuilder( + index, com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); } /** + * + * *
                * A sampling of events deleted (or will be deleted) depending on the `force`
                * property in the request. Max of 500 items will be returned.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ - public java.util.List - getUserEventsSampleBuilderList() { + public java.util.List + getUserEventsSampleBuilderList() { return getUserEventsSampleFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> + com.google.cloud.recommendationengine.v1beta1.UserEvent, + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, + com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> getUserEventsSampleFieldBuilder() { if (userEventsSampleBuilder_ == null) { - userEventsSampleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder>( + userEventsSampleBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.UserEvent, + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, + com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder>( userEventsSample_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -925,9 +1071,9 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder addUserEv } return userEventsSampleBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -937,30 +1083,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse) - private static final com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse(); } - public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PurgeUserEventsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PurgeUserEventsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeUserEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PurgeUserEventsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -972,9 +1120,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponseOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponseOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponseOrBuilder.java index f4771ad6..5535c83b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponseOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/PurgeUserEventsResponseOrBuilder.java @@ -1,67 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; -public interface PurgeUserEventsResponseOrBuilder extends +public interface PurgeUserEventsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * The total count of events purged as a result of the operation.
              * 
          * * int64 purged_events_count = 1; + * * @return The purgedEventsCount. */ long getPurgedEventsCount(); /** + * + * *
              * A sampling of events deleted (or will be deleted) depending on the `force`
              * property in the request. Max of 500 items will be returned.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ - java.util.List - getUserEventsSampleList(); + java.util.List getUserEventsSampleList(); /** + * + * *
              * A sampling of events deleted (or will be deleted) depending on the `force`
              * property in the request. Max of 500 items will be returned.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEventsSample(int index); /** + * + * *
              * A sampling of events deleted (or will be deleted) depending on the `force`
              * property in the request. Max of 500 items will be returned.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ int getUserEventsSampleCount(); /** + * + * *
              * A sampling of events deleted (or will be deleted) depending on the `force`
              * property in the request. Max of 500 items will be returned.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ - java.util.List + java.util.List getUserEventsSampleOrBuilderList(); /** + * + * *
              * A sampling of events deleted (or will be deleted) depending on the `force`
              * property in the request. Max of 500 items will be returned.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events_sample = 2; + * */ com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventsSampleOrBuilder( int index); diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/RecommendationengineResources.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/RecommendationengineResources.java new file mode 100644 index 00000000..5bbf66e8 --- /dev/null +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/RecommendationengineResources.java @@ -0,0 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public final class RecommendationengineResources { + private RecommendationengineResources() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nNgoogle/cloud/recommendationengine/v1be" + + "ta1/recommendationengine_resources.proto" + + "\022)google.cloud.recommendationengine.v1be" + + "ta1\032\031google/api/resource.protoB\253\010\n-com.g" + + "oogle.cloud.recommendationengine.v1beta1" + + "P\001Z]google.golang.org/genproto/googleapi" + + "s/cloud/recommendationengine/v1beta1;rec" + + "ommendationengine\242\002\005RECAI\252\002)Google.Cloud" + + ".RecommendationEngine.V1Beta1\312\002)Google\\C" + + "loud\\RecommendationEngine\\V1beta1\352\002,Goog" + + "le::Cloud::RecommendationEngine::V1beta1" + + "\352Ai\n+recommendationengine.googleapis.com" + + "/Catalog\022:projects/{project}/locations/{" + + "location}/catalogs/{catalog}\352A\225\001\n3recomm" + + "endationengine.googleapis.com/CatalogIte" + + "mPath\022^projects/{project}/locations/{loc" + + "ation}/catalogs/{catalog}/catalogItems/{" + + "catalog_item_path=**}\352A\206\001\n.recommendatio" + + "nengine.googleapis.com/EventStore\022Tproje" + + "cts/{project}/locations/{location}/catal" + + "ogs/{catalog}/eventStores/{event_store}\352" + + "A\331\001\n@recommendationengine.googleapis.com" + + "/PredictionApiKeyRegistration\022\224\001projects" + + "/{project}/locations/{location}/catalogs" + + "/{catalog}/eventStores/{event_store}/pre" + + "dictionApiKeyRegistrations/{prediction_a" + + "pi_key_registration}\352A\234\001\n-recommendation" + + "engine.googleapis.com/Placement\022kproject" + + "s/{project}/locations/{location}/catalog" + + "s/{catalog}/eventStores/{event_store}/pl" + + "acements/{placement}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceDefinition); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequest.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequest.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequest.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequest.java index ea1d943e..a31ccb79 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequest.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/catalog_service.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Request message for UpdateCatalogItem method.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest} */ -public final class UpdateCatalogItemRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateCatalogItemRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest) UpdateCatalogItemRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateCatalogItemRequest.newBuilder() to construct. private UpdateCatalogItemRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateCatalogItemRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateCatalogItemRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateCatalogItemRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,45 +70,52 @@ private UpdateCatalogItemRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder subBuilder = null; - if (catalogItem_ != null) { - subBuilder = catalogItem_.toBuilder(); - } - catalogItem_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.CatalogItem.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(catalogItem_); - catalogItem_ = subBuilder.buildPartial(); + name_ = s; + break; } + case 18: + { + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder subBuilder = null; + if (catalogItem_ != null) { + subBuilder = catalogItem_.toBuilder(); + } + catalogItem_ = + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.CatalogItem.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(catalogItem_); + catalogItem_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,35 +123,42 @@ private UpdateCatalogItemRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.class, com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.class, + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
              * Required. Full resource name of catalog item, such as
              * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id".
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -136,30 +167,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
              * Required. Full resource name of catalog item, such as
              * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id".
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -170,12 +203,17 @@ public java.lang.String getName() { public static final int CATALOG_ITEM_FIELD_NUMBER = 2; private com.google.cloud.recommendationengine.v1beta1.CatalogItem catalogItem_; /** + * + * *
              * Required. The catalog item to update/create. The 'catalog_item_id' field
              * has to match that in the 'name'.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the catalogItem field is set. */ @java.lang.Override @@ -183,40 +221,55 @@ public boolean hasCatalogItem() { return catalogItem_ != null; } /** + * + * *
              * Required. The catalog item to update/create. The 'catalog_item_id' field
              * has to match that in the 'name'.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The catalogItem. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItem() { - return catalogItem_ == null ? com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() : catalogItem_; + return catalogItem_ == null + ? com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() + : catalogItem_; } /** + * + * *
              * Required. The catalog item to update/create. The 'catalog_item_id' field
              * has to match that in the 'name'.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder + getCatalogItemOrBuilder() { return getCatalogItem(); } public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
              * Optional. Indicates which fields in the provided 'item' to update. If not
              * set, will by default update all fields.
              * 
          * * .google.protobuf.FieldMask update_mask = 3; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -224,12 +277,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
              * Optional. Indicates which fields in the provided 'item' to update. If not
              * set, will by default update all fields.
              * 
          * * .google.protobuf.FieldMask update_mask = 3; + * * @return The updateMask. */ @java.lang.Override @@ -237,6 +293,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
              * Optional. Indicates which fields in the provided 'item' to update. If not
              * set, will by default update all fields.
          @@ -250,6 +308,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
             }
           
             private byte memoizedIsInitialized = -1;
          +
             @java.lang.Override
             public final boolean isInitialized() {
               byte isInitialized = memoizedIsInitialized;
          @@ -261,8 +320,7 @@ public final boolean isInitialized() {
             }
           
             @java.lang.Override
          -  public void writeTo(com.google.protobuf.CodedOutputStream output)
          -                      throws java.io.IOException {
          +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
               if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
                 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
               }
          @@ -285,12 +343,10 @@ public int getSerializedSize() {
                 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
               }
               if (catalogItem_ != null) {
          -      size += com.google.protobuf.CodedOutputStream
          -        .computeMessageSize(2, getCatalogItem());
          +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCatalogItem());
               }
               if (updateMask_ != null) {
          -      size += com.google.protobuf.CodedOutputStream
          -        .computeMessageSize(3, getUpdateMask());
          +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask());
               }
               size += unknownFields.getSerializedSize();
               memoizedSize = size;
          @@ -300,24 +356,22 @@ public int getSerializedSize() {
             @java.lang.Override
             public boolean equals(final java.lang.Object obj) {
               if (obj == this) {
          -     return true;
          +      return true;
               }
               if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest)) {
                 return super.equals(obj);
               }
          -    com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest other = (com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest) obj;
          +    com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest other =
          +        (com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest) obj;
           
          -    if (!getName()
          -        .equals(other.getName())) return false;
          +    if (!getName().equals(other.getName())) return false;
               if (hasCatalogItem() != other.hasCatalogItem()) return false;
               if (hasCatalogItem()) {
          -      if (!getCatalogItem()
          -          .equals(other.getCatalogItem())) return false;
          +      if (!getCatalogItem().equals(other.getCatalogItem())) return false;
               }
               if (hasUpdateMask() != other.hasUpdateMask()) return false;
               if (hasUpdateMask()) {
          -      if (!getUpdateMask()
          -          .equals(other.getUpdateMask())) return false;
          +      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
               }
               if (!unknownFields.equals(other.unknownFields)) return false;
               return true;
          @@ -346,134 +400,145 @@ public int hashCode() {
             }
           
             public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(
          -      java.nio.ByteBuffer data)
          -      throws com.google.protobuf.InvalidProtocolBufferException {
          +      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(
          -      java.nio.ByteBuffer data,
          -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data, extensionRegistry);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(
                 com.google.protobuf.ByteString data)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(
                 com.google.protobuf.ByteString data,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data, extensionRegistry);
             }
          -  public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(byte[] data)
          -      throws com.google.protobuf.InvalidProtocolBufferException {
          +
          +  public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(
          +      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(
          -      byte[] data,
          -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
               return PARSER.parseFrom(data, extensionRegistry);
             }
          -  public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(java.io.InputStream input)
          -      throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseWithIOException(PARSER, input);
          +
          +  public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(
          +      java.io.InputStream input) throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(
          -      java.io.InputStream input,
          -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseWithIOException(PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          +        PARSER, input, extensionRegistry);
             }
          -  public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseDelimitedFrom(java.io.InputStream input)
          -      throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseDelimitedWithIOException(PARSER, input);
          +
          +  public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest
          +      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
             }
          -  public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseDelimitedFrom(
          -      java.io.InputStream input,
          -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          -      throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
          +
          +  public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest
          +      parseDelimitedFrom(
          +          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +          throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          +        PARSER, input, extensionRegistry);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(
          -      com.google.protobuf.CodedInputStream input)
          -      throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseWithIOException(PARSER, input);
          +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
          +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
             }
          +
             public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest parseFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws java.io.IOException {
          -    return com.google.protobuf.GeneratedMessageV3
          -        .parseWithIOException(PARSER, input, extensionRegistry);
          +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          +        PARSER, input, extensionRegistry);
             }
           
             @java.lang.Override
          -  public Builder newBuilderForType() { return newBuilder(); }
          +  public Builder newBuilderForType() {
          +    return newBuilder();
          +  }
          +
             public static Builder newBuilder() {
               return DEFAULT_INSTANCE.toBuilder();
             }
          -  public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest prototype) {
          +
          +  public static Builder newBuilder(
          +      com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest prototype) {
               return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
             }
          +
             @java.lang.Override
             public Builder toBuilder() {
          -    return this == DEFAULT_INSTANCE
          -        ? new Builder() : new Builder().mergeFrom(this);
          +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
             }
           
             @java.lang.Override
          -  protected Builder newBuilderForType(
          -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
               Builder builder = new Builder(parent);
               return builder;
             }
             /**
          +   *
          +   *
              * 
              * Request message for UpdateCatalogItem method.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest) com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.class, com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.class, + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.Builder.class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -495,19 +560,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.CatalogServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_UpdateCatalogItemRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest build() { - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest result = buildPartial(); + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -516,7 +584,8 @@ public com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest bu @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest result = new com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest(this); + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest result = + new com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest(this); result.name_ = name_; if (catalogItemBuilder_ == null) { result.catalogItem_ = catalogItem_; @@ -536,46 +605,51 @@ public com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest)other); + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest other) { - if (other == com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -605,7 +679,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -617,19 +693,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
                * Required. Full resource name of catalog item, such as
                * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id".
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -638,21 +718,24 @@ public java.lang.String getName() { } } /** + * + * *
                * Required. Full resource name of catalog item, such as
                * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id".
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -660,57 +743,70 @@ public java.lang.String getName() { } } /** + * + * *
                * Required. Full resource name of catalog item, such as
                * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id".
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
                * Required. Full resource name of catalog item, such as
                * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id".
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
                * Required. Full resource name of catalog item, such as
                * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id".
                * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -718,42 +814,61 @@ public Builder setNameBytes( private com.google.cloud.recommendationengine.v1beta1.CatalogItem catalogItem_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> catalogItemBuilder_; + com.google.cloud.recommendationengine.v1beta1.CatalogItem, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, + com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> + catalogItemBuilder_; /** + * + * *
                * Required. The catalog item to update/create. The 'catalog_item_id' field
                * has to match that in the 'name'.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the catalogItem field is set. */ public boolean hasCatalogItem() { return catalogItemBuilder_ != null || catalogItem_ != null; } /** + * + * *
                * Required. The catalog item to update/create. The 'catalog_item_id' field
                * has to match that in the 'name'.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The catalogItem. */ public com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItem() { if (catalogItemBuilder_ == null) { - return catalogItem_ == null ? com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() : catalogItem_; + return catalogItem_ == null + ? com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() + : catalogItem_; } else { return catalogItemBuilder_.getMessage(); } } /** + * + * *
                * Required. The catalog item to update/create. The 'catalog_item_id' field
                * has to match that in the 'name'.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCatalogItem(com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { if (catalogItemBuilder_ == null) { @@ -769,12 +884,16 @@ public Builder setCatalogItem(com.google.cloud.recommendationengine.v1beta1.Cata return this; } /** + * + * *
                * Required. The catalog item to update/create. The 'catalog_item_id' field
                * has to match that in the 'name'.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCatalogItem( com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder builderForValue) { @@ -788,18 +907,25 @@ public Builder setCatalogItem( return this; } /** + * + * *
                * Required. The catalog item to update/create. The 'catalog_item_id' field
                * has to match that in the 'name'.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeCatalogItem(com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { + public Builder mergeCatalogItem( + com.google.cloud.recommendationengine.v1beta1.CatalogItem value) { if (catalogItemBuilder_ == null) { if (catalogItem_ != null) { catalogItem_ = - com.google.cloud.recommendationengine.v1beta1.CatalogItem.newBuilder(catalogItem_).mergeFrom(value).buildPartial(); + com.google.cloud.recommendationengine.v1beta1.CatalogItem.newBuilder(catalogItem_) + .mergeFrom(value) + .buildPartial(); } else { catalogItem_ = value; } @@ -811,12 +937,16 @@ public Builder mergeCatalogItem(com.google.cloud.recommendationengine.v1beta1.Ca return this; } /** + * + * *
                * Required. The catalog item to update/create. The 'catalog_item_id' field
                * has to match that in the 'name'.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCatalogItem() { if (catalogItemBuilder_ == null) { @@ -830,51 +960,69 @@ public Builder clearCatalogItem() { return this; } /** + * + * *
                * Required. The catalog item to update/create. The 'catalog_item_id' field
                * has to match that in the 'name'.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder getCatalogItemBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder + getCatalogItemBuilder() { + onChanged(); return getCatalogItemFieldBuilder().getBuilder(); } /** + * + * *
                * Required. The catalog item to update/create. The 'catalog_item_id' field
                * has to match that in the 'name'.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder + getCatalogItemOrBuilder() { if (catalogItemBuilder_ != null) { return catalogItemBuilder_.getMessageOrBuilder(); } else { - return catalogItem_ == null ? - com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() : catalogItem_; + return catalogItem_ == null + ? com.google.cloud.recommendationengine.v1beta1.CatalogItem.getDefaultInstance() + : catalogItem_; } } /** + * + * *
                * Required. The catalog item to update/create. The 'catalog_item_id' field
                * has to match that in the 'name'.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> + com.google.cloud.recommendationengine.v1beta1.CatalogItem, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, + com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder> getCatalogItemFieldBuilder() { if (catalogItemBuilder_ == null) { - catalogItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.CatalogItem, com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder>( - getCatalogItem(), - getParentForChildren(), - isClean()); + catalogItemBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.CatalogItem, + com.google.cloud.recommendationengine.v1beta1.CatalogItem.Builder, + com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder>( + getCatalogItem(), getParentForChildren(), isClean()); catalogItem_ = null; } return catalogItemBuilder_; @@ -882,36 +1030,49 @@ public com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCat private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
                * Optional. Indicates which fields in the provided 'item' to update. If not
                * set, will by default update all fields.
                * 
          * * .google.protobuf.FieldMask update_mask = 3; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
                * Optional. Indicates which fields in the provided 'item' to update. If not
                * set, will by default update all fields.
                * 
          * * .google.protobuf.FieldMask update_mask = 3; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
                * Optional. Indicates which fields in the provided 'item' to update. If not
                * set, will by default update all fields.
          @@ -933,6 +1094,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Optional. Indicates which fields in the provided 'item' to update. If not
                * set, will by default update all fields.
          @@ -940,8 +1103,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
                *
                * .google.protobuf.FieldMask update_mask = 3;
                */
          -    public Builder setUpdateMask(
          -        com.google.protobuf.FieldMask.Builder builderForValue) {
          +    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
                 if (updateMaskBuilder_ == null) {
                   updateMask_ = builderForValue.build();
                   onChanged();
          @@ -952,6 +1114,8 @@ public Builder setUpdateMask(
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Optional. Indicates which fields in the provided 'item' to update. If not
                * set, will by default update all fields.
          @@ -963,7 +1127,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
                 if (updateMaskBuilder_ == null) {
                   if (updateMask_ != null) {
                     updateMask_ =
          -            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
          +              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
                   } else {
                     updateMask_ = value;
                   }
          @@ -975,6 +1139,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Optional. Indicates which fields in the provided 'item' to update. If not
                * set, will by default update all fields.
          @@ -994,6 +1160,8 @@ public Builder clearUpdateMask() {
                 return this;
               }
               /**
          +     *
          +     *
                * 
                * Optional. Indicates which fields in the provided 'item' to update. If not
                * set, will by default update all fields.
          @@ -1002,11 +1170,13 @@ public Builder clearUpdateMask() {
                * .google.protobuf.FieldMask update_mask = 3;
                */
               public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
          -      
          +
                 onChanged();
                 return getUpdateMaskFieldBuilder().getBuilder();
               }
               /**
          +     *
          +     *
                * 
                * Optional. Indicates which fields in the provided 'item' to update. If not
                * set, will by default update all fields.
          @@ -1018,11 +1188,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
                 if (updateMaskBuilder_ != null) {
                   return updateMaskBuilder_.getMessageOrBuilder();
                 } else {
          -        return updateMask_ == null ?
          -            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
          +        return updateMask_ == null
          +            ? com.google.protobuf.FieldMask.getDefaultInstance()
          +            : updateMask_;
                 }
               }
               /**
          +     *
          +     *
                * 
                * Optional. Indicates which fields in the provided 'item' to update. If not
                * set, will by default update all fields.
          @@ -1031,21 +1204,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
                * .google.protobuf.FieldMask update_mask = 3;
                */
               private com.google.protobuf.SingleFieldBuilderV3<
          -        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
          +            com.google.protobuf.FieldMask,
          +            com.google.protobuf.FieldMask.Builder,
          +            com.google.protobuf.FieldMaskOrBuilder>
                   getUpdateMaskFieldBuilder() {
                 if (updateMaskBuilder_ == null) {
          -        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
          -            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
          -                getUpdateMask(),
          -                getParentForChildren(),
          -                isClean());
          +        updateMaskBuilder_ =
          +            new com.google.protobuf.SingleFieldBuilderV3<
          +                com.google.protobuf.FieldMask,
          +                com.google.protobuf.FieldMask.Builder,
          +                com.google.protobuf.FieldMaskOrBuilder>(
          +                getUpdateMask(), getParentForChildren(), isClean());
                   updateMask_ = null;
                 }
                 return updateMaskBuilder_;
               }
          +
               @java.lang.Override
          -    public final Builder setUnknownFields(
          -        final com.google.protobuf.UnknownFieldSet unknownFields) {
          +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                 return super.setUnknownFields(unknownFields);
               }
           
          @@ -1055,30 +1231,32 @@ public final Builder mergeUnknownFields(
                 return super.mergeUnknownFields(unknownFields);
               }
           
          -
               // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest)
             }
           
             // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest)
          -  private static final com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest DEFAULT_INSTANCE;
          +  private static final com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest
          +      DEFAULT_INSTANCE;
          +
             static {
               DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest();
             }
           
          -  public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest getDefaultInstance() {
          +  public static com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest
          +      getDefaultInstance() {
               return DEFAULT_INSTANCE;
             }
           
          -  private static final com.google.protobuf.Parser
          -      PARSER = new com.google.protobuf.AbstractParser() {
          -    @java.lang.Override
          -    public UpdateCatalogItemRequest parsePartialFrom(
          -        com.google.protobuf.CodedInputStream input,
          -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          -        throws com.google.protobuf.InvalidProtocolBufferException {
          -      return new UpdateCatalogItemRequest(input, extensionRegistry);
          -    }
          -  };
          +  private static final com.google.protobuf.Parser PARSER =
          +      new com.google.protobuf.AbstractParser() {
          +        @java.lang.Override
          +        public UpdateCatalogItemRequest parsePartialFrom(
          +            com.google.protobuf.CodedInputStream input,
          +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          +            throws com.google.protobuf.InvalidProtocolBufferException {
          +          return new UpdateCatalogItemRequest(input, extensionRegistry);
          +        }
          +      };
           
             public static com.google.protobuf.Parser parser() {
               return PARSER;
          @@ -1090,9 +1268,8 @@ public com.google.protobuf.Parser getParserForType() {
             }
           
             @java.lang.Override
          -  public com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest getDefaultInstanceForType() {
          +  public com.google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest
          +      getDefaultInstanceForType() {
               return DEFAULT_INSTANCE;
             }
          -
           }
          -
          diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequestOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequestOrBuilder.java
          similarity index 62%
          rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequestOrBuilder.java
          rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequestOrBuilder.java
          index 4533a2d0..27d0534f 100644
          --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequestOrBuilder.java
          +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UpdateCatalogItemRequestOrBuilder.java
          @@ -1,85 +1,132 @@
          +/*
          + * Copyright 2020 Google LLC
          + *
          + * Licensed under the Apache License, Version 2.0 (the "License");
          + * you may not use this file except in compliance with the License.
          + * You may obtain a copy of the License at
          + *
          + *     https://www.apache.org/licenses/LICENSE-2.0
          + *
          + * Unless required by applicable law or agreed to in writing, software
          + * distributed under the License is distributed on an "AS IS" BASIS,
          + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
          + * See the License for the specific language governing permissions and
          + * limitations under the License.
          + */
           // Generated by the protocol buffer compiler.  DO NOT EDIT!
           // source: google/cloud/recommendationengine/v1beta1/catalog_service.proto
           
           package com.google.cloud.recommendationengine.v1beta1;
           
          -public interface UpdateCatalogItemRequestOrBuilder extends
          +public interface UpdateCatalogItemRequestOrBuilder
          +    extends
               // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest)
               com.google.protobuf.MessageOrBuilder {
           
             /**
          +   *
          +   *
              * 
              * Required. Full resource name of catalog item, such as
              * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id".
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
              * Required. Full resource name of catalog item, such as
              * "projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id".
              * 
          * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
              * Required. The catalog item to update/create. The 'catalog_item_id' field
              * has to match that in the 'name'.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the catalogItem field is set. */ boolean hasCatalogItem(); /** + * + * *
              * Required. The catalog item to update/create. The 'catalog_item_id' field
              * has to match that in the 'name'.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The catalogItem. */ com.google.cloud.recommendationengine.v1beta1.CatalogItem getCatalogItem(); /** + * + * *
              * Required. The catalog item to update/create. The 'catalog_item_id' field
              * has to match that in the 'name'.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder getCatalogItemOrBuilder(); /** + * + * *
              * Optional. Indicates which fields in the provided 'item' to update. If not
              * set, will by default update all fields.
              * 
          * * .google.protobuf.FieldMask update_mask = 3; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
              * Optional. Indicates which fields in the provided 'item' to update. If not
              * set, will by default update all fields.
              * 
          * * .google.protobuf.FieldMask update_mask = 3; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
              * Optional. Indicates which fields in the provided 'item' to update. If not
              * set, will by default update all fields.
          diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEvent.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEvent.java
          similarity index 69%
          rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEvent.java
          rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEvent.java
          index 34841e14..7ea59abc 100644
          --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEvent.java
          +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEvent.java
          @@ -1,9 +1,26 @@
          +/*
          + * Copyright 2020 Google LLC
          + *
          + * Licensed under the Apache License, Version 2.0 (the "License");
          + * you may not use this file except in compliance with the License.
          + * You may obtain a copy of the License at
          + *
          + *     https://www.apache.org/licenses/LICENSE-2.0
          + *
          + * Unless required by applicable law or agreed to in writing, software
          + * distributed under the License is distributed on an "AS IS" BASIS,
          + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
          + * See the License for the specific language governing permissions and
          + * limitations under the License.
          + */
           // Generated by the protocol buffer compiler.  DO NOT EDIT!
           // source: google/cloud/recommendationengine/v1beta1/user_event.proto
           
           package com.google.cloud.recommendationengine.v1beta1;
           
           /**
          + *
          + *
            * 
            * UserEvent captures all metadata information recommendation engine needs to
            * know about how end users interact with customers' website.
          @@ -11,15 +28,16 @@
            *
            * Protobuf type {@code google.cloud.recommendationengine.v1beta1.UserEvent}
            */
          -public final class UserEvent extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class UserEvent extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.UserEvent)
               UserEventOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use UserEvent.newBuilder() to construct.
             private UserEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          +
             private UserEvent() {
               eventType_ = "";
               eventSource_ = 0;
          @@ -27,16 +45,15 @@ private UserEvent() {
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new UserEvent();
             }
           
             @java.lang.Override
          -  public final com.google.protobuf.UnknownFieldSet
          -  getUnknownFields() {
          +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
               return this.unknownFields;
             }
          +
             private UserEvent(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          @@ -55,77 +72,94 @@ private UserEvent(
                     case 0:
                       done = true;
                       break;
          -          case 10: {
          -            java.lang.String s = input.readStringRequireUtf8();
          +          case 10:
          +            {
          +              java.lang.String s = input.readStringRequireUtf8();
           
          -            eventType_ = s;
          -            break;
          -          }
          -          case 18: {
          -            com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder subBuilder = null;
          -            if (userInfo_ != null) {
          -              subBuilder = userInfo_.toBuilder();
          +              eventType_ = s;
          +              break;
                       }
          -            userInfo_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.UserInfo.parser(), extensionRegistry);
          -            if (subBuilder != null) {
          -              subBuilder.mergeFrom(userInfo_);
          -              userInfo_ = subBuilder.buildPartial();
          +          case 18:
          +            {
          +              com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder subBuilder = null;
          +              if (userInfo_ != null) {
          +                subBuilder = userInfo_.toBuilder();
          +              }
          +              userInfo_ =
          +                  input.readMessage(
          +                      com.google.cloud.recommendationengine.v1beta1.UserInfo.parser(),
          +                      extensionRegistry);
          +              if (subBuilder != null) {
          +                subBuilder.mergeFrom(userInfo_);
          +                userInfo_ = subBuilder.buildPartial();
          +              }
          +
          +              break;
                       }
          -
          -            break;
          -          }
          -          case 26: {
          -            com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder subBuilder = null;
          -            if (eventDetail_ != null) {
          -              subBuilder = eventDetail_.toBuilder();
          +          case 26:
          +            {
          +              com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder subBuilder = null;
          +              if (eventDetail_ != null) {
          +                subBuilder = eventDetail_.toBuilder();
          +              }
          +              eventDetail_ =
          +                  input.readMessage(
          +                      com.google.cloud.recommendationengine.v1beta1.EventDetail.parser(),
          +                      extensionRegistry);
          +              if (subBuilder != null) {
          +                subBuilder.mergeFrom(eventDetail_);
          +                eventDetail_ = subBuilder.buildPartial();
          +              }
          +
          +              break;
                       }
          -            eventDetail_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.EventDetail.parser(), extensionRegistry);
          -            if (subBuilder != null) {
          -              subBuilder.mergeFrom(eventDetail_);
          -              eventDetail_ = subBuilder.buildPartial();
          +          case 34:
          +            {
          +              com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder subBuilder =
          +                  null;
          +              if (productEventDetail_ != null) {
          +                subBuilder = productEventDetail_.toBuilder();
          +              }
          +              productEventDetail_ =
          +                  input.readMessage(
          +                      com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.parser(),
          +                      extensionRegistry);
          +              if (subBuilder != null) {
          +                subBuilder.mergeFrom(productEventDetail_);
          +                productEventDetail_ = subBuilder.buildPartial();
          +              }
          +
          +              break;
                       }
          -
          -            break;
          -          }
          -          case 34: {
          -            com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder subBuilder = null;
          -            if (productEventDetail_ != null) {
          -              subBuilder = productEventDetail_.toBuilder();
          -            }
          -            productEventDetail_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.parser(), extensionRegistry);
          -            if (subBuilder != null) {
          -              subBuilder.mergeFrom(productEventDetail_);
          -              productEventDetail_ = subBuilder.buildPartial();
          +          case 42:
          +            {
          +              com.google.protobuf.Timestamp.Builder subBuilder = null;
          +              if (eventTime_ != null) {
          +                subBuilder = eventTime_.toBuilder();
          +              }
          +              eventTime_ =
          +                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
          +              if (subBuilder != null) {
          +                subBuilder.mergeFrom(eventTime_);
          +                eventTime_ = subBuilder.buildPartial();
          +              }
          +
          +              break;
                       }
          +          case 48:
          +            {
          +              int rawValue = input.readEnum();
           
          -            break;
          -          }
          -          case 42: {
          -            com.google.protobuf.Timestamp.Builder subBuilder = null;
          -            if (eventTime_ != null) {
          -              subBuilder = eventTime_.toBuilder();
          +              eventSource_ = rawValue;
          +              break;
                       }
          -            eventTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
          -            if (subBuilder != null) {
          -              subBuilder.mergeFrom(eventTime_);
          -              eventTime_ = subBuilder.buildPartial();
          +          default:
          +            {
          +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
          +                done = true;
          +              }
          +              break;
                       }
          -
          -            break;
          -          }
          -          case 48: {
          -            int rawValue = input.readEnum();
          -
          -            eventSource_ = rawValue;
          -            break;
          -          }
          -          default: {
          -            if (!parseUnknownField(
          -                input, unknownFields, extensionRegistry, tag)) {
          -              done = true;
          -            }
          -            break;
          -          }
                   }
                 }
               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          @@ -133,36 +167,41 @@ private UserEvent(
               } catch (com.google.protobuf.UninitializedMessageException e) {
                 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
               } catch (java.io.IOException e) {
          -      throw new com.google.protobuf.InvalidProtocolBufferException(
          -          e).setUnfinishedMessage(this);
          +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
               } finally {
                 this.unknownFields = unknownFields.build();
                 makeExtensionsImmutable();
               }
             }
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor;
          +
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass
          +        .internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_fieldAccessorTable
          +    return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass
          +        .internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.cloud.recommendationengine.v1beta1.UserEvent.class, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder.class);
          +            com.google.cloud.recommendationengine.v1beta1.UserEvent.class,
          +            com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder.class);
             }
           
             /**
          +   *
          +   *
              * 
              * User event source.
              * 
          * * Protobuf enum {@code google.cloud.recommendationengine.v1beta1.UserEvent.EventSource} */ - public enum EventSource - implements com.google.protobuf.ProtocolMessageEnum { + public enum EventSource implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                * Unspecified event source.
                * 
          @@ -171,6 +210,8 @@ public enum EventSource */ EVENT_SOURCE_UNSPECIFIED(0), /** + * + * *
                * The event is ingested via a javascript pixel or Recommendations AI Tag
                * through automl datalayer or JS Macros.
          @@ -180,6 +221,8 @@ public enum EventSource
                */
               AUTOML(1),
               /**
          +     *
          +     *
                * 
                * The event is ingested via Recommendations AI Tag through Enhanced
                * Ecommerce datalayer.
          @@ -189,6 +232,8 @@ public enum EventSource
                */
               ECOMMERCE(2),
               /**
          +     *
          +     *
                * 
                * The event is ingested via Import user events API.
                * 
          @@ -200,6 +245,8 @@ public enum EventSource ; /** + * + * *
                * Unspecified event source.
                * 
          @@ -208,6 +255,8 @@ public enum EventSource */ public static final int EVENT_SOURCE_UNSPECIFIED_VALUE = 0; /** + * + * *
                * The event is ingested via a javascript pixel or Recommendations AI Tag
                * through automl datalayer or JS Macros.
          @@ -217,6 +266,8 @@ public enum EventSource
                */
               public static final int AUTOML_VALUE = 1;
               /**
          +     *
          +     *
                * 
                * The event is ingested via Recommendations AI Tag through Enhanced
                * Ecommerce datalayer.
          @@ -226,6 +277,8 @@ public enum EventSource
                */
               public static final int ECOMMERCE_VALUE = 2;
               /**
          +     *
          +     *
                * 
                * The event is ingested via Import user events API.
                * 
          @@ -234,7 +287,6 @@ public enum EventSource */ public static final int BATCH_UPLOAD_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -259,50 +311,53 @@ public static EventSource valueOf(int value) { */ public static EventSource forNumber(int value) { switch (value) { - case 0: return EVENT_SOURCE_UNSPECIFIED; - case 1: return AUTOML; - case 2: return ECOMMERCE; - case 3: return BATCH_UPLOAD; - default: return null; + case 0: + return EVENT_SOURCE_UNSPECIFIED; + case 1: + return AUTOML; + case 2: + return ECOMMERCE; + case 3: + return BATCH_UPLOAD; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - EventSource> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EventSource findValueByNumber(int number) { - return EventSource.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EventSource findValueByNumber(int number) { + return EventSource.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEvent.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEvent.getDescriptor() + .getEnumTypes() + .get(0); } private static final EventSource[] VALUES = values(); - public static EventSource valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static EventSource valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -322,6 +377,8 @@ private EventSource(int value) { public static final int EVENT_TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object eventType_; /** + * + * *
              * Required. User event type. Allowed values are:
              * * `add-to-cart` Products being added to cart.
          @@ -343,6 +400,7 @@ private EventSource(int value) {
              * 
          * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The eventType. */ @java.lang.Override @@ -351,14 +409,15 @@ public java.lang.String getEventType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventType_ = s; return s; } } /** + * + * *
              * Required. User event type. Allowed values are:
              * * `add-to-cart` Products being added to cart.
          @@ -380,16 +439,15 @@ public java.lang.String getEventType() {
              * 
          * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for eventType. */ @java.lang.Override - public com.google.protobuf.ByteString - getEventTypeBytes() { + public com.google.protobuf.ByteString getEventTypeBytes() { java.lang.Object ref = eventType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); eventType_ = b; return b; } else { @@ -400,11 +458,16 @@ public java.lang.String getEventType() { public static final int USER_INFO_FIELD_NUMBER = 2; private com.google.cloud.recommendationengine.v1beta1.UserInfo userInfo_; /** + * + * *
              * Required. User information.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the userInfo field is set. */ @java.lang.Override @@ -412,23 +475,34 @@ public boolean hasUserInfo() { return userInfo_ != null; } /** + * + * *
              * Required. User information.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The userInfo. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserInfo getUserInfo() { - return userInfo_ == null ? com.google.cloud.recommendationengine.v1beta1.UserInfo.getDefaultInstance() : userInfo_; + return userInfo_ == null + ? com.google.cloud.recommendationengine.v1beta1.UserInfo.getDefaultInstance() + : userInfo_; } /** + * + * *
              * Required. User information.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder getUserInfoOrBuilder() { @@ -438,12 +512,17 @@ public com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder getUserIn public static final int EVENT_DETAIL_FIELD_NUMBER = 3; private com.google.cloud.recommendationengine.v1beta1.EventDetail eventDetail_; /** + * + * *
              * Optional. User event detailed information common across different
              * recommendation types.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the eventDetail field is set. */ @java.lang.Override @@ -451,34 +530,48 @@ public boolean hasEventDetail() { return eventDetail_ != null; } /** + * + * *
              * Optional. User event detailed information common across different
              * recommendation types.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventDetail. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.EventDetail getEventDetail() { - return eventDetail_ == null ? com.google.cloud.recommendationengine.v1beta1.EventDetail.getDefaultInstance() : eventDetail_; + return eventDetail_ == null + ? com.google.cloud.recommendationengine.v1beta1.EventDetail.getDefaultInstance() + : eventDetail_; } /** + * + * *
              * Optional. User event detailed information common across different
              * recommendation types.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder getEventDetailOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder + getEventDetailOrBuilder() { return getEventDetail(); } public static final int PRODUCT_EVENT_DETAIL_FIELD_NUMBER = 4; private com.google.cloud.recommendationengine.v1beta1.ProductEventDetail productEventDetail_; /** + * + * *
              * Optional. Retail product specific user event metadata.
              * This field is required for the following event types:
          @@ -500,7 +593,10 @@ public com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder getEve
              * * `home-page-view`
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the productEventDetail field is set. */ @java.lang.Override @@ -508,6 +604,8 @@ public boolean hasProductEventDetail() { return productEventDetail_ != null; } /** + * + * *
              * Optional. Retail product specific user event metadata.
              * This field is required for the following event types:
          @@ -529,14 +627,21 @@ public boolean hasProductEventDetail() {
              * * `home-page-view`
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The productEventDetail. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail getProductEventDetail() { - return productEventDetail_ == null ? com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.getDefaultInstance() : productEventDetail_; + return productEventDetail_ == null + ? com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.getDefaultInstance() + : productEventDetail_; } /** + * + * *
              * Optional. Retail product specific user event metadata.
              * This field is required for the following event types:
          @@ -558,22 +663,29 @@ public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail getProdu
              * * `home-page-view`
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder getProductEventDetailOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder + getProductEventDetailOrBuilder() { return getProductEventDetail(); } public static final int EVENT_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp eventTime_; /** + * + * *
              * Optional. Only required for ImportUserEvents method. Timestamp of user
              * event created.
              * 
          * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -581,12 +693,16 @@ public boolean hasEventTime() { return eventTime_ != null; } /** + * + * *
              * Optional. Only required for ImportUserEvents method. Timestamp of user
              * event created.
              * 
          * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventTime. */ @java.lang.Override @@ -594,12 +710,15 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** + * + * *
              * Optional. Only required for ImportUserEvents method. Timestamp of user
              * event created.
              * 
          * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { @@ -609,33 +728,49 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { public static final int EVENT_SOURCE_FIELD_NUMBER = 6; private int eventSource_; /** + * + * *
              * Optional. This field should *not* be set when using JavaScript pixel
              * or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for eventSource. */ - @java.lang.Override public int getEventSourceValue() { + @java.lang.Override + public int getEventSourceValue() { return eventSource_; } /** + * + * *
              * Optional. This field should *not* be set when using JavaScript pixel
              * or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventSource. */ - @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource getEventSource() { + @java.lang.Override + public com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource getEventSource() { @SuppressWarnings("deprecation") - com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource result = com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource.valueOf(eventSource_); - return result == null ? com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource.UNRECOGNIZED : result; + com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource result = + com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource.valueOf(eventSource_); + return result == null + ? com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -647,8 +782,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventType_); } @@ -664,7 +798,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (eventTime_ != null) { output.writeMessage(5, getEventTime()); } - if (eventSource_ != com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource.EVENT_SOURCE_UNSPECIFIED.getNumber()) { + if (eventSource_ + != com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource + .EVENT_SOURCE_UNSPECIFIED + .getNumber()) { output.writeEnum(6, eventSource_); } unknownFields.writeTo(output); @@ -680,24 +817,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, eventType_); } if (userInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUserInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUserInfo()); } if (eventDetail_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getEventDetail()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEventDetail()); } if (productEventDetail_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getProductEventDetail()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProductEventDetail()); } if (eventTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getEventTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEventTime()); } - if (eventSource_ != com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource.EVENT_SOURCE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, eventSource_); + if (eventSource_ + != com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource + .EVENT_SOURCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, eventSource_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -707,34 +842,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.UserEvent)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.UserEvent other = (com.google.cloud.recommendationengine.v1beta1.UserEvent) obj; + com.google.cloud.recommendationengine.v1beta1.UserEvent other = + (com.google.cloud.recommendationengine.v1beta1.UserEvent) obj; - if (!getEventType() - .equals(other.getEventType())) return false; + if (!getEventType().equals(other.getEventType())) return false; if (hasUserInfo() != other.hasUserInfo()) return false; if (hasUserInfo()) { - if (!getUserInfo() - .equals(other.getUserInfo())) return false; + if (!getUserInfo().equals(other.getUserInfo())) return false; } if (hasEventDetail() != other.hasEventDetail()) return false; if (hasEventDetail()) { - if (!getEventDetail() - .equals(other.getEventDetail())) return false; + if (!getEventDetail().equals(other.getEventDetail())) return false; } if (hasProductEventDetail() != other.hasProductEventDetail()) return false; if (hasProductEventDetail()) { - if (!getProductEventDetail() - .equals(other.getProductEventDetail())) return false; + if (!getProductEventDetail().equals(other.getProductEventDetail())) return false; } if (hasEventTime() != other.hasEventTime()) return false; if (hasEventTime()) { - if (!getEventTime() - .equals(other.getEventTime())) return false; + if (!getEventTime().equals(other.getEventTime())) return false; } if (eventSource_ != other.eventSource_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -774,96 +905,104 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.UserEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.UserEvent prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.UserEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * UserEvent captures all metadata information recommendation engine needs to
              * know about how end users interact with customers' website.
          @@ -871,21 +1010,23 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.cloud.recommendationengine.v1beta1.UserEvent}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.UserEvent)
                 com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass
          +          .internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_fieldAccessorTable
          +      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass
          +          .internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.cloud.recommendationengine.v1beta1.UserEvent.class, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder.class);
          +              com.google.cloud.recommendationengine.v1beta1.UserEvent.class,
          +              com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder.class);
               }
           
               // Construct using com.google.cloud.recommendationengine.v1beta1.UserEvent.newBuilder()
          @@ -893,16 +1034,15 @@ private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          +
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3
          -              .alwaysUseFieldBuilders) {
          -      }
          +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -938,9 +1078,9 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass
          +          .internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor;
               }
           
               @java.lang.Override
          @@ -959,7 +1099,8 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent build() {
           
               @java.lang.Override
               public com.google.cloud.recommendationengine.v1beta1.UserEvent buildPartial() {
          -      com.google.cloud.recommendationengine.v1beta1.UserEvent result = new com.google.cloud.recommendationengine.v1beta1.UserEvent(this);
          +      com.google.cloud.recommendationengine.v1beta1.UserEvent result =
          +          new com.google.cloud.recommendationengine.v1beta1.UserEvent(this);
                 result.eventType_ = eventType_;
                 if (userInfoBuilder_ == null) {
                   result.userInfo_ = userInfo_;
          @@ -990,38 +1131,39 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent buildPartial() {
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                 return super.setField(field, value);
               }
          +
               @java.lang.Override
          -    public Builder clearField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field) {
          +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                 return super.clearField(field);
               }
          +
               @java.lang.Override
          -    public Builder clearOneof(
          -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
          +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                 return super.clearOneof(oneof);
               }
          +
               @java.lang.Override
               public Builder setRepeatedField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        int index, java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                 return super.setRepeatedField(field, index, value);
               }
          +
               @java.lang.Override
               public Builder addRepeatedField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                 return super.addRepeatedField(field, value);
               }
          +
               @java.lang.Override
               public Builder mergeFrom(com.google.protobuf.Message other) {
                 if (other instanceof com.google.cloud.recommendationengine.v1beta1.UserEvent) {
          -        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.UserEvent)other);
          +        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.UserEvent) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
          @@ -1029,7 +1171,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
               }
           
               public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.UserEvent other) {
          -      if (other == com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()) return this;
          +      if (other == com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance())
          +        return this;
                 if (!other.getEventType().isEmpty()) {
                   eventType_ = other.eventType_;
                   onChanged();
          @@ -1068,7 +1211,8 @@ public Builder mergeFrom(
                 try {
                   parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          -        parsedMessage = (com.google.cloud.recommendationengine.v1beta1.UserEvent) e.getUnfinishedMessage();
          +        parsedMessage =
          +            (com.google.cloud.recommendationengine.v1beta1.UserEvent) e.getUnfinishedMessage();
                   throw e.unwrapIOException();
                 } finally {
                   if (parsedMessage != null) {
          @@ -1080,6 +1224,8 @@ public Builder mergeFrom(
           
               private java.lang.Object eventType_ = "";
               /**
          +     *
          +     *
                * 
                * Required. User event type. Allowed values are:
                * * `add-to-cart` Products being added to cart.
          @@ -1101,13 +1247,13 @@ public Builder mergeFrom(
                * 
          * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The eventType. */ public java.lang.String getEventType() { java.lang.Object ref = eventType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventType_ = s; return s; @@ -1116,6 +1262,8 @@ public java.lang.String getEventType() { } } /** + * + * *
                * Required. User event type. Allowed values are:
                * * `add-to-cart` Products being added to cart.
          @@ -1137,15 +1285,14 @@ public java.lang.String getEventType() {
                * 
          * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for eventType. */ - public com.google.protobuf.ByteString - getEventTypeBytes() { + public com.google.protobuf.ByteString getEventTypeBytes() { java.lang.Object ref = eventType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); eventType_ = b; return b; } else { @@ -1153,6 +1300,8 @@ public java.lang.String getEventType() { } } /** + * + * *
                * Required. User event type. Allowed values are:
                * * `add-to-cart` Products being added to cart.
          @@ -1174,20 +1323,22 @@ public java.lang.String getEventType() {
                * 
          * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The eventType to set. * @return This builder for chaining. */ - public Builder setEventType( - java.lang.String value) { + public Builder setEventType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + eventType_ = value; onChanged(); return this; } /** + * + * *
                * Required. User event type. Allowed values are:
                * * `add-to-cart` Products being added to cart.
          @@ -1209,15 +1360,18 @@ public Builder setEventType(
                * 
          * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearEventType() { - + eventType_ = getDefaultInstance().getEventType(); onChanged(); return this; } /** + * + * *
                * Required. User event type. Allowed values are:
                * * `add-to-cart` Products being added to cart.
          @@ -1239,16 +1393,16 @@ public Builder clearEventType() {
                * 
          * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for eventType to set. * @return This builder for chaining. */ - public Builder setEventTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setEventTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventType_ = value; onChanged(); return this; @@ -1256,39 +1410,58 @@ public Builder setEventTypeBytes( private com.google.cloud.recommendationengine.v1beta1.UserInfo userInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserInfo, com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder, com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder> userInfoBuilder_; + com.google.cloud.recommendationengine.v1beta1.UserInfo, + com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder, + com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder> + userInfoBuilder_; /** + * + * *
                * Required. User information.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the userInfo field is set. */ public boolean hasUserInfo() { return userInfoBuilder_ != null || userInfo_ != null; } /** + * + * *
                * Required. User information.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The userInfo. */ public com.google.cloud.recommendationengine.v1beta1.UserInfo getUserInfo() { if (userInfoBuilder_ == null) { - return userInfo_ == null ? com.google.cloud.recommendationengine.v1beta1.UserInfo.getDefaultInstance() : userInfo_; + return userInfo_ == null + ? com.google.cloud.recommendationengine.v1beta1.UserInfo.getDefaultInstance() + : userInfo_; } else { return userInfoBuilder_.getMessage(); } } /** + * + * *
                * Required. User information.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUserInfo(com.google.cloud.recommendationengine.v1beta1.UserInfo value) { if (userInfoBuilder_ == null) { @@ -1304,11 +1477,15 @@ public Builder setUserInfo(com.google.cloud.recommendationengine.v1beta1.UserInf return this; } /** + * + * *
                * Required. User information.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUserInfo( com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder builderForValue) { @@ -1322,17 +1499,23 @@ public Builder setUserInfo( return this; } /** + * + * *
                * Required. User information.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUserInfo(com.google.cloud.recommendationengine.v1beta1.UserInfo value) { if (userInfoBuilder_ == null) { if (userInfo_ != null) { userInfo_ = - com.google.cloud.recommendationengine.v1beta1.UserInfo.newBuilder(userInfo_).mergeFrom(value).buildPartial(); + com.google.cloud.recommendationengine.v1beta1.UserInfo.newBuilder(userInfo_) + .mergeFrom(value) + .buildPartial(); } else { userInfo_ = value; } @@ -1344,11 +1527,15 @@ public Builder mergeUserInfo(com.google.cloud.recommendationengine.v1beta1.UserI return this; } /** + * + * *
                * Required. User information.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUserInfo() { if (userInfoBuilder_ == null) { @@ -1362,48 +1549,64 @@ public Builder clearUserInfo() { return this; } /** + * + * *
                * Required. User information.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder getUserInfoBuilder() { - + onChanged(); return getUserInfoFieldBuilder().getBuilder(); } /** + * + * *
                * Required. User information.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder getUserInfoOrBuilder() { if (userInfoBuilder_ != null) { return userInfoBuilder_.getMessageOrBuilder(); } else { - return userInfo_ == null ? - com.google.cloud.recommendationengine.v1beta1.UserInfo.getDefaultInstance() : userInfo_; + return userInfo_ == null + ? com.google.cloud.recommendationengine.v1beta1.UserInfo.getDefaultInstance() + : userInfo_; } } /** + * + * *
                * Required. User information.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserInfo, com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder, com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder> + com.google.cloud.recommendationengine.v1beta1.UserInfo, + com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder, + com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder> getUserInfoFieldBuilder() { if (userInfoBuilder_ == null) { - userInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserInfo, com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder, com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder>( - getUserInfo(), - getParentForChildren(), - isClean()); + userInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.UserInfo, + com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder, + com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder>( + getUserInfo(), getParentForChildren(), isClean()); userInfo_ = null; } return userInfoBuilder_; @@ -1411,42 +1614,61 @@ public com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder getUserIn private com.google.cloud.recommendationengine.v1beta1.EventDetail eventDetail_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.EventDetail, com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder, com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder> eventDetailBuilder_; + com.google.cloud.recommendationengine.v1beta1.EventDetail, + com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder, + com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder> + eventDetailBuilder_; /** + * + * *
                * Optional. User event detailed information common across different
                * recommendation types.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the eventDetail field is set. */ public boolean hasEventDetail() { return eventDetailBuilder_ != null || eventDetail_ != null; } /** + * + * *
                * Optional. User event detailed information common across different
                * recommendation types.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventDetail. */ public com.google.cloud.recommendationengine.v1beta1.EventDetail getEventDetail() { if (eventDetailBuilder_ == null) { - return eventDetail_ == null ? com.google.cloud.recommendationengine.v1beta1.EventDetail.getDefaultInstance() : eventDetail_; + return eventDetail_ == null + ? com.google.cloud.recommendationengine.v1beta1.EventDetail.getDefaultInstance() + : eventDetail_; } else { return eventDetailBuilder_.getMessage(); } } /** + * + * *
                * Optional. User event detailed information common across different
                * recommendation types.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEventDetail(com.google.cloud.recommendationengine.v1beta1.EventDetail value) { if (eventDetailBuilder_ == null) { @@ -1462,12 +1684,16 @@ public Builder setEventDetail(com.google.cloud.recommendationengine.v1beta1.Even return this; } /** + * + * *
                * Optional. User event detailed information common across different
                * recommendation types.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEventDetail( com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder builderForValue) { @@ -1481,18 +1707,25 @@ public Builder setEventDetail( return this; } /** + * + * *
                * Optional. User event detailed information common across different
                * recommendation types.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeEventDetail(com.google.cloud.recommendationengine.v1beta1.EventDetail value) { + public Builder mergeEventDetail( + com.google.cloud.recommendationengine.v1beta1.EventDetail value) { if (eventDetailBuilder_ == null) { if (eventDetail_ != null) { eventDetail_ = - com.google.cloud.recommendationengine.v1beta1.EventDetail.newBuilder(eventDetail_).mergeFrom(value).buildPartial(); + com.google.cloud.recommendationengine.v1beta1.EventDetail.newBuilder(eventDetail_) + .mergeFrom(value) + .buildPartial(); } else { eventDetail_ = value; } @@ -1504,12 +1737,16 @@ public Builder mergeEventDetail(com.google.cloud.recommendationengine.v1beta1.Ev return this; } /** + * + * *
                * Optional. User event detailed information common across different
                * recommendation types.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearEventDetail() { if (eventDetailBuilder_ == null) { @@ -1523,51 +1760,69 @@ public Builder clearEventDetail() { return this; } /** + * + * *
                * Optional. User event detailed information common across different
                * recommendation types.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder getEventDetailBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder + getEventDetailBuilder() { + onChanged(); return getEventDetailFieldBuilder().getBuilder(); } /** + * + * *
                * Optional. User event detailed information common across different
                * recommendation types.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder getEventDetailOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder + getEventDetailOrBuilder() { if (eventDetailBuilder_ != null) { return eventDetailBuilder_.getMessageOrBuilder(); } else { - return eventDetail_ == null ? - com.google.cloud.recommendationengine.v1beta1.EventDetail.getDefaultInstance() : eventDetail_; + return eventDetail_ == null + ? com.google.cloud.recommendationengine.v1beta1.EventDetail.getDefaultInstance() + : eventDetail_; } } /** + * + * *
                * Optional. User event detailed information common across different
                * recommendation types.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.EventDetail, com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder, com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder> + com.google.cloud.recommendationengine.v1beta1.EventDetail, + com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder, + com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder> getEventDetailFieldBuilder() { if (eventDetailBuilder_ == null) { - eventDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.EventDetail, com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder, com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder>( - getEventDetail(), - getParentForChildren(), - isClean()); + eventDetailBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.EventDetail, + com.google.cloud.recommendationengine.v1beta1.EventDetail.Builder, + com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder>( + getEventDetail(), getParentForChildren(), isClean()); eventDetail_ = null; } return eventDetailBuilder_; @@ -1575,8 +1830,13 @@ public com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder getEve private com.google.cloud.recommendationengine.v1beta1.ProductEventDetail productEventDetail_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductEventDetail, com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder, com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder> productEventDetailBuilder_; + com.google.cloud.recommendationengine.v1beta1.ProductEventDetail, + com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder, + com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder> + productEventDetailBuilder_; /** + * + * *
                * Optional. Retail product specific user event metadata.
                * This field is required for the following event types:
          @@ -1598,13 +1858,18 @@ public com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder getEve
                * * `home-page-view`
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the productEventDetail field is set. */ public boolean hasProductEventDetail() { return productEventDetailBuilder_ != null || productEventDetail_ != null; } /** + * + * *
                * Optional. Retail product specific user event metadata.
                * This field is required for the following event types:
          @@ -1626,17 +1891,25 @@ public boolean hasProductEventDetail() {
                * * `home-page-view`
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The productEventDetail. */ - public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail getProductEventDetail() { + public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail + getProductEventDetail() { if (productEventDetailBuilder_ == null) { - return productEventDetail_ == null ? com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.getDefaultInstance() : productEventDetail_; + return productEventDetail_ == null + ? com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.getDefaultInstance() + : productEventDetail_; } else { return productEventDetailBuilder_.getMessage(); } } /** + * + * *
                * Optional. Retail product specific user event metadata.
                * This field is required for the following event types:
          @@ -1658,9 +1931,12 @@ public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail getProdu
                * * `home-page-view`
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setProductEventDetail(com.google.cloud.recommendationengine.v1beta1.ProductEventDetail value) { + public Builder setProductEventDetail( + com.google.cloud.recommendationengine.v1beta1.ProductEventDetail value) { if (productEventDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1674,6 +1950,8 @@ public Builder setProductEventDetail(com.google.cloud.recommendationengine.v1bet return this; } /** + * + * *
                * Optional. Retail product specific user event metadata.
                * This field is required for the following event types:
          @@ -1695,7 +1973,9 @@ public Builder setProductEventDetail(com.google.cloud.recommendationengine.v1bet
                * * `home-page-view`
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setProductEventDetail( com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder builderForValue) { @@ -1709,6 +1989,8 @@ public Builder setProductEventDetail( return this; } /** + * + * *
                * Optional. Retail product specific user event metadata.
                * This field is required for the following event types:
          @@ -1730,13 +2012,19 @@ public Builder setProductEventDetail(
                * * `home-page-view`
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeProductEventDetail(com.google.cloud.recommendationengine.v1beta1.ProductEventDetail value) { + public Builder mergeProductEventDetail( + com.google.cloud.recommendationengine.v1beta1.ProductEventDetail value) { if (productEventDetailBuilder_ == null) { if (productEventDetail_ != null) { productEventDetail_ = - com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.newBuilder(productEventDetail_).mergeFrom(value).buildPartial(); + com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.newBuilder( + productEventDetail_) + .mergeFrom(value) + .buildPartial(); } else { productEventDetail_ = value; } @@ -1748,6 +2036,8 @@ public Builder mergeProductEventDetail(com.google.cloud.recommendationengine.v1b return this; } /** + * + * *
                * Optional. Retail product specific user event metadata.
                * This field is required for the following event types:
          @@ -1769,7 +2059,9 @@ public Builder mergeProductEventDetail(com.google.cloud.recommendationengine.v1b
                * * `home-page-view`
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearProductEventDetail() { if (productEventDetailBuilder_ == null) { @@ -1783,6 +2075,8 @@ public Builder clearProductEventDetail() { return this; } /** + * + * *
                * Optional. Retail product specific user event metadata.
                * This field is required for the following event types:
          @@ -1804,14 +2098,19 @@ public Builder clearProductEventDetail() {
                * * `home-page-view`
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder getProductEventDetailBuilder() { - + public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder + getProductEventDetailBuilder() { + onChanged(); return getProductEventDetailFieldBuilder().getBuilder(); } /** + * + * *
                * Optional. Retail product specific user event metadata.
                * This field is required for the following event types:
          @@ -1833,17 +2132,23 @@ public com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder
                * * `home-page-view`
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder getProductEventDetailOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder + getProductEventDetailOrBuilder() { if (productEventDetailBuilder_ != null) { return productEventDetailBuilder_.getMessageOrBuilder(); } else { - return productEventDetail_ == null ? - com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.getDefaultInstance() : productEventDetail_; + return productEventDetail_ == null + ? com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.getDefaultInstance() + : productEventDetail_; } } /** + * + * *
                * Optional. Retail product specific user event metadata.
                * This field is required for the following event types:
          @@ -1865,17 +2170,22 @@ public com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder
                * * `home-page-view`
                * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductEventDetail, com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder, com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder> + com.google.cloud.recommendationengine.v1beta1.ProductEventDetail, + com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder, + com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder> getProductEventDetailFieldBuilder() { if (productEventDetailBuilder_ == null) { - productEventDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.ProductEventDetail, com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder, com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder>( - getProductEventDetail(), - getParentForChildren(), - isClean()); + productEventDetailBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.ProductEventDetail, + com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder, + com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder>( + getProductEventDetail(), getParentForChildren(), isClean()); productEventDetail_ = null; } return productEventDetailBuilder_; @@ -1883,26 +2193,37 @@ public com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder private com.google.protobuf.Timestamp eventTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + eventTimeBuilder_; /** + * + * *
                * Optional. Only required for ImportUserEvents method. Timestamp of user
                * event created.
                * 
          * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return eventTimeBuilder_ != null || eventTime_ != null; } /** + * + * *
                * Optional. Only required for ImportUserEvents method. Timestamp of user
                * event created.
                * 
          * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { @@ -1913,12 +2234,15 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** + * + * *
                * Optional. Only required for ImportUserEvents method. Timestamp of user
                * event created.
                * 
          * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEventTime(com.google.protobuf.Timestamp value) { if (eventTimeBuilder_ == null) { @@ -1934,15 +2258,17 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                * Optional. Only required for ImportUserEvents method. Timestamp of user
                * event created.
                * 
          * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setEventTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (eventTimeBuilder_ == null) { eventTime_ = builderForValue.build(); onChanged(); @@ -1953,18 +2279,21 @@ public Builder setEventTime( return this; } /** + * + * *
                * Optional. Only required for ImportUserEvents method. Timestamp of user
                * event created.
                * 
          * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { if (eventTimeBuilder_ == null) { if (eventTime_ != null) { eventTime_ = - com.google.protobuf.Timestamp.newBuilder(eventTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(eventTime_).mergeFrom(value).buildPartial(); } else { eventTime_ = value; } @@ -1976,12 +2305,15 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                * Optional. Only required for ImportUserEvents method. Timestamp of user
                * event created.
                * 
          * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearEventTime() { if (eventTimeBuilder_ == null) { @@ -1995,51 +2327,62 @@ public Builder clearEventTime() { return this; } /** + * + * *
                * Optional. Only required for ImportUserEvents method. Timestamp of user
                * event created.
                * 
          * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { - + onChanged(); return getEventTimeFieldBuilder().getBuilder(); } /** + * + * *
                * Optional. Only required for ImportUserEvents method. Timestamp of user
                * event created.
                * 
          * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { if (eventTimeBuilder_ != null) { return eventTimeBuilder_.getMessageOrBuilder(); } else { - return eventTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } } /** + * + * *
                * Optional. Only required for ImportUserEvents method. Timestamp of user
                * event created.
                * 
          * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEventTimeFieldBuilder() { if (eventTimeBuilder_ == null) { - eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEventTime(), - getParentForChildren(), - isClean()); + eventTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEventTime(), getParentForChildren(), isClean()); eventTime_ = null; } return eventTimeBuilder_; @@ -2047,85 +2390,115 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { private int eventSource_ = 0; /** + * + * *
                * Optional. This field should *not* be set when using JavaScript pixel
                * or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for eventSource. */ - @java.lang.Override public int getEventSourceValue() { + @java.lang.Override + public int getEventSourceValue() { return eventSource_; } /** + * + * *
                * Optional. This field should *not* be set when using JavaScript pixel
                * or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for eventSource to set. * @return This builder for chaining. */ public Builder setEventSourceValue(int value) { - + eventSource_ = value; onChanged(); return this; } /** + * + * *
                * Optional. This field should *not* be set when using JavaScript pixel
                * or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventSource. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource getEventSource() { @SuppressWarnings("deprecation") - com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource result = com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource.valueOf(eventSource_); - return result == null ? com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource.UNRECOGNIZED : result; + com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource result = + com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource.valueOf(eventSource_); + return result == null + ? com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource.UNRECOGNIZED + : result; } /** + * + * *
                * Optional. This field should *not* be set when using JavaScript pixel
                * or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The eventSource to set. * @return This builder for chaining. */ - public Builder setEventSource(com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource value) { + public Builder setEventSource( + com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource value) { if (value == null) { throw new NullPointerException(); } - + eventSource_ = value.getNumber(); onChanged(); return this; } /** + * + * *
                * Optional. This field should *not* be set when using JavaScript pixel
                * or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearEventSource() { - + eventSource_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2135,12 +2508,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.UserEvent) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.UserEvent) private static final com.google.cloud.recommendationengine.v1beta1.UserEvent DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.UserEvent(); } @@ -2149,16 +2522,16 @@ public static com.google.cloud.recommendationengine.v1beta1.UserEvent getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UserEvent(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserEvent(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2173,6 +2546,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.recommendationengine.v1beta1.UserEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummary.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummary.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummary.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummary.java index 3264c478..7308a81e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummary.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummary.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * A summary of import result. The UserEventImportSummary summarizes
            * the import status for user events.
          @@ -11,30 +28,29 @@
            *
            * Protobuf type {@code google.cloud.recommendationengine.v1beta1.UserEventImportSummary}
            */
          -public final class UserEventImportSummary extends
          -    com.google.protobuf.GeneratedMessageV3 implements
          +public final class UserEventImportSummary extends com.google.protobuf.GeneratedMessageV3
          +    implements
               // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.UserEventImportSummary)
               UserEventImportSummaryOrBuilder {
          -private static final long serialVersionUID = 0L;
          +  private static final long serialVersionUID = 0L;
             // Use UserEventImportSummary.newBuilder() to construct.
             private UserEventImportSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) {
               super(builder);
             }
          -  private UserEventImportSummary() {
          -  }
          +
          +  private UserEventImportSummary() {}
           
             @java.lang.Override
             @SuppressWarnings({"unused"})
          -  protected java.lang.Object newInstance(
          -      UnusedPrivateParameter unused) {
          +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
               return new UserEventImportSummary();
             }
           
             @java.lang.Override
          -  public final com.google.protobuf.UnknownFieldSet
          -  getUnknownFields() {
          +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
               return this.unknownFields;
             }
          +
             private UserEventImportSummary(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          @@ -53,23 +69,23 @@ private UserEventImportSummary(
                     case 0:
                       done = true;
                       break;
          -          case 8: {
          -
          -            joinedEventsCount_ = input.readInt64();
          -            break;
          -          }
          -          case 16: {
          -
          -            unjoinedEventsCount_ = input.readInt64();
          -            break;
          -          }
          -          default: {
          -            if (!parseUnknownField(
          -                input, unknownFields, extensionRegistry, tag)) {
          -              done = true;
          +          case 8:
          +            {
          +              joinedEventsCount_ = input.readInt64();
          +              break;
          +            }
          +          case 16:
          +            {
          +              unjoinedEventsCount_ = input.readInt64();
          +              break;
          +            }
          +          default:
          +            {
          +              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
          +                done = true;
          +              }
          +              break;
                       }
          -            break;
          -          }
                   }
                 }
               } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          @@ -77,34 +93,39 @@ private UserEventImportSummary(
               } catch (com.google.protobuf.UninitializedMessageException e) {
                 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
               } catch (java.io.IOException e) {
          -      throw new com.google.protobuf.InvalidProtocolBufferException(
          -          e).setUnfinishedMessage(this);
          +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
               } finally {
                 this.unknownFields = unknownFields.build();
                 makeExtensionsImmutable();
               }
             }
          -  public static final com.google.protobuf.Descriptors.Descriptor
          -      getDescriptor() {
          -    return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor;
          +
          +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +    return com.google.cloud.recommendationengine.v1beta1.Import
          +        .internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor;
             }
           
             @java.lang.Override
             protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                 internalGetFieldAccessorTable() {
          -    return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_fieldAccessorTable
          +    return com.google.cloud.recommendationengine.v1beta1.Import
          +        .internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_fieldAccessorTable
                   .ensureFieldAccessorsInitialized(
          -            com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.class, com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder.class);
          +            com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.class,
          +            com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder.class);
             }
           
             public static final int JOINED_EVENTS_COUNT_FIELD_NUMBER = 1;
             private long joinedEventsCount_;
             /**
          +   *
          +   *
              * 
              * Count of user events imported with complete existing catalog information.
              * 
          * * int64 joined_events_count = 1; + * * @return The joinedEventsCount. */ @java.lang.Override @@ -115,12 +136,15 @@ public long getJoinedEventsCount() { public static final int UNJOINED_EVENTS_COUNT_FIELD_NUMBER = 2; private long unjoinedEventsCount_; /** + * + * *
              * Count of user events imported, but with catalog information not found
              * in the imported catalog.
              * 
          * * int64 unjoined_events_count = 2; + * * @return The unjoinedEventsCount. */ @java.lang.Override @@ -129,6 +153,7 @@ public long getUnjoinedEventsCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,8 +165,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (joinedEventsCount_ != 0L) { output.writeInt64(1, joinedEventsCount_); } @@ -158,12 +182,10 @@ public int getSerializedSize() { size = 0; if (joinedEventsCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, joinedEventsCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, joinedEventsCount_); } if (unjoinedEventsCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, unjoinedEventsCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, unjoinedEventsCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -173,17 +195,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary other = (com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary) obj; + com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary other = + (com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary) obj; - if (getJoinedEventsCount() - != other.getJoinedEventsCount()) return false; - if (getUnjoinedEventsCount() - != other.getUnjoinedEventsCount()) return false; + if (getJoinedEventsCount() != other.getJoinedEventsCount()) return false; + if (getUnjoinedEventsCount() != other.getUnjoinedEventsCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -196,107 +217,114 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + JOINED_EVENTS_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getJoinedEventsCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getJoinedEventsCount()); hash = (37 * hash) + UNJOINED_EVENTS_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUnjoinedEventsCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUnjoinedEventsCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * A summary of import result. The UserEventImportSummary summarizes
              * the import status for user events.
          @@ -304,38 +332,40 @@ protected Builder newBuilderForType(
              *
              * Protobuf type {@code google.cloud.recommendationengine.v1beta1.UserEventImportSummary}
              */
          -  public static final class Builder extends
          -      com.google.protobuf.GeneratedMessageV3.Builder implements
          +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
          +      implements
                 // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.UserEventImportSummary)
                 com.google.cloud.recommendationengine.v1beta1.UserEventImportSummaryOrBuilder {
          -    public static final com.google.protobuf.Descriptors.Descriptor
          -        getDescriptor() {
          -      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor;
          +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          +      return com.google.cloud.recommendationengine.v1beta1.Import
          +          .internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor;
               }
           
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
          -      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_fieldAccessorTable
          +      return com.google.cloud.recommendationengine.v1beta1.Import
          +          .internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
          -              com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.class, com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder.class);
          +              com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.class,
          +              com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.Builder.class);
               }
           
          -    // Construct using com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.newBuilder()
          +    // Construct using
          +    // com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.newBuilder()
               private Builder() {
                 maybeForceBuilderInitialization();
               }
           
          -    private Builder(
          -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
          +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 super(parent);
                 maybeForceBuilderInitialization();
               }
          +
               private void maybeForceBuilderInitialization() {
          -      if (com.google.protobuf.GeneratedMessageV3
          -              .alwaysUseFieldBuilders) {
          -      }
          +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
               }
          +
               @java.lang.Override
               public Builder clear() {
                 super.clear();
          @@ -347,14 +377,16 @@ public Builder clear() {
               }
           
               @java.lang.Override
          -    public com.google.protobuf.Descriptors.Descriptor
          -        getDescriptorForType() {
          -      return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor;
          +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
          +      return com.google.cloud.recommendationengine.v1beta1.Import
          +          .internal_static_google_cloud_recommendationengine_v1beta1_UserEventImportSummary_descriptor;
               }
           
               @java.lang.Override
          -    public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary getDefaultInstanceForType() {
          -      return com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.getDefaultInstance();
          +    public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary
          +        getDefaultInstanceForType() {
          +      return com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary
          +          .getDefaultInstance();
               }
           
               @java.lang.Override
          @@ -368,7 +400,8 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary buil
           
               @java.lang.Override
               public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary buildPartial() {
          -      com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary result = new com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary(this);
          +      com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary result =
          +          new com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary(this);
                 result.joinedEventsCount_ = joinedEventsCount_;
                 result.unjoinedEventsCount_ = unjoinedEventsCount_;
                 onBuilt();
          @@ -379,46 +412,51 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary buil
               public Builder clone() {
                 return super.clone();
               }
          +
               @java.lang.Override
               public Builder setField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                 return super.setField(field, value);
               }
          +
               @java.lang.Override
          -    public Builder clearField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field) {
          +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                 return super.clearField(field);
               }
          +
               @java.lang.Override
          -    public Builder clearOneof(
          -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
          +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                 return super.clearOneof(oneof);
               }
          +
               @java.lang.Override
               public Builder setRepeatedField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        int index, java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                 return super.setRepeatedField(field, index, value);
               }
          +
               @java.lang.Override
               public Builder addRepeatedField(
          -        com.google.protobuf.Descriptors.FieldDescriptor field,
          -        java.lang.Object value) {
          +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                 return super.addRepeatedField(field, value);
               }
          +
               @java.lang.Override
               public Builder mergeFrom(com.google.protobuf.Message other) {
                 if (other instanceof com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary) {
          -        return mergeFrom((com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary)other);
          +        return mergeFrom(
          +            (com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary) other);
                 } else {
                   super.mergeFrom(other);
                   return this;
                 }
               }
           
          -    public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary other) {
          -      if (other == com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary.getDefaultInstance()) return this;
          +    public Builder mergeFrom(
          +        com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary other) {
          +      if (other
          +          == com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary
          +              .getDefaultInstance()) return this;
                 if (other.getJoinedEventsCount() != 0L) {
                   setJoinedEventsCount(other.getJoinedEventsCount());
                 }
          @@ -444,7 +482,9 @@ public Builder mergeFrom(
                 try {
                   parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          -        parsedMessage = (com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary) e.getUnfinishedMessage();
          +        parsedMessage =
          +            (com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary)
          +                e.getUnfinishedMessage();
                   throw e.unwrapIOException();
                 } finally {
                   if (parsedMessage != null) {
          @@ -454,13 +494,16 @@ public Builder mergeFrom(
                 return this;
               }
           
          -    private long joinedEventsCount_ ;
          +    private long joinedEventsCount_;
               /**
          +     *
          +     *
                * 
                * Count of user events imported with complete existing catalog information.
                * 
          * * int64 joined_events_count = 1; + * * @return The joinedEventsCount. */ @java.lang.Override @@ -468,43 +511,52 @@ public long getJoinedEventsCount() { return joinedEventsCount_; } /** + * + * *
                * Count of user events imported with complete existing catalog information.
                * 
          * * int64 joined_events_count = 1; + * * @param value The joinedEventsCount to set. * @return This builder for chaining. */ public Builder setJoinedEventsCount(long value) { - + joinedEventsCount_ = value; onChanged(); return this; } /** + * + * *
                * Count of user events imported with complete existing catalog information.
                * 
          * * int64 joined_events_count = 1; + * * @return This builder for chaining. */ public Builder clearJoinedEventsCount() { - + joinedEventsCount_ = 0L; onChanged(); return this; } - private long unjoinedEventsCount_ ; + private long unjoinedEventsCount_; /** + * + * *
                * Count of user events imported, but with catalog information not found
                * in the imported catalog.
                * 
          * * int64 unjoined_events_count = 2; + * * @return The unjoinedEventsCount. */ @java.lang.Override @@ -512,39 +564,45 @@ public long getUnjoinedEventsCount() { return unjoinedEventsCount_; } /** + * + * *
                * Count of user events imported, but with catalog information not found
                * in the imported catalog.
                * 
          * * int64 unjoined_events_count = 2; + * * @param value The unjoinedEventsCount to set. * @return This builder for chaining. */ public Builder setUnjoinedEventsCount(long value) { - + unjoinedEventsCount_ = value; onChanged(); return this; } /** + * + * *
                * Count of user events imported, but with catalog information not found
                * in the imported catalog.
                * 
          * * int64 unjoined_events_count = 2; + * * @return This builder for chaining. */ public Builder clearUnjoinedEventsCount() { - + unjoinedEventsCount_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -554,30 +612,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.UserEventImportSummary) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.UserEventImportSummary) - private static final com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary(); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserEventImportSummary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UserEventImportSummary(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserEventImportSummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserEventImportSummary(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -589,9 +649,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.UserEventImportSummary + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummaryOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummaryOrBuilder.java similarity index 55% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummaryOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummaryOrBuilder.java index bc0729e1..f44d4ccd 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummaryOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventImportSummaryOrBuilder.java @@ -1,29 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; -public interface UserEventImportSummaryOrBuilder extends +public interface UserEventImportSummaryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.UserEventImportSummary) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Count of user events imported with complete existing catalog information.
              * 
          * * int64 joined_events_count = 1; + * * @return The joinedEventsCount. */ long getJoinedEventsCount(); /** + * + * *
              * Count of user events imported, but with catalog information not found
              * in the imported catalog.
              * 
          * * int64 unjoined_events_count = 2; + * * @return The unjoinedEventsCount. */ long getUnjoinedEventsCount(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSource.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSource.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSource.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSource.java index e4dd3c3c..2de9885c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSource.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSource.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/import.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * The inline source for the input config for ImportUserEvents method.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.UserEventInlineSource} */ -public final class UserEventInlineSource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UserEventInlineSource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.UserEventInlineSource) UserEventInlineSourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UserEventInlineSource.newBuilder() to construct. private UserEventInlineSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UserEventInlineSource() { userEvents_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UserEventInlineSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UserEventInlineSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,27 @@ private UserEventInlineSource( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - userEvents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + userEvents_ = + new java.util.ArrayList< + com.google.cloud.recommendationengine.v1beta1.UserEvent>(); + mutable_bitField0_ |= 0x00000001; + } + userEvents_.add( + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.UserEvent.parser(), + extensionRegistry)); + break; } - userEvents_.add( - input.readMessage(com.google.cloud.recommendationengine.v1beta1.UserEvent.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +99,7 @@ private UserEventInlineSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { userEvents_ = java.util.Collections.unmodifiableList(userEvents_); @@ -87,72 +108,96 @@ private UserEventInlineSource( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.class, com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder.class); + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.class, + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder.class); } public static final int USER_EVENTS_FIELD_NUMBER = 1; private java.util.List userEvents_; /** + * + * *
              * Optional. A list of user events to import. Recommended max of 10k items.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getUserEventsList() { + public java.util.List + getUserEventsList() { return userEvents_; } /** + * + * *
              * Optional. A list of user events to import. Recommended max of 10k items.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getUserEventsOrBuilderList() { return userEvents_; } /** + * + * *
              * Optional. A list of user events to import. Recommended max of 10k items.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getUserEventsCount() { return userEvents_.size(); } /** + * + * *
              * Optional. A list of user events to import. Recommended max of 10k items.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvents(int index) { return userEvents_.get(index); } /** + * + * *
              * Optional. A list of user events to import. Recommended max of 10k items.
              * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventsOrBuilder( @@ -161,6 +206,7 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserE } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +218,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < userEvents_.size(); i++) { output.writeMessage(1, userEvents_.get(i)); } @@ -187,8 +232,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < userEvents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, userEvents_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, userEvents_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +242,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource other = (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) obj; + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource other = + (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) obj; - if (!getUserEventsList() - .equals(other.getUserEventsList())) return false; + if (!getUserEventsList().equals(other.getUserEventsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,135 +272,147 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * The inline source for the input config for ImportUserEvents method.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.UserEventInlineSource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.UserEventInlineSource) com.google.cloud.recommendationengine.v1beta1.UserEventInlineSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.class, com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder.class); + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.class, + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.Builder.class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getUserEventsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,14 +426,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.Import.internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.Import + .internal_static_google_cloud_recommendationengine_v1beta1_UserEventInlineSource_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource + .getDefaultInstance(); } @java.lang.Override @@ -391,7 +449,8 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource build @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource buildPartial() { - com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource result = new com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource(this); + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource result = + new com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource(this); int from_bitField0_ = bitField0_; if (userEventsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,46 +469,51 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource)other); + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource other) { - if (other == com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource + .getDefaultInstance()) return this; if (userEventsBuilder_ == null) { if (!other.userEvents_.isEmpty()) { if (userEvents_.isEmpty()) { @@ -468,9 +532,10 @@ public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.UserEvent userEventsBuilder_ = null; userEvents_ = other.userEvents_; bitField0_ = (bitField0_ & ~0x00000001); - userEventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getUserEventsFieldBuilder() : null; + userEventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getUserEventsFieldBuilder() + : null; } else { userEventsBuilder_.addAllMessages(other.userEvents_); } @@ -495,7 +560,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,28 +571,40 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List userEvents_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureUserEventsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - userEvents_ = new java.util.ArrayList(userEvents_); + userEvents_ = + new java.util.ArrayList( + userEvents_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> userEventsBuilder_; + com.google.cloud.recommendationengine.v1beta1.UserEvent, + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, + com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> + userEventsBuilder_; /** + * + * *
                * Optional. A list of user events to import. Recommended max of 10k items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getUserEventsList() { + public java.util.List + getUserEventsList() { if (userEventsBuilder_ == null) { return java.util.Collections.unmodifiableList(userEvents_); } else { @@ -533,11 +612,15 @@ public java.util.List g } } /** + * + * *
                * Optional. A list of user events to import. Recommended max of 10k items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getUserEventsCount() { if (userEventsBuilder_ == null) { @@ -547,11 +630,15 @@ public int getUserEventsCount() { } } /** + * + * *
                * Optional. A list of user events to import. Recommended max of 10k items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvents(int index) { if (userEventsBuilder_ == null) { @@ -561,11 +648,15 @@ public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvents(int } } /** + * + * *
                * Optional. A list of user events to import. Recommended max of 10k items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUserEvents( int index, com.google.cloud.recommendationengine.v1beta1.UserEvent value) { @@ -582,14 +673,19 @@ public Builder setUserEvents( return this; } /** + * + * *
                * Optional. A list of user events to import. Recommended max of 10k items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUserEvents( - int index, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { + int index, + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { if (userEventsBuilder_ == null) { ensureUserEventsIsMutable(); userEvents_.set(index, builderForValue.build()); @@ -600,11 +696,15 @@ public Builder setUserEvents( return this; } /** + * + * *
                * Optional. A list of user events to import. Recommended max of 10k items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addUserEvents(com.google.cloud.recommendationengine.v1beta1.UserEvent value) { if (userEventsBuilder_ == null) { @@ -620,11 +720,15 @@ public Builder addUserEvents(com.google.cloud.recommendationengine.v1beta1.UserE return this; } /** + * + * *
                * Optional. A list of user events to import. Recommended max of 10k items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addUserEvents( int index, com.google.cloud.recommendationengine.v1beta1.UserEvent value) { @@ -641,11 +745,15 @@ public Builder addUserEvents( return this; } /** + * + * *
                * Optional. A list of user events to import. Recommended max of 10k items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addUserEvents( com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { @@ -659,14 +767,19 @@ public Builder addUserEvents( return this; } /** + * + * *
                * Optional. A list of user events to import. Recommended max of 10k items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addUserEvents( - int index, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { + int index, + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { if (userEventsBuilder_ == null) { ensureUserEventsIsMutable(); userEvents_.add(index, builderForValue.build()); @@ -677,18 +790,22 @@ public Builder addUserEvents( return this; } /** + * + * *
                * Optional. A list of user events to import. Recommended max of 10k items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllUserEvents( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (userEventsBuilder_ == null) { ensureUserEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, userEvents_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userEvents_); onChanged(); } else { userEventsBuilder_.addAllMessages(values); @@ -696,11 +813,15 @@ public Builder addAllUserEvents( return this; } /** + * + * *
                * Optional. A list of user events to import. Recommended max of 10k items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUserEvents() { if (userEventsBuilder_ == null) { @@ -713,11 +834,15 @@ public Builder clearUserEvents() { return this; } /** + * + * *
                * Optional. A list of user events to import. Recommended max of 10k items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeUserEvents(int index) { if (userEventsBuilder_ == null) { @@ -730,39 +855,53 @@ public Builder removeUserEvents(int index) { return this; } /** + * + * *
                * Optional. A list of user events to import. Recommended max of 10k items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder getUserEventsBuilder( int index) { return getUserEventsFieldBuilder().getBuilder(index); } /** + * + * *
                * Optional. A list of user events to import. Recommended max of 10k items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventsOrBuilder( int index) { if (userEventsBuilder_ == null) { - return userEvents_.get(index); } else { + return userEvents_.get(index); + } else { return userEventsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                * Optional. A list of user events to import. Recommended max of 10k items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getUserEventsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> + getUserEventsOrBuilderList() { if (userEventsBuilder_ != null) { return userEventsBuilder_.getMessageOrBuilderList(); } else { @@ -770,56 +909,72 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserE } } /** + * + * *
                * Optional. A list of user events to import. Recommended max of 10k items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder addUserEventsBuilder() { - return getUserEventsFieldBuilder().addBuilder( - com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); + return getUserEventsFieldBuilder() + .addBuilder(com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); } /** + * + * *
                * Optional. A list of user events to import. Recommended max of 10k items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder addUserEventsBuilder( int index) { - return getUserEventsFieldBuilder().addBuilder( - index, com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); + return getUserEventsFieldBuilder() + .addBuilder( + index, com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance()); } /** + * + * *
                * Optional. A list of user events to import. Recommended max of 10k items.
                * 
          * - * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getUserEventsBuilderList() { + public java.util.List + getUserEventsBuilderList() { return getUserEventsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> + com.google.cloud.recommendationengine.v1beta1.UserEvent, + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, + com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> getUserEventsFieldBuilder() { if (userEventsBuilder_ == null) { - userEventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder>( - userEvents_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + userEventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.UserEvent, + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, + com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder>( + userEvents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); userEvents_ = null; } return userEventsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,30 +984,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.UserEventInlineSource) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.UserEventInlineSource) - private static final com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource(); } - public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserEventInlineSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UserEventInlineSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserEventInlineSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserEventInlineSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -864,9 +1021,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.UserEventInlineSource + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSourceOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSourceOrBuilder.java new file mode 100644 index 00000000..014044fd --- /dev/null +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventInlineSourceOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/import.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public interface UserEventInlineSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.UserEventInlineSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Optional. A list of user events to import. Recommended max of 10k items.
          +   * 
          + * + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getUserEventsList(); + /** + * + * + *
          +   * Optional. A list of user events to import. Recommended max of 10k items.
          +   * 
          + * + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvents(int index); + /** + * + * + *
          +   * Optional. A list of user events to import. Recommended max of 10k items.
          +   * 
          + * + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getUserEventsCount(); + /** + * + * + *
          +   * Optional. A list of user events to import. Recommended max of 10k items.
          +   * 
          + * + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getUserEventsOrBuilderList(); + /** + * + * + *
          +   * Optional. A list of user events to import. Recommended max of 10k items.
          +   * 
          + * + * + * repeated .google.cloud.recommendationengine.v1beta1.UserEvent user_events = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventsOrBuilder( + int index); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOrBuilder.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOrBuilder.java index 6f328df9..997e680d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; -public interface UserEventOrBuilder extends +public interface UserEventOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.UserEvent) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required. User event type. Allowed values are:
              * * `add-to-cart` Products being added to cart.
          @@ -29,10 +47,13 @@ public interface UserEventOrBuilder extends
              * 
          * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The eventType. */ java.lang.String getEventType(); /** + * + * *
              * Required. User event type. Allowed values are:
              * * `add-to-cart` Products being added to cart.
          @@ -54,69 +75,99 @@ public interface UserEventOrBuilder extends
              * 
          * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for eventType. */ - com.google.protobuf.ByteString - getEventTypeBytes(); + com.google.protobuf.ByteString getEventTypeBytes(); /** + * + * *
              * Required. User information.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the userInfo field is set. */ boolean hasUserInfo(); /** + * + * *
              * Required. User information.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The userInfo. */ com.google.cloud.recommendationengine.v1beta1.UserInfo getUserInfo(); /** + * + * *
              * Required. User information.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder getUserInfoOrBuilder(); /** + * + * *
              * Optional. User event detailed information common across different
              * recommendation types.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the eventDetail field is set. */ boolean hasEventDetail(); /** + * + * *
              * Optional. User event detailed information common across different
              * recommendation types.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventDetail. */ com.google.cloud.recommendationengine.v1beta1.EventDetail getEventDetail(); /** + * + * *
              * Optional. User event detailed information common across different
              * recommendation types.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.recommendationengine.v1beta1.EventDetailOrBuilder getEventDetailOrBuilder(); /** + * + * *
              * Optional. Retail product specific user event metadata.
              * This field is required for the following event types:
          @@ -138,11 +189,16 @@ public interface UserEventOrBuilder extends
              * * `home-page-view`
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the productEventDetail field is set. */ boolean hasProductEventDetail(); /** + * + * *
              * Optional. Retail product specific user event metadata.
              * This field is required for the following event types:
          @@ -164,11 +220,16 @@ public interface UserEventOrBuilder extends
              * * `home-page-view`
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The productEventDetail. */ com.google.cloud.recommendationengine.v1beta1.ProductEventDetail getProductEventDetail(); /** + * + * *
              * Optional. Retail product specific user event metadata.
              * This field is required for the following event types:
          @@ -190,57 +251,81 @@ public interface UserEventOrBuilder extends
              * * `home-page-view`
              * 
          * - * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder getProductEventDetailOrBuilder(); + com.google.cloud.recommendationengine.v1beta1.ProductEventDetailOrBuilder + getProductEventDetailOrBuilder(); /** + * + * *
              * Optional. Only required for ImportUserEvents method. Timestamp of user
              * event created.
              * 
          * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** + * + * *
              * Optional. Only required for ImportUserEvents method. Timestamp of user
              * event created.
              * 
          * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** + * + * *
              * Optional. Only required for ImportUserEvents method. Timestamp of user
              * event created.
              * 
          * - * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder(); /** + * + * *
              * Optional. This field should *not* be set when using JavaScript pixel
              * or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for eventSource. */ int getEventSourceValue(); /** + * + * *
              * Optional. This field should *not* be set when using JavaScript pixel
              * or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The eventSource. */ com.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource getEventSource(); diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOuterClass.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOuterClass.java new file mode 100644 index 00000000..c256d076 --- /dev/null +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventOuterClass.java @@ -0,0 +1,251 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/user_event.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public final class UserEventOuterClass { + private UserEventOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n:google/cloud/recommendationengine/v1be" + + "ta1/user_event.proto\022)google.cloud.recom" + + "mendationengine.v1beta1\032\037google/api/fiel" + + "d_behavior.proto\0327google/cloud/recommend" + + "ationengine/v1beta1/catalog.proto\0326googl" + + "e/cloud/recommendationengine/v1beta1/com" + + "mon.proto\032\037google/protobuf/timestamp.pro" + + "to\032\034google/api/annotations.proto\"\222\004\n\tUse" + + "rEvent\022\027\n\nevent_type\030\001 \001(\tB\003\340A\002\022K\n\tuser_" + + "info\030\002 \001(\01323.google.cloud.recommendation" + + "engine.v1beta1.UserInfoB\003\340A\002\022Q\n\014event_de" + + "tail\030\003 \001(\01326.google.cloud.recommendation" + + "engine.v1beta1.EventDetailB\003\340A\001\022`\n\024produ" + + "ct_event_detail\030\004 \001(\0132=.google.cloud.rec" + + "ommendationengine.v1beta1.ProductEventDe" + + "tailB\003\340A\001\0223\n\nevent_time\030\005 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\001\022[\n\014event_source\030\006" + + " \001(\0162@.google.cloud.recommendationengine" + + ".v1beta1.UserEvent.EventSourceB\003\340A\001\"X\n\013E" + + "ventSource\022\034\n\030EVENT_SOURCE_UNSPECIFIED\020\000" + + "\022\n\n\006AUTOML\020\001\022\r\n\tECOMMERCE\020\002\022\020\n\014BATCH_UPL" + + "OAD\020\003\"\215\001\n\010UserInfo\022\027\n\nvisitor_id\030\001 \001(\tB\003" + + "\340A\002\022\024\n\007user_id\030\002 \001(\tB\003\340A\001\022\027\n\nip_address\030" + + "\003 \001(\tB\003\340A\001\022\027\n\nuser_agent\030\004 \001(\tB\003\340A\001\022 \n\023d" + + "irect_user_request\030\005 \001(\010B\003\340A\001\"\353\001\n\013EventD" + + "etail\022\020\n\003uri\030\001 \001(\tB\003\340A\001\022\031\n\014referrer_uri\030" + + "\006 \001(\tB\003\340A\001\022\031\n\014page_view_id\030\002 \001(\tB\003\340A\001\022\033\n" + + "\016experiment_ids\030\003 \003(\tB\003\340A\001\022!\n\024recommenda" + + "tion_token\030\004 \001(\tB\003\340A\001\022T\n\020event_attribute" + + "s\030\005 \001(\01325.google.cloud.recommendationeng" + + "ine.v1beta1.FeatureMapB\003\340A\001\"\352\002\n\022ProductE" + + "ventDetail\022\024\n\014search_query\030\001 \001(\t\022a\n\017page" + + "_categories\030\002 \003(\0132H.google.cloud.recomme" + + "ndationengine.v1beta1.CatalogItem.Catego" + + "ryHierarchy\022Q\n\017product_details\030\003 \003(\01328.g" + + "oogle.cloud.recommendationengine.v1beta1" + + ".ProductDetail\022\017\n\007list_id\030\004 \001(\t\022\024\n\007cart_" + + "id\030\005 \001(\tB\003\340A\001\022a\n\024purchase_transaction\030\006 " + + "\001(\0132>.google.cloud.recommendationengine." + + "v1beta1.PurchaseTransactionB\003\340A\001\"\362\002\n\023Pur" + + "chaseTransaction\022\017\n\002id\030\001 \001(\tB\003\340A\001\022\024\n\007rev" + + "enue\030\002 \001(\002B\003\340A\002\022]\n\005taxes\030\003 \003(\0132I.google." + + "cloud.recommendationengine.v1beta1.Purch" + + "aseTransaction.TaxesEntryB\003\340A\001\022]\n\005costs\030" + + "\004 \003(\0132I.google.cloud.recommendationengin" + + "e.v1beta1.PurchaseTransaction.CostsEntry" + + "B\003\340A\001\022\032\n\rcurrency_code\030\006 \001(\tB\003\340A\002\032,\n\nTax" + + "esEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\002:\0028\001\032" + + ",\n\nCostsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\002:\0028\001\"\346\002\n\rProductDetail\022\017\n\002id\030\001 \001(\tB\003\340A\002" + + "\022\032\n\rcurrency_code\030\002 \001(\tB\003\340A\001\022\033\n\016original" + + "_price\030\003 \001(\002B\003\340A\001\022\032\n\rdisplay_price\030\004 \001(\002" + + "B\003\340A\001\022b\n\013stock_state\030\005 \001(\0162H.google.clou" + + "d.recommendationengine.v1beta1.ProductCa" + + "talogItem.StockStateB\003\340A\001\022\025\n\010quantity\030\006 " + + "\001(\005B\003\340A\001\022\037\n\022available_quantity\030\007 \001(\005B\003\340A" + + "\001\022S\n\017item_attributes\030\010 \001(\01325.google.clou" + + "d.recommendationengine.v1beta1.FeatureMa" + + "pB\003\340A\001B\237\002\n-com.google.cloud.recommendati" + + "onengine.v1beta1P\001Z]google.golang.org/ge" + + "nproto/googleapis/cloud/recommendationen" + + "gine/v1beta1;recommendationengine\242\002\005RECA" + + "I\252\002)Google.Cloud.RecommendationEngine.V1" + + "Beta1\312\002)Google\\Cloud\\RecommendationEngin" + + "e\\V1beta1\352\002,Google::Cloud::Recommendatio" + + "nEngine::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.Common.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_UserEvent_descriptor, + new java.lang.String[] { + "EventType", + "UserInfo", + "EventDetail", + "ProductEventDetail", + "EventTime", + "EventSource", + }); + internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor, + new java.lang.String[] { + "VisitorId", "UserId", "IpAddress", "UserAgent", "DirectUserRequest", + }); + internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_EventDetail_descriptor, + new java.lang.String[] { + "Uri", + "ReferrerUri", + "PageViewId", + "ExperimentIds", + "RecommendationToken", + "EventAttributes", + }); + internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ProductEventDetail_descriptor, + new java.lang.String[] { + "SearchQuery", + "PageCategories", + "ProductDetails", + "ListId", + "CartId", + "PurchaseTransaction", + }); + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor, + new java.lang.String[] { + "Id", "Revenue", "Taxes", "Costs", "CurrencyCode", + }); + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_TaxesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_descriptor = + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PurchaseTransaction_CostsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ProductDetail_descriptor, + new java.lang.String[] { + "Id", + "CurrencyCode", + "OriginalPrice", + "DisplayPrice", + "StockState", + "Quantity", + "AvailableQuantity", + "ItemAttributes", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.Catalog.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.Common.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceOuterClass.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceOuterClass.java new file mode 100644 index 00000000..0240228f --- /dev/null +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserEventServiceOuterClass.java @@ -0,0 +1,248 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/user_event_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public final class UserEventServiceOuterClass { + private UserEventServiceOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nBgoogle/cloud/recommendationengine/v1be" + + "ta1/user_event_service.proto\022)google.clo" + + "ud.recommendationengine.v1beta1\032\034google/" + + "api/annotations.proto\032\037google/api/field_" + + "behavior.proto\032\031google/api/httpbody.prot" + + "o\032\031google/api/resource.proto\0326google/clo" + + "ud/recommendationengine/v1beta1/import.p" + + "roto\032:google/cloud/recommendationengine/" + + "v1beta1/user_event.proto\032#google/longrun" + + "ning/operations.proto\032\037google/protobuf/t" + + "imestamp.proto\032\026google/type/date.proto\032\027" + + "google/api/client.proto\"\211\001\n\026PurgeUserEve" + + "ntsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.reco" + + "mmendationengine.googleapis.com/EventSto" + + "re\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\022\n\005force\030\003 \001(\010B\003" + + "\340A\001\"b\n\027PurgeUserEventsMetadata\022\026\n\016operat" + + "ion_name\030\001 \001(\t\022/\n\013create_time\030\002 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\"\210\001\n\027PurgeUserEve" + + "ntsResponse\022\033\n\023purged_events_count\030\001 \001(\003" + + "\022P\n\022user_events_sample\030\002 \003(\01324.google.cl" + + "oud.recommendationengine.v1beta1.UserEve" + + "nt\"\256\001\n\025WriteUserEventRequest\022F\n\006parent\030\001" + + " \001(\tB6\340A\002\372A0\n.recommendationengine.googl" + + "eapis.com/EventStore\022M\n\nuser_event\030\002 \001(\013" + + "24.google.cloud.recommendationengine.v1b" + + "eta1.UserEventB\003\340A\002\"\236\001\n\027CollectUserEvent" + + "Request\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.recomme" + + "ndationengine.googleapis.com/EventStore\022" + + "\027\n\nuser_event\030\002 \001(\tB\003\340A\002\022\020\n\003uri\030\003 \001(\tB\003\340" + + "A\001\022\020\n\003ets\030\004 \001(\003B\003\340A\001\"\245\001\n\025ListUserEventsR" + + "equest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.recommen" + + "dationengine.googleapis.com/EventStore\022\026" + + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" + + "(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\"|\n\026ListUser" + + "EventsResponse\022I\n\013user_events\030\001 \003(\01324.go" + + "ogle.cloud.recommendationengine.v1beta1." + + "UserEvent\022\027\n\017next_page_token\030\002 \001(\t2\330\014\n\020U" + + "serEventService\022\204\002\n\016WriteUserEvent\022@.goo" + + "gle.cloud.recommendationengine.v1beta1.W" + + "riteUserEventRequest\0324.google.cloud.reco" + + "mmendationengine.v1beta1.UserEvent\"z\202\323\344\223" + + "\002`\"R/v1beta1/{parent=projects/*/location" + + "s/*/catalogs/*/eventStores/*}/userEvents" + + ":write:\nuser_event\332A\021parent,user_event\022\346" + + "\001\n\020CollectUserEvent\022B.google.cloud.recom" + + "mendationengine.v1beta1.CollectUserEvent" + + "Request\032\024.google.api.HttpBody\"x\202\323\344\223\002V\022T/" + + "v1beta1/{parent=projects/*/locations/*/c" + + "atalogs/*/eventStores/*}/userEvents:coll" + + "ect\332A\031parent,user_event,uri,ets\022\373\001\n\016List" + + "UserEvents\022@.google.cloud.recommendation" + + "engine.v1beta1.ListUserEventsRequest\032A.g" + + "oogle.cloud.recommendationengine.v1beta1" + + ".ListUserEventsResponse\"d\202\323\344\223\002N\022L/v1beta" + + "1/{parent=projects/*/locations/*/catalog" + + "s/*/eventStores/*}/userEvents\332A\rparent,f" + + "ilter\022\363\002\n\017PurgeUserEvents\022A.google.cloud" + + ".recommendationengine.v1beta1.PurgeUserE" + + "ventsRequest\032\035.google.longrunning.Operat" + + "ion\"\375\001\202\323\344\223\002W\"R/v1beta1/{parent=projects/" + + "*/locations/*/catalogs/*/eventStores/*}/" + + "userEvents:purge:\001*\312A\206\001\nAgoogle.cloud.re" + + "commendationengine.v1beta1.PurgeUserEven" + + "tsResponse\022Agoogle.cloud.recommendatione" + + "ngine.v1beta1.PurgeUserEventsMetadata\332A\023" + + "parent,filter,force\022\206\003\n\020ImportUserEvents" + + "\022B.google.cloud.recommendationengine.v1b" + + "eta1.ImportUserEventsRequest\032\035.google.lo" + + "ngrunning.Operation\"\216\002\202\323\344\223\002X\"S/v1beta1/{" + + "parent=projects/*/locations/*/catalogs/*" + + "/eventStores/*}/userEvents:import:\001*\312A~\n" + + "Bgoogle.cloud.recommendationengine.v1bet" + + "a1.ImportUserEventsResponse\0228google.clou" + + "d.recommendationengine.v1beta1.ImportMet" + + "adata\332A,parent,request_id,input_config,e" + + "rrors_config\032W\312A#recommendationengine.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformB\237\002\n-com.google.clo" + + "ud.recommendationengine.v1beta1P\001Z]googl" + + "e.golang.org/genproto/googleapis/cloud/r" + + "ecommendationengine/v1beta1;recommendati" + + "onengine\242\002\005RECAI\252\002)Google.Cloud.Recommen" + + "dationEngine.V1Beta1\312\002)Google\\Cloud\\Reco" + + "mmendationEngine\\V1beta1\352\002,Google::Cloud" + + "::RecommendationEngine::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.HttpBodyProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.Import.getDescriptor(), + com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + }); + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "Force", + }); + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsMetadata_descriptor, + new java.lang.String[] { + "OperationName", "CreateTime", + }); + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_PurgeUserEventsResponse_descriptor, + new java.lang.String[] { + "PurgedEventsCount", "UserEventsSample", + }); + internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor, + new java.lang.String[] { + "Parent", "UserEvent", + }); + internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_CollectUserEventRequest_descriptor, + new java.lang.String[] { + "Parent", "UserEvent", "Uri", "Ets", + }); + internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recommendationengine_v1beta1_ListUserEventsResponse_descriptor, + new java.lang.String[] { + "UserEvents", "NextPageToken", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + 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.FieldBehaviorProto.getDescriptor(); + com.google.api.HttpBodyProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.Import.getDescriptor(); + com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfo.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfo.java similarity index 77% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfo.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfo.java index a670e496..f555adec 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfo.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfo.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Information of end users.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.UserInfo} */ -public final class UserInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UserInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.UserInfo) UserInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UserInfo.newBuilder() to construct. private UserInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UserInfo() { visitorId_ = ""; userId_ = ""; @@ -28,16 +46,15 @@ private UserInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UserInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UserInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private UserInfo( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - visitorId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - userId_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + visitorId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - ipAddress_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + userId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - userAgent_ = s; - break; - } - case 40: { + ipAddress_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - directUserRequest_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + userAgent_ = s; + break; + } + case 40: + { + directUserRequest_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,29 +120,33 @@ private UserInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.UserInfo.class, com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder.class); + com.google.cloud.recommendationengine.v1beta1.UserInfo.class, + com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder.class); } public static final int VISITOR_ID_FIELD_NUMBER = 1; private volatile java.lang.Object visitorId_; /** + * + * *
              * Required. A unique identifier for tracking visitors with a length limit of
              * 128 bytes.
          @@ -132,6 +157,7 @@ private UserInfo(
              * 
          * * string visitor_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The visitorId. */ @java.lang.Override @@ -140,14 +166,15 @@ public java.lang.String getVisitorId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); visitorId_ = s; return s; } } /** + * + * *
              * Required. A unique identifier for tracking visitors with a length limit of
              * 128 bytes.
          @@ -158,16 +185,15 @@ public java.lang.String getVisitorId() {
              * 
          * * string visitor_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for visitorId. */ @java.lang.Override - public com.google.protobuf.ByteString - getVisitorIdBytes() { + public com.google.protobuf.ByteString getVisitorIdBytes() { java.lang.Object ref = visitorId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); visitorId_ = b; return b; } else { @@ -178,12 +204,15 @@ public java.lang.String getVisitorId() { public static final int USER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object userId_; /** + * + * *
              * Optional. Unique identifier for logged-in user with a length limit of 128
              * bytes. Required only for logged-in users.
              * 
          * * string user_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userId. */ @java.lang.Override @@ -192,30 +221,30 @@ public java.lang.String getUserId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userId_ = s; return s; } } /** + * + * *
              * Optional. Unique identifier for logged-in user with a length limit of 128
              * bytes. Required only for logged-in users.
              * 
          * * string user_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userId. */ @java.lang.Override - public com.google.protobuf.ByteString - getUserIdBytes() { + public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userId_ = b; return b; } else { @@ -226,6 +255,8 @@ public java.lang.String getUserId() { public static final int IP_ADDRESS_FIELD_NUMBER = 3; private volatile java.lang.Object ipAddress_; /** + * + * *
              * Optional. IP address of the user. This could be either IPv4 (e.g. 104.133.9.80) or
              * IPv6 (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This should *not* be
          @@ -234,6 +265,7 @@ public java.lang.String getUserId() {
              * 
          * * string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ipAddress. */ @java.lang.Override @@ -242,14 +274,15 @@ public java.lang.String getIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; } } /** + * + * *
              * Optional. IP address of the user. This could be either IPv4 (e.g. 104.133.9.80) or
              * IPv6 (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This should *not* be
          @@ -258,16 +291,15 @@ public java.lang.String getIpAddress() {
              * 
          * * string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for ipAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -278,6 +310,8 @@ public java.lang.String getIpAddress() { public static final int USER_AGENT_FIELD_NUMBER = 4; private volatile java.lang.Object userAgent_; /** + * + * *
              * Optional. User agent as included in the HTTP header. UTF-8 encoded string
              * with a length limit of 1 KiB.
          @@ -286,6 +320,7 @@ public java.lang.String getIpAddress() {
              * 
          * * string user_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userAgent. */ @java.lang.Override @@ -294,14 +329,15 @@ public java.lang.String getUserAgent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userAgent_ = s; return s; } } /** + * + * *
              * Optional. User agent as included in the HTTP header. UTF-8 encoded string
              * with a length limit of 1 KiB.
          @@ -310,16 +346,15 @@ public java.lang.String getUserAgent() {
              * 
          * * string user_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userAgent. */ @java.lang.Override - public com.google.protobuf.ByteString - getUserAgentBytes() { + public com.google.protobuf.ByteString getUserAgentBytes() { java.lang.Object ref = userAgent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userAgent_ = b; return b; } else { @@ -330,6 +365,8 @@ public java.lang.String getUserAgent() { public static final int DIRECT_USER_REQUEST_FIELD_NUMBER = 5; private boolean directUserRequest_; /** + * + * *
              * Optional. Indicates if the request is made directly from the end user
              * in which case the user_agent and ip_address fields can be populated
          @@ -340,6 +377,7 @@ public java.lang.String getUserAgent() {
              * 
          * * bool direct_user_request = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The directUserRequest. */ @java.lang.Override @@ -348,6 +386,7 @@ public boolean getDirectUserRequest() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -359,8 +398,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(visitorId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, visitorId_); } @@ -398,8 +436,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userAgent_); } if (directUserRequest_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, directUserRequest_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, directUserRequest_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -409,23 +446,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.UserInfo)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.UserInfo other = (com.google.cloud.recommendationengine.v1beta1.UserInfo) obj; - - if (!getVisitorId() - .equals(other.getVisitorId())) return false; - if (!getUserId() - .equals(other.getUserId())) return false; - if (!getIpAddress() - .equals(other.getIpAddress())) return false; - if (!getUserAgent() - .equals(other.getUserAgent())) return false; - if (getDirectUserRequest() - != other.getDirectUserRequest()) return false; + com.google.cloud.recommendationengine.v1beta1.UserInfo other = + (com.google.cloud.recommendationengine.v1beta1.UserInfo) obj; + + if (!getVisitorId().equals(other.getVisitorId())) return false; + if (!getUserId().equals(other.getUserId())) return false; + if (!getIpAddress().equals(other.getIpAddress())) return false; + if (!getUserAgent().equals(other.getUserAgent())) return false; + if (getDirectUserRequest() != other.getDirectUserRequest()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -446,125 +479,134 @@ public int hashCode() { hash = (37 * hash) + USER_AGENT_FIELD_NUMBER; hash = (53 * hash) + getUserAgent().hashCode(); hash = (37 * hash) + DIRECT_USER_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDirectUserRequest()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDirectUserRequest()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.UserInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.UserInfo prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.UserInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Information of end users.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.UserInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.UserInfo) com.google.cloud.recommendationengine.v1beta1.UserInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.UserInfo.class, com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder.class); + com.google.cloud.recommendationengine.v1beta1.UserInfo.class, + com.google.cloud.recommendationengine.v1beta1.UserInfo.Builder.class); } // Construct using com.google.cloud.recommendationengine.v1beta1.UserInfo.newBuilder() @@ -572,16 +614,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -599,9 +640,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.UserEventOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_UserInfo_descriptor; } @java.lang.Override @@ -620,7 +661,8 @@ public com.google.cloud.recommendationengine.v1beta1.UserInfo build() { @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserInfo buildPartial() { - com.google.cloud.recommendationengine.v1beta1.UserInfo result = new com.google.cloud.recommendationengine.v1beta1.UserInfo(this); + com.google.cloud.recommendationengine.v1beta1.UserInfo result = + new com.google.cloud.recommendationengine.v1beta1.UserInfo(this); result.visitorId_ = visitorId_; result.userId_ = userId_; result.ipAddress_ = ipAddress_; @@ -634,38 +676,39 @@ public com.google.cloud.recommendationengine.v1beta1.UserInfo buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.UserInfo) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.UserInfo)other); + return mergeFrom((com.google.cloud.recommendationengine.v1beta1.UserInfo) other); } else { super.mergeFrom(other); return this; @@ -673,7 +716,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.UserInfo other) { - if (other == com.google.cloud.recommendationengine.v1beta1.UserInfo.getDefaultInstance()) return this; + if (other == com.google.cloud.recommendationengine.v1beta1.UserInfo.getDefaultInstance()) + return this; if (!other.getVisitorId().isEmpty()) { visitorId_ = other.visitorId_; onChanged(); @@ -712,7 +756,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.UserInfo) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.UserInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -724,6 +769,8 @@ public Builder mergeFrom( private java.lang.Object visitorId_ = ""; /** + * + * *
                * Required. A unique identifier for tracking visitors with a length limit of
                * 128 bytes.
          @@ -734,13 +781,13 @@ public Builder mergeFrom(
                * 
          * * string visitor_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The visitorId. */ public java.lang.String getVisitorId() { java.lang.Object ref = visitorId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); visitorId_ = s; return s; @@ -749,6 +796,8 @@ public java.lang.String getVisitorId() { } } /** + * + * *
                * Required. A unique identifier for tracking visitors with a length limit of
                * 128 bytes.
          @@ -759,15 +808,14 @@ public java.lang.String getVisitorId() {
                * 
          * * string visitor_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for visitorId. */ - public com.google.protobuf.ByteString - getVisitorIdBytes() { + public com.google.protobuf.ByteString getVisitorIdBytes() { java.lang.Object ref = visitorId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); visitorId_ = b; return b; } else { @@ -775,6 +823,8 @@ public java.lang.String getVisitorId() { } } /** + * + * *
                * Required. A unique identifier for tracking visitors with a length limit of
                * 128 bytes.
          @@ -785,20 +835,22 @@ public java.lang.String getVisitorId() {
                * 
          * * string visitor_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The visitorId to set. * @return This builder for chaining. */ - public Builder setVisitorId( - java.lang.String value) { + public Builder setVisitorId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + visitorId_ = value; onChanged(); return this; } /** + * + * *
                * Required. A unique identifier for tracking visitors with a length limit of
                * 128 bytes.
          @@ -809,15 +861,18 @@ public Builder setVisitorId(
                * 
          * * string visitor_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearVisitorId() { - + visitorId_ = getDefaultInstance().getVisitorId(); onChanged(); return this; } /** + * + * *
                * Required. A unique identifier for tracking visitors with a length limit of
                * 128 bytes.
          @@ -828,16 +883,16 @@ public Builder clearVisitorId() {
                * 
          * * string visitor_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for visitorId to set. * @return This builder for chaining. */ - public Builder setVisitorIdBytes( - com.google.protobuf.ByteString value) { + public Builder setVisitorIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + visitorId_ = value; onChanged(); return this; @@ -845,19 +900,21 @@ public Builder setVisitorIdBytes( private java.lang.Object userId_ = ""; /** + * + * *
                * Optional. Unique identifier for logged-in user with a length limit of 128
                * bytes. Required only for logged-in users.
                * 
          * * string user_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userId. */ public java.lang.String getUserId() { java.lang.Object ref = userId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userId_ = s; return s; @@ -866,21 +923,22 @@ public java.lang.String getUserId() { } } /** + * + * *
                * Optional. Unique identifier for logged-in user with a length limit of 128
                * bytes. Required only for logged-in users.
                * 
          * * string user_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userId. */ - public com.google.protobuf.ByteString - getUserIdBytes() { + public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userId_ = b; return b; } else { @@ -888,57 +946,64 @@ public java.lang.String getUserId() { } } /** + * + * *
                * Optional. Unique identifier for logged-in user with a length limit of 128
                * bytes. Required only for logged-in users.
                * 
          * * string user_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The userId to set. * @return This builder for chaining. */ - public Builder setUserId( - java.lang.String value) { + public Builder setUserId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + userId_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Unique identifier for logged-in user with a length limit of 128
                * bytes. Required only for logged-in users.
                * 
          * * string user_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUserId() { - + userId_ = getDefaultInstance().getUserId(); onChanged(); return this; } /** + * + * *
                * Optional. Unique identifier for logged-in user with a length limit of 128
                * bytes. Required only for logged-in users.
                * 
          * * string user_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for userId to set. * @return This builder for chaining. */ - public Builder setUserIdBytes( - com.google.protobuf.ByteString value) { + public Builder setUserIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userId_ = value; onChanged(); return this; @@ -946,6 +1011,8 @@ public Builder setUserIdBytes( private java.lang.Object ipAddress_ = ""; /** + * + * *
                * Optional. IP address of the user. This could be either IPv4 (e.g. 104.133.9.80) or
                * IPv6 (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This should *not* be
          @@ -954,13 +1021,13 @@ public Builder setUserIdBytes(
                * 
          * * string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ipAddress. */ public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; @@ -969,6 +1036,8 @@ public java.lang.String getIpAddress() { } } /** + * + * *
                * Optional. IP address of the user. This could be either IPv4 (e.g. 104.133.9.80) or
                * IPv6 (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This should *not* be
          @@ -977,15 +1046,14 @@ public java.lang.String getIpAddress() {
                * 
          * * string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for ipAddress. */ - public com.google.protobuf.ByteString - getIpAddressBytes() { + public com.google.protobuf.ByteString getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -993,6 +1061,8 @@ public java.lang.String getIpAddress() { } } /** + * + * *
                * Optional. IP address of the user. This could be either IPv4 (e.g. 104.133.9.80) or
                * IPv6 (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This should *not* be
          @@ -1001,20 +1071,22 @@ public java.lang.String getIpAddress() {
                * 
          * * string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddress( - java.lang.String value) { + public Builder setIpAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ipAddress_ = value; onChanged(); return this; } /** + * + * *
                * Optional. IP address of the user. This could be either IPv4 (e.g. 104.133.9.80) or
                * IPv6 (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This should *not* be
          @@ -1023,15 +1095,18 @@ public Builder setIpAddress(
                * 
          * * string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIpAddress() { - + ipAddress_ = getDefaultInstance().getIpAddress(); onChanged(); return this; } /** + * + * *
                * Optional. IP address of the user. This could be either IPv4 (e.g. 104.133.9.80) or
                * IPv6 (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This should *not* be
          @@ -1040,16 +1115,16 @@ public Builder clearIpAddress() {
                * 
          * * string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; onChanged(); return this; @@ -1057,6 +1132,8 @@ public Builder setIpAddressBytes( private java.lang.Object userAgent_ = ""; /** + * + * *
                * Optional. User agent as included in the HTTP header. UTF-8 encoded string
                * with a length limit of 1 KiB.
          @@ -1065,13 +1142,13 @@ public Builder setIpAddressBytes(
                * 
          * * string user_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userAgent. */ public java.lang.String getUserAgent() { java.lang.Object ref = userAgent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userAgent_ = s; return s; @@ -1080,6 +1157,8 @@ public java.lang.String getUserAgent() { } } /** + * + * *
                * Optional. User agent as included in the HTTP header. UTF-8 encoded string
                * with a length limit of 1 KiB.
          @@ -1088,15 +1167,14 @@ public java.lang.String getUserAgent() {
                * 
          * * string user_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userAgent. */ - public com.google.protobuf.ByteString - getUserAgentBytes() { + public com.google.protobuf.ByteString getUserAgentBytes() { java.lang.Object ref = userAgent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userAgent_ = b; return b; } else { @@ -1104,6 +1182,8 @@ public java.lang.String getUserAgent() { } } /** + * + * *
                * Optional. User agent as included in the HTTP header. UTF-8 encoded string
                * with a length limit of 1 KiB.
          @@ -1112,20 +1192,22 @@ public java.lang.String getUserAgent() {
                * 
          * * string user_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgent( - java.lang.String value) { + public Builder setUserAgent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + userAgent_ = value; onChanged(); return this; } /** + * + * *
                * Optional. User agent as included in the HTTP header. UTF-8 encoded string
                * with a length limit of 1 KiB.
          @@ -1134,15 +1216,18 @@ public Builder setUserAgent(
                * 
          * * string user_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUserAgent() { - + userAgent_ = getDefaultInstance().getUserAgent(); onChanged(); return this; } /** + * + * *
                * Optional. User agent as included in the HTTP header. UTF-8 encoded string
                * with a length limit of 1 KiB.
          @@ -1151,23 +1236,25 @@ public Builder clearUserAgent() {
                * 
          * * string user_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgentBytes( - com.google.protobuf.ByteString value) { + public Builder setUserAgentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userAgent_ = value; onChanged(); return this; } - private boolean directUserRequest_ ; + private boolean directUserRequest_; /** + * + * *
                * Optional. Indicates if the request is made directly from the end user
                * in which case the user_agent and ip_address fields can be populated
          @@ -1178,6 +1265,7 @@ public Builder setUserAgentBytes(
                * 
          * * bool direct_user_request = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The directUserRequest. */ @java.lang.Override @@ -1185,6 +1273,8 @@ public boolean getDirectUserRequest() { return directUserRequest_; } /** + * + * *
                * Optional. Indicates if the request is made directly from the end user
                * in which case the user_agent and ip_address fields can be populated
          @@ -1195,16 +1285,19 @@ public boolean getDirectUserRequest() {
                * 
          * * bool direct_user_request = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The directUserRequest to set. * @return This builder for chaining. */ public Builder setDirectUserRequest(boolean value) { - + directUserRequest_ = value; onChanged(); return this; } /** + * + * *
                * Optional. Indicates if the request is made directly from the end user
                * in which case the user_agent and ip_address fields can be populated
          @@ -1215,17 +1308,18 @@ public Builder setDirectUserRequest(boolean value) {
                * 
          * * bool direct_user_request = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDirectUserRequest() { - + directUserRequest_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1235,12 +1329,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.UserInfo) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.UserInfo) private static final com.google.cloud.recommendationengine.v1beta1.UserInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.UserInfo(); } @@ -1249,16 +1343,16 @@ public static com.google.cloud.recommendationengine.v1beta1.UserInfo getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UserInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1273,6 +1367,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.recommendationengine.v1beta1.UserInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfoOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfoOrBuilder.java similarity index 81% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfoOrBuilder.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfoOrBuilder.java index 91639058..900e9849 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfoOrBuilder.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/UserInfoOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event.proto package com.google.cloud.recommendationengine.v1beta1; -public interface UserInfoOrBuilder extends +public interface UserInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.UserInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
              * Required. A unique identifier for tracking visitors with a length limit of
              * 128 bytes.
          @@ -18,10 +36,13 @@ public interface UserInfoOrBuilder extends
              * 
          * * string visitor_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The visitorId. */ java.lang.String getVisitorId(); /** + * + * *
              * Required. A unique identifier for tracking visitors with a length limit of
              * 128 bytes.
          @@ -32,34 +53,41 @@ public interface UserInfoOrBuilder extends
              * 
          * * string visitor_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for visitorId. */ - com.google.protobuf.ByteString - getVisitorIdBytes(); + com.google.protobuf.ByteString getVisitorIdBytes(); /** + * + * *
              * Optional. Unique identifier for logged-in user with a length limit of 128
              * bytes. Required only for logged-in users.
              * 
          * * string user_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userId. */ java.lang.String getUserId(); /** + * + * *
              * Optional. Unique identifier for logged-in user with a length limit of 128
              * bytes. Required only for logged-in users.
              * 
          * * string user_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userId. */ - com.google.protobuf.ByteString - getUserIdBytes(); + com.google.protobuf.ByteString getUserIdBytes(); /** + * + * *
              * Optional. IP address of the user. This could be either IPv4 (e.g. 104.133.9.80) or
              * IPv6 (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This should *not* be
          @@ -68,10 +96,13 @@ public interface UserInfoOrBuilder extends
              * 
          * * string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ipAddress. */ java.lang.String getIpAddress(); /** + * + * *
              * Optional. IP address of the user. This could be either IPv4 (e.g. 104.133.9.80) or
              * IPv6 (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334). This should *not* be
          @@ -80,12 +111,14 @@ public interface UserInfoOrBuilder extends
              * 
          * * string ip_address = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString - getIpAddressBytes(); + com.google.protobuf.ByteString getIpAddressBytes(); /** + * + * *
              * Optional. User agent as included in the HTTP header. UTF-8 encoded string
              * with a length limit of 1 KiB.
          @@ -94,10 +127,13 @@ public interface UserInfoOrBuilder extends
              * 
          * * string user_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The userAgent. */ java.lang.String getUserAgent(); /** + * + * *
              * Optional. User agent as included in the HTTP header. UTF-8 encoded string
              * with a length limit of 1 KiB.
          @@ -106,12 +142,14 @@ public interface UserInfoOrBuilder extends
              * 
          * * string user_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for userAgent. */ - com.google.protobuf.ByteString - getUserAgentBytes(); + com.google.protobuf.ByteString getUserAgentBytes(); /** + * + * *
              * Optional. Indicates if the request is made directly from the end user
              * in which case the user_agent and ip_address fields can be populated
          @@ -122,6 +160,7 @@ public interface UserInfoOrBuilder extends
              * 
          * * bool direct_user_request = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The directUserRequest. */ boolean getDirectUserRequest(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequest.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequest.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequest.java rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequest.java index a690c01b..bd0b7c21 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequest.java +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/recommendationengine/v1beta1/user_event_service.proto package com.google.cloud.recommendationengine.v1beta1; /** + * + * *
            * Request message for WriteUserEvent method.
            * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.WriteUserEventRequest} */ -public final class WriteUserEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WriteUserEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) WriteUserEventRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WriteUserEventRequest.newBuilder() to construct. private WriteUserEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WriteUserEventRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WriteUserEventRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WriteUserEventRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,37 @@ private WriteUserEventRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder subBuilder = null; - if (userEvent_ != null) { - subBuilder = userEvent_.toBuilder(); + parent_ = s; + break; } - userEvent_ = input.readMessage(com.google.cloud.recommendationengine.v1beta1.UserEvent.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(userEvent_); - userEvent_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder subBuilder = null; + if (userEvent_ != null) { + subBuilder = userEvent_.toBuilder(); + } + userEvent_ = + input.readMessage( + com.google.cloud.recommendationengine.v1beta1.UserEvent.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(userEvent_); + userEvent_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,35 +108,42 @@ private WriteUserEventRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.class, com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.class, + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
              * Required. The parent eventStore resource name, such as
              * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,30 +152,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
              * Required. The parent eventStore resource name, such as
              * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
              * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -157,11 +188,16 @@ public java.lang.String getParent() { public static final int USER_EVENT_FIELD_NUMBER = 2; private com.google.cloud.recommendationengine.v1beta1.UserEvent userEvent_; /** + * + * *
              * Required. User event to write.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the userEvent field is set. */ @java.lang.Override @@ -169,23 +205,34 @@ public boolean hasUserEvent() { return userEvent_ != null; } /** + * + * *
              * Required. User event to write.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The userEvent. */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvent() { - return userEvent_ == null ? com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() : userEvent_; + return userEvent_ == null + ? com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() + : userEvent_; } /** + * + * *
              * Required. User event to write.
              * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventOrBuilder() { @@ -193,6 +240,7 @@ public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserE } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +252,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -225,8 +272,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (userEvent_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUserEvent()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUserEvent()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -236,19 +282,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest)) { return super.equals(obj); } - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest other = (com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) obj; + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest other = + (com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasUserEvent() != other.hasUserEvent()) return false; if (hasUserEvent()) { - if (!getUserEvent() - .equals(other.getUserEvent())) return false; + if (!getUserEvent().equals(other.getUserEvent())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,134 +318,145 @@ public int hashCode() { } public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
              * Request message for WriteUserEvent method.
              * 
          * * Protobuf type {@code google.cloud.recommendationengine.v1beta1.WriteUserEventRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_fieldAccessorTable + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.class, com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.Builder.class); + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.class, + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.Builder.class); } - // Construct using com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.newBuilder() + // Construct using + // com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,14 +472,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass.internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.recommendationengine.v1beta1.UserEventServiceOuterClass + .internal_static_google_cloud_recommendationengine_v1beta1_WriteUserEventRequest_descriptor; } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest getDefaultInstanceForType() { - return com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.getDefaultInstance(); + public com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest + getDefaultInstanceForType() { + return com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest + .getDefaultInstance(); } @java.lang.Override @@ -437,7 +495,8 @@ public com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest build @java.lang.Override public com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest buildPartial() { - com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest result = new com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest(this); + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest result = + new com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest(this); result.parent_ = parent_; if (userEventBuilder_ == null) { result.userEvent_ = userEvent_; @@ -452,46 +511,51 @@ public com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) { - return mergeFrom((com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest)other); + return mergeFrom( + (com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest other) { - if (other == com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest other) { + if (other + == com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -518,7 +582,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -530,19 +596,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
                * Required. The parent eventStore resource name, such as
                * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -551,21 +621,24 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required. The parent eventStore resource name, such as
                * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -573,57 +646,70 @@ public java.lang.String getParent() { } } /** + * + * *
                * Required. The parent eventStore resource name, such as
                * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
                * Required. The parent eventStore resource name, such as
                * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
                * Required. The parent eventStore resource name, such as
                * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
                * 
          * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -631,39 +717,58 @@ public Builder setParentBytes( private com.google.cloud.recommendationengine.v1beta1.UserEvent userEvent_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> userEventBuilder_; + com.google.cloud.recommendationengine.v1beta1.UserEvent, + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, + com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> + userEventBuilder_; /** + * + * *
                * Required. User event to write.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the userEvent field is set. */ public boolean hasUserEvent() { return userEventBuilder_ != null || userEvent_ != null; } /** + * + * *
                * Required. User event to write.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The userEvent. */ public com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvent() { if (userEventBuilder_ == null) { - return userEvent_ == null ? com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() : userEvent_; + return userEvent_ == null + ? com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() + : userEvent_; } else { return userEventBuilder_.getMessage(); } } /** + * + * *
                * Required. User event to write.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUserEvent(com.google.cloud.recommendationengine.v1beta1.UserEvent value) { if (userEventBuilder_ == null) { @@ -679,11 +784,15 @@ public Builder setUserEvent(com.google.cloud.recommendationengine.v1beta1.UserEv return this; } /** + * + * *
                * Required. User event to write.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUserEvent( com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder builderForValue) { @@ -697,17 +806,23 @@ public Builder setUserEvent( return this; } /** + * + * *
                * Required. User event to write.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUserEvent(com.google.cloud.recommendationengine.v1beta1.UserEvent value) { if (userEventBuilder_ == null) { if (userEvent_ != null) { userEvent_ = - com.google.cloud.recommendationengine.v1beta1.UserEvent.newBuilder(userEvent_).mergeFrom(value).buildPartial(); + com.google.cloud.recommendationengine.v1beta1.UserEvent.newBuilder(userEvent_) + .mergeFrom(value) + .buildPartial(); } else { userEvent_ = value; } @@ -719,11 +834,15 @@ public Builder mergeUserEvent(com.google.cloud.recommendationengine.v1beta1.User return this; } /** + * + * *
                * Required. User event to write.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUserEvent() { if (userEventBuilder_ == null) { @@ -737,55 +856,72 @@ public Builder clearUserEvent() { return this; } /** + * + * *
                * Required. User event to write.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder getUserEventBuilder() { - + onChanged(); return getUserEventFieldBuilder().getBuilder(); } /** + * + * *
                * Required. User event to write.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventOrBuilder() { + public com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder + getUserEventOrBuilder() { if (userEventBuilder_ != null) { return userEventBuilder_.getMessageOrBuilder(); } else { - return userEvent_ == null ? - com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() : userEvent_; + return userEvent_ == null + ? com.google.cloud.recommendationengine.v1beta1.UserEvent.getDefaultInstance() + : userEvent_; } } /** + * + * *
                * Required. User event to write.
                * 
          * - * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> + com.google.cloud.recommendationengine.v1beta1.UserEvent, + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, + com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder> getUserEventFieldBuilder() { if (userEventBuilder_ == null) { - userEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.recommendationengine.v1beta1.UserEvent, com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder>( - getUserEvent(), - getParentForChildren(), - isClean()); + userEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.recommendationengine.v1beta1.UserEvent, + com.google.cloud.recommendationengine.v1beta1.UserEvent.Builder, + com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder>( + getUserEvent(), getParentForChildren(), isClean()); userEvent_ = null; } return userEventBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -795,30 +931,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) } // @@protoc_insertion_point(class_scope:google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) - private static final com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest DEFAULT_INSTANCE; + private static final com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest(); } - public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest getDefaultInstance() { + public static com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WriteUserEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WriteUserEventRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteUserEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WriteUserEventRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -830,9 +968,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest getDefaultInstanceForType() { + public com.google.cloud.recommendationengine.v1beta1.WriteUserEventRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequestOrBuilder.java b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequestOrBuilder.java new file mode 100644 index 00000000..ee85dcc2 --- /dev/null +++ b/proto-google-cloud-recommendations-ai-v1beta1/src/main/java/com/google/cloud/recommendationengine/v1beta1/WriteUserEventRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recommendationengine/v1beta1/user_event_service.proto + +package com.google.cloud.recommendationengine.v1beta1; + +public interface WriteUserEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recommendationengine.v1beta1.WriteUserEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The parent eventStore resource name, such as
          +   * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
          +   * Required. The parent eventStore resource name, such as
          +   * `projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store`.
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Required. User event to write.
          +   * 
          + * + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the userEvent field is set. + */ + boolean hasUserEvent(); + /** + * + * + *
          +   * Required. User event to write.
          +   * 
          + * + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The userEvent. + */ + com.google.cloud.recommendationengine.v1beta1.UserEvent getUserEvent(); + /** + * + * + *
          +   * Required. User event to write.
          +   * 
          + * + * + * .google.cloud.recommendationengine.v1beta1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.recommendationengine.v1beta1.UserEventOrBuilder getUserEventOrBuilder(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/catalog.proto b/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/catalog.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/catalog.proto rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/catalog.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/catalog_service.proto b/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/catalog_service.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/catalog_service.proto rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/catalog_service.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/common.proto b/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/common.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/common.proto rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/common.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/import.proto b/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/import.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/import.proto rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/import.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto b/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/prediction_service.proto b/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/prediction_service.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/prediction_service.proto rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/prediction_service.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto b/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/user_event.proto b/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/user_event.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/user_event.proto rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/user_event.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/user_event_service.proto b/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/user_event_service.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/user_event_service.proto rename to proto-google-cloud-recommendations-ai-v1beta1/src/main/proto/google/cloud/recommendationengine/v1beta1/user_event_service.proto diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider.java index 127ed725..0b3174bd 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_catalogserviceclient_create_setcredentialsprovider_sync] +// [START +// recommendationengine_v1beta1_generated_catalogserviceclient_create_setcredentialsprovider_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; import com.google.cloud.recommendationengine.v1beta1.CatalogServiceSettings; @@ -38,4 +39,5 @@ public static void syncCreateSetCredentialsProvider() throws Exception { CatalogServiceClient catalogServiceClient = CatalogServiceClient.create(catalogServiceSettings); } } -// [END recommendationengine_v1beta1_generated_catalogserviceclient_create_setcredentialsprovider_sync] +// [END +// recommendationengine_v1beta1_generated_catalogserviceclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider1.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider1.java index 4198bf00..a90ab8db 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_catalogserviceclient_create_setcredentialsprovider1_sync] +// [START +// recommendationengine_v1beta1_generated_catalogserviceclient_create_setcredentialsprovider1_sync] import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; import com.google.cloud.recommendationengine.v1beta1.CatalogServiceSettings; @@ -37,4 +38,5 @@ public static void syncCreateSetCredentialsProvider1() throws Exception { CatalogServiceClient catalogServiceClient = CatalogServiceClient.create(catalogServiceSettings); } } -// [END recommendationengine_v1beta1_generated_catalogserviceclient_create_setcredentialsprovider1_sync] +// [END +// recommendationengine_v1beta1_generated_catalogserviceclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/AsyncCreateCatalogItem.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/AsyncCreateCatalogItem.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/AsyncCreateCatalogItem.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/AsyncCreateCatalogItem.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItem.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItem.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItem.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItem.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemCatalognameCatalogitem.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemCatalognameCatalogitem.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemCatalognameCatalogitem.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemCatalognameCatalogitem.java index facfb065..ba83fb64 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemCatalognameCatalogitem.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemCatalognameCatalogitem.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_catalognamecatalogitem_sync] +// [START +// recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_catalognamecatalogitem_sync] import com.google.cloud.recommendationengine.v1beta1.CatalogItem; import com.google.cloud.recommendationengine.v1beta1.CatalogName; import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; @@ -37,4 +38,5 @@ public static void syncCreateCatalogItemCatalognameCatalogitem() throws Exceptio } } } -// [END recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_catalognamecatalogitem_sync] +// [END +// recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_catalognamecatalogitem_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemStringCatalogitem.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemStringCatalogitem.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemStringCatalogitem.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemStringCatalogitem.java index fca23eab..23d64c6a 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemStringCatalogitem.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/createcatalogitem/SyncCreateCatalogItemStringCatalogitem.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_stringcatalogitem_sync] +// [START +// recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_stringcatalogitem_sync] import com.google.cloud.recommendationengine.v1beta1.CatalogItem; import com.google.cloud.recommendationengine.v1beta1.CatalogName; import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; @@ -37,4 +38,5 @@ public static void syncCreateCatalogItemStringCatalogitem() throws Exception { } } } -// [END recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_stringcatalogitem_sync] +// [END +// recommendationengine_v1beta1_generated_catalogserviceclient_createcatalogitem_stringcatalogitem_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/AsyncDeleteCatalogItem.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/AsyncDeleteCatalogItem.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/AsyncDeleteCatalogItem.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/AsyncDeleteCatalogItem.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItem.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItem.java similarity index 98% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItem.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItem.java index 635e4200..27a4ed22 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItem.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItem.java @@ -20,7 +20,6 @@ import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName; import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; import com.google.cloud.recommendationengine.v1beta1.DeleteCatalogItemRequest; -import com.google.protobuf.Empty; public class SyncDeleteCatalogItem { diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemCatalogitempathname.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemCatalogitempathname.java similarity index 85% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemCatalogitempathname.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemCatalogitempathname.java index 4f14c7c9..73212007 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemCatalogitempathname.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemCatalogitempathname.java @@ -16,10 +16,10 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_catalogserviceclient_deletecatalogitem_catalogitempathname_sync] +// [START +// recommendationengine_v1beta1_generated_catalogserviceclient_deletecatalogitem_catalogitempathname_sync] import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName; import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; -import com.google.protobuf.Empty; public class SyncDeleteCatalogItemCatalogitempathname { @@ -37,4 +37,5 @@ public static void syncDeleteCatalogItemCatalogitempathname() throws Exception { } } } -// [END recommendationengine_v1beta1_generated_catalogserviceclient_deletecatalogitem_catalogitempathname_sync] +// [END +// recommendationengine_v1beta1_generated_catalogserviceclient_deletecatalogitem_catalogitempathname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemString.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemString.java similarity index 98% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemString.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemString.java index 06b0e6df..58bcb482 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemString.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/deletecatalogitem/SyncDeleteCatalogItemString.java @@ -19,7 +19,6 @@ // [START recommendationengine_v1beta1_generated_catalogserviceclient_deletecatalogitem_string_sync] import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName; import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; -import com.google.protobuf.Empty; public class SyncDeleteCatalogItemString { diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/AsyncGetCatalogItem.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/AsyncGetCatalogItem.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/AsyncGetCatalogItem.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/AsyncGetCatalogItem.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItem.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItem.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItem.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItem.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemCatalogitempathname.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemCatalogitempathname.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemCatalogitempathname.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemCatalogitempathname.java index 05e37bb8..54a4de84 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemCatalogitempathname.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemCatalogitempathname.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_catalogserviceclient_getcatalogitem_catalogitempathname_sync] +// [START +// recommendationengine_v1beta1_generated_catalogserviceclient_getcatalogitem_catalogitempathname_sync] import com.google.cloud.recommendationengine.v1beta1.CatalogItem; import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName; import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; @@ -37,4 +38,5 @@ public static void syncGetCatalogItemCatalogitempathname() throws Exception { } } } -// [END recommendationengine_v1beta1_generated_catalogserviceclient_getcatalogitem_catalogitempathname_sync] +// [END +// recommendationengine_v1beta1_generated_catalogserviceclient_getcatalogitem_catalogitempathname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemString.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemString.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemString.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/getcatalogitem/SyncGetCatalogItemString.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItems.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItems.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItems.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItems.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItemsLRO.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItemsLRO.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItemsLRO.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/AsyncImportCatalogItemsLRO.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItems.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItems.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItems.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItems.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsCatalognameStringInputconfigImporterrorsconfig.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsCatalognameStringInputconfigImporterrorsconfig.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsCatalognameStringInputconfigImporterrorsconfig.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsCatalognameStringInputconfigImporterrorsconfig.java index e57a74d3..2829d652 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsCatalognameStringInputconfigImporterrorsconfig.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsCatalognameStringInputconfigImporterrorsconfig.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_catalognamestringinputconfigimporterrorsconfig_sync] +// [START +// recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_catalognamestringinputconfigimporterrorsconfig_sync] import com.google.cloud.recommendationengine.v1beta1.CatalogName; import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; import com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse; @@ -45,4 +46,5 @@ public static void syncImportCatalogItemsCatalognameStringInputconfigImporterror } } } -// [END recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_catalognamestringinputconfigimporterrorsconfig_sync] +// [END +// recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_catalognamestringinputconfigimporterrorsconfig_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsStringStringInputconfigImporterrorsconfig.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsStringStringInputconfigImporterrorsconfig.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsStringStringInputconfigImporterrorsconfig.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsStringStringInputconfigImporterrorsconfig.java index c6a7dd49..bece54fa 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsStringStringInputconfigImporterrorsconfig.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/importcatalogitems/SyncImportCatalogItemsStringStringInputconfigImporterrorsconfig.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_stringstringinputconfigimporterrorsconfig_sync] +// [START +// recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_stringstringinputconfigimporterrorsconfig_sync] import com.google.cloud.recommendationengine.v1beta1.CatalogName; import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; import com.google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse; @@ -45,4 +46,5 @@ public static void syncImportCatalogItemsStringStringInputconfigImporterrorsconf } } } -// [END recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_stringstringinputconfigimporterrorsconfig_sync] +// [END +// recommendationengine_v1beta1_generated_catalogserviceclient_importcatalogitems_stringstringinputconfigimporterrorsconfig_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItems.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItems.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItems.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItems.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItemsPaged.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItemsPaged.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItemsPaged.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/AsyncListCatalogItemsPaged.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItems.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItems.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItems.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItems.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsCatalognameString.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsCatalognameString.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsCatalognameString.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsCatalognameString.java index 7cab5a71..7f327e66 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsCatalognameString.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsCatalognameString.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_catalognamestring_sync] +// [START +// recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_catalognamestring_sync] import com.google.cloud.recommendationengine.v1beta1.CatalogItem; import com.google.cloud.recommendationengine.v1beta1.CatalogName; import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; @@ -40,4 +41,5 @@ public static void syncListCatalogItemsCatalognameString() throws Exception { } } } -// [END recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_catalognamestring_sync] +// [END +// recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_catalognamestring_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsStringString.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsStringString.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsStringString.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsStringString.java index af3b4d98..bb3b84d2 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsStringString.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/listcatalogitems/SyncListCatalogItemsStringString.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_stringstring_sync] +// [START +// recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_stringstring_sync] import com.google.cloud.recommendationengine.v1beta1.CatalogItem; import com.google.cloud.recommendationengine.v1beta1.CatalogName; import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; @@ -40,4 +41,5 @@ public static void syncListCatalogItemsStringString() throws Exception { } } } -// [END recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_stringstring_sync] +// [END +// recommendationengine_v1beta1_generated_catalogserviceclient_listcatalogitems_stringstring_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/AsyncUpdateCatalogItem.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/AsyncUpdateCatalogItem.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/AsyncUpdateCatalogItem.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/AsyncUpdateCatalogItem.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItem.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItem.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItem.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItem.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemCatalogitempathnameCatalogitemFieldmask.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemCatalogitempathnameCatalogitemFieldmask.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemCatalogitempathnameCatalogitemFieldmask.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemCatalogitempathnameCatalogitemFieldmask.java index fa3fe4df..6f2c3d58 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemCatalogitempathnameCatalogitemFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemCatalogitempathnameCatalogitemFieldmask.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_catalogitempathnamecatalogitemfieldmask_sync] +// [START +// recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_catalogitempathnamecatalogitemfieldmask_sync] import com.google.cloud.recommendationengine.v1beta1.CatalogItem; import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName; import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; @@ -41,4 +42,5 @@ public static void syncUpdateCatalogItemCatalogitempathnameCatalogitemFieldmask( } } } -// [END recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_catalogitempathnamecatalogitemfieldmask_sync] +// [END +// recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_catalogitempathnamecatalogitemfieldmask_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemStringCatalogitemFieldmask.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemStringCatalogitemFieldmask.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemStringCatalogitemFieldmask.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemStringCatalogitemFieldmask.java index b437c096..b0e3f274 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemStringCatalogitemFieldmask.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogserviceclient/updatecatalogitem/SyncUpdateCatalogItemStringCatalogitemFieldmask.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_stringcatalogitemfieldmask_sync] +// [START +// recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_stringcatalogitemfieldmask_sync] import com.google.cloud.recommendationengine.v1beta1.CatalogItem; import com.google.cloud.recommendationengine.v1beta1.CatalogItemPathName; import com.google.cloud.recommendationengine.v1beta1.CatalogServiceClient; @@ -41,4 +42,5 @@ public static void syncUpdateCatalogItemStringCatalogitemFieldmask() throws Exce } } } -// [END recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_stringcatalogitemfieldmask_sync] +// [END +// recommendationengine_v1beta1_generated_catalogserviceclient_updatecatalogitem_stringcatalogitemfieldmask_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogservicesettings/createcatalogitem/SyncCreateCatalogItem.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogservicesettings/createcatalogitem/SyncCreateCatalogItem.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogservicesettings/createcatalogitem/SyncCreateCatalogItem.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/catalogservicesettings/createcatalogitem/SyncCreateCatalogItem.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider.java index c7c6d7b0..be2660f9 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setcredentialsprovider_sync] +// [START +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setcredentialsprovider_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrySettings; @@ -39,4 +40,5 @@ public static void syncCreateSetCredentialsProvider() throws Exception { PredictionApiKeyRegistryClient.create(predictionApiKeyRegistrySettings); } } -// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setcredentialsprovider_sync] +// [END +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider1.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider1.java index 8df2d428..1df36d58 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider1.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetCredentialsProvider1.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setcredentialsprovider1_sync] +// [START +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setcredentialsprovider1_sync] import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrySettings; @@ -38,4 +39,5 @@ public static void syncCreateSetCredentialsProvider1() throws Exception { PredictionApiKeyRegistryClient.create(predictionApiKeyRegistrySettings); } } -// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setcredentialsprovider1_sync] +// [END +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetEndpoint.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetEndpoint.java index b6955fb1..3f593c08 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetEndpoint.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/create/SyncCreateSetEndpoint.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setendpoint_sync] +// [START +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setendpoint_sync] import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrySettings; import com.google.cloud.recommendationengine.v1beta1.myEndpoint; @@ -36,4 +37,5 @@ public static void syncCreateSetEndpoint() throws Exception { PredictionApiKeyRegistryClient.create(predictionApiKeyRegistrySettings); } } -// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setendpoint_sync] +// [END +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/AsyncCreatePredictionApiKeyRegistration.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/AsyncCreatePredictionApiKeyRegistration.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/AsyncCreatePredictionApiKeyRegistration.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/AsyncCreatePredictionApiKeyRegistration.java index 15c95efe..9f48a4a7 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/AsyncCreatePredictionApiKeyRegistration.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/AsyncCreatePredictionApiKeyRegistration.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_async] +// [START +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_async] import com.google.api.core.ApiFuture; import com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest; import com.google.cloud.recommendationengine.v1beta1.EventStoreName; @@ -50,4 +51,5 @@ public static void asyncCreatePredictionApiKeyRegistration() throws Exception { } } } -// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_async] +// [END +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java similarity index 89% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java index 65c45e75..3ebd18c2 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_sync] +// [START +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_sync] import com.google.cloud.recommendationengine.v1beta1.CreatePredictionApiKeyRegistrationRequest; import com.google.cloud.recommendationengine.v1beta1.EventStoreName; import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration; @@ -45,4 +46,5 @@ public static void syncCreatePredictionApiKeyRegistration() throws Exception { } } } -// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_sync] +// [END +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationEventstorenamePredictionapikeyregistration.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationEventstorenamePredictionapikeyregistration.java similarity index 85% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationEventstorenamePredictionapikeyregistration.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationEventstorenamePredictionapikeyregistration.java index bace15fd..10919a97 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationEventstorenamePredictionapikeyregistration.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationEventstorenamePredictionapikeyregistration.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_eventstorenamepredictionapikeyregistration_sync] +// [START +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_eventstorenamepredictionapikeyregistration_sync] import com.google.cloud.recommendationengine.v1beta1.EventStoreName; import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration; import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; @@ -44,4 +45,5 @@ public static void main(String[] args) throws Exception { } } } -// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_eventstorenamepredictionapikeyregistration_sync] +// [END +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_eventstorenamepredictionapikeyregistration_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationStringPredictionapikeyregistration.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationStringPredictionapikeyregistration.java similarity index 86% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationStringPredictionapikeyregistration.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationStringPredictionapikeyregistration.java index 6490c759..8e46c5bd 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationStringPredictionapikeyregistration.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistrationStringPredictionapikeyregistration.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_stringpredictionapikeyregistration_sync] +// [START +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_stringpredictionapikeyregistration_sync] import com.google.cloud.recommendationengine.v1beta1.EventStoreName; import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration; import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; @@ -43,4 +44,5 @@ public static void syncCreatePredictionApiKeyRegistrationStringPredictionapikeyr } } } -// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_stringpredictionapikeyregistration_sync] +// [END +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_createpredictionapikeyregistration_stringpredictionapikeyregistration_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/AsyncDeletePredictionApiKeyRegistration.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/AsyncDeletePredictionApiKeyRegistration.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/AsyncDeletePredictionApiKeyRegistration.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/AsyncDeletePredictionApiKeyRegistration.java index a7b1b033..68db6651 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/AsyncDeletePredictionApiKeyRegistration.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/AsyncDeletePredictionApiKeyRegistration.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_async] +// [START +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_async] import com.google.api.core.ApiFuture; import com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest; import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationName; @@ -54,4 +55,5 @@ public static void asyncDeletePredictionApiKeyRegistration() throws Exception { } } } -// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_async] +// [END +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistration.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistration.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistration.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistration.java index 1dd21904..2ad321c9 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistration.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistration.java @@ -16,11 +16,11 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_sync] +// [START +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_sync] import com.google.cloud.recommendationengine.v1beta1.DeletePredictionApiKeyRegistrationRequest; import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationName; import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; -import com.google.protobuf.Empty; public class SyncDeletePredictionApiKeyRegistration { @@ -48,4 +48,5 @@ public static void syncDeletePredictionApiKeyRegistration() throws Exception { } } } -// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_sync] +// [END +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationPredictionapikeyregistrationname.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationPredictionapikeyregistrationname.java similarity index 84% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationPredictionapikeyregistrationname.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationPredictionapikeyregistrationname.java index d182a625..023ca20b 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationPredictionapikeyregistrationname.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationPredictionapikeyregistrationname.java @@ -16,10 +16,10 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_predictionapikeyregistrationname_sync] +// [START +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_predictionapikeyregistrationname_sync] import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationName; import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; -import com.google.protobuf.Empty; public class SyncDeletePredictionApiKeyRegistrationPredictionapikeyregistrationname { @@ -44,4 +44,5 @@ public static void syncDeletePredictionApiKeyRegistrationPredictionapikeyregistr } } } -// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_predictionapikeyregistrationname_sync] +// [END +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_predictionapikeyregistrationname_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationString.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationString.java similarity index 85% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationString.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationString.java index 289d4503..04a6f533 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationString.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/deletepredictionapikeyregistration/SyncDeletePredictionApiKeyRegistrationString.java @@ -16,10 +16,10 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_string_sync] +// [START +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_string_sync] import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrationName; import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; -import com.google.protobuf.Empty; public class SyncDeletePredictionApiKeyRegistrationString { @@ -44,4 +44,5 @@ public static void syncDeletePredictionApiKeyRegistrationString() throws Excepti } } } -// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_string_sync] +// [END +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_deletepredictionapikeyregistration_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrations.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrations.java similarity index 90% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrations.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrations.java index ea9134ea..d45488cd 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrations.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrations.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_async] +// [START +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_async] import com.google.api.core.ApiFuture; import com.google.cloud.recommendationengine.v1beta1.EventStoreName; import com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest; @@ -53,4 +54,5 @@ public static void asyncListPredictionApiKeyRegistrations() throws Exception { } } } -// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_async] +// [END +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrationsPaged.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrationsPaged.java similarity index 91% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrationsPaged.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrationsPaged.java index c657e9d8..2f5f5944 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrationsPaged.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/AsyncListPredictionApiKeyRegistrationsPaged.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_paged_async] +// [START +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_paged_async] import com.google.cloud.recommendationengine.v1beta1.EventStoreName; import com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest; import com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsResponse; @@ -62,4 +63,5 @@ public static void asyncListPredictionApiKeyRegistrationsPaged() throws Exceptio } } } -// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_paged_async] +// [END +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_paged_async] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrations.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrations.java similarity index 89% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrations.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrations.java index 6764146c..f0a87411 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrations.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrations.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_sync] +// [START +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_sync] import com.google.cloud.recommendationengine.v1beta1.EventStoreName; import com.google.cloud.recommendationengine.v1beta1.ListPredictionApiKeyRegistrationsRequest; import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration; @@ -48,4 +49,5 @@ public static void syncListPredictionApiKeyRegistrations() throws Exception { } } } -// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_sync] +// [END +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsEventstorename.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsEventstorename.java similarity index 86% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsEventstorename.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsEventstorename.java index fafd8a21..5bcf4a22 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsEventstorename.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsEventstorename.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_eventstorename_sync] +// [START +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_eventstorename_sync] import com.google.cloud.recommendationengine.v1beta1.EventStoreName; import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration; import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; @@ -41,4 +42,5 @@ public static void syncListPredictionApiKeyRegistrationsEventstorename() throws } } } -// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_eventstorename_sync] +// [END +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_eventstorename_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsString.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsString.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsString.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsString.java index f8ed0a0a..30244213 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsString.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistryclient/listpredictionapikeyregistrations/SyncListPredictionApiKeyRegistrationsString.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_string_sync] +// [START +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_string_sync] import com.google.cloud.recommendationengine.v1beta1.EventStoreName; import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistration; import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient; @@ -41,4 +42,5 @@ public static void syncListPredictionApiKeyRegistrationsString() throws Exceptio } } } -// [END recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_string_sync] +// [END +// recommendationengine_v1beta1_generated_predictionapikeyregistryclient_listpredictionapikeyregistrations_string_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistrysettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistrysettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistrysettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistrysettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java index c9ceebd3..3e3dee77 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistrysettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionapikeyregistrysettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_predictionapikeyregistrysettings_createpredictionapikeyregistration_sync] +// [START +// recommendationengine_v1beta1_generated_predictionapikeyregistrysettings_createpredictionapikeyregistration_sync] import com.google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistrySettings; import java.time.Duration; @@ -44,4 +45,5 @@ public static void syncCreatePredictionApiKeyRegistration() throws Exception { predictionApiKeyRegistrySettingsBuilder.build(); } } -// [END recommendationengine_v1beta1_generated_predictionapikeyregistrysettings_createpredictionapikeyregistration_sync] +// [END +// recommendationengine_v1beta1_generated_predictionapikeyregistrysettings_createpredictionapikeyregistration_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider.java index be3678cc..8f6528d0 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_predictionserviceclient_create_setcredentialsprovider_sync] +// [START +// recommendationengine_v1beta1_generated_predictionserviceclient_create_setcredentialsprovider_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.recommendationengine.v1beta1.PredictionServiceClient; import com.google.cloud.recommendationengine.v1beta1.PredictionServiceSettings; @@ -39,4 +40,5 @@ public static void syncCreateSetCredentialsProvider() throws Exception { PredictionServiceClient.create(predictionServiceSettings); } } -// [END recommendationengine_v1beta1_generated_predictionserviceclient_create_setcredentialsprovider_sync] +// [END +// recommendationengine_v1beta1_generated_predictionserviceclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider1.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider1.java index 13d9e88c..c4148e2f 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_predictionserviceclient_create_setcredentialsprovider1_sync] +// [START +// recommendationengine_v1beta1_generated_predictionserviceclient_create_setcredentialsprovider1_sync] import com.google.cloud.recommendationengine.v1beta1.PredictionServiceClient; import com.google.cloud.recommendationengine.v1beta1.PredictionServiceSettings; @@ -38,4 +39,5 @@ public static void syncCreateSetCredentialsProvider1() throws Exception { PredictionServiceClient.create(predictionServiceSettings); } } -// [END recommendationengine_v1beta1_generated_predictionserviceclient_create_setcredentialsprovider1_sync] +// [END +// recommendationengine_v1beta1_generated_predictionserviceclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredict.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredict.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredict.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredict.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredictPaged.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredictPaged.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredictPaged.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/AsyncPredictPaged.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredict.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredict.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredict.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredict.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictPlacementnameUserevent.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictPlacementnameUserevent.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictPlacementnameUserevent.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictPlacementnameUserevent.java index 007e7a2a..474044e0 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictPlacementnameUserevent.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictPlacementnameUserevent.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_predictionserviceclient_predict_placementnameuserevent_sync] +// [START +// recommendationengine_v1beta1_generated_predictionserviceclient_predict_placementnameuserevent_sync] import com.google.cloud.recommendationengine.v1beta1.PlacementName; import com.google.cloud.recommendationengine.v1beta1.PredictionServiceClient; import com.google.cloud.recommendationengine.v1beta1.UserEvent; @@ -43,4 +44,5 @@ public static void syncPredictPlacementnameUserevent() throws Exception { } } } -// [END recommendationengine_v1beta1_generated_predictionserviceclient_predict_placementnameuserevent_sync] +// [END +// recommendationengine_v1beta1_generated_predictionserviceclient_predict_placementnameuserevent_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictStringUserevent.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictStringUserevent.java similarity index 94% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictStringUserevent.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictStringUserevent.java index 3b82fdcf..a2e61e8a 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictStringUserevent.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionserviceclient/predict/SyncPredictStringUserevent.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_predictionserviceclient_predict_stringuserevent_sync] +// [START +// recommendationengine_v1beta1_generated_predictionserviceclient_predict_stringuserevent_sync] import com.google.cloud.recommendationengine.v1beta1.PlacementName; import com.google.cloud.recommendationengine.v1beta1.PredictionServiceClient; import com.google.cloud.recommendationengine.v1beta1.UserEvent; diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionservicesettings/predict/SyncPredict.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionservicesettings/predict/SyncPredict.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionservicesettings/predict/SyncPredict.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/predictionservicesettings/predict/SyncPredict.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/catalogservicestubsettings/createcatalogitem/SyncCreateCatalogItem.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/catalogservicestubsettings/createcatalogitem/SyncCreateCatalogItem.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/catalogservicestubsettings/createcatalogitem/SyncCreateCatalogItem.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/catalogservicestubsettings/createcatalogitem/SyncCreateCatalogItem.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionapikeyregistrystubsettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionapikeyregistrystubsettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionapikeyregistrystubsettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionapikeyregistrystubsettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java index 1c96ba9a..c74c499d 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionapikeyregistrystubsettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionapikeyregistrystubsettings/createpredictionapikeyregistration/SyncCreatePredictionApiKeyRegistration.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.stub.samples; -// [START recommendationengine_v1beta1_generated_predictionapikeyregistrystubsettings_createpredictionapikeyregistration_sync] +// [START +// recommendationengine_v1beta1_generated_predictionapikeyregistrystubsettings_createpredictionapikeyregistration_sync] import com.google.cloud.recommendationengine.v1beta1.stub.PredictionApiKeyRegistryStubSettings; import java.time.Duration; @@ -44,4 +45,5 @@ public static void syncCreatePredictionApiKeyRegistration() throws Exception { predictionApiKeyRegistrySettingsBuilder.build(); } } -// [END recommendationengine_v1beta1_generated_predictionapikeyregistrystubsettings_createpredictionapikeyregistration_sync] +// [END +// recommendationengine_v1beta1_generated_predictionapikeyregistrystubsettings_createpredictionapikeyregistration_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionservicestubsettings/predict/SyncPredict.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionservicestubsettings/predict/SyncPredict.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionservicestubsettings/predict/SyncPredict.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/predictionservicestubsettings/predict/SyncPredict.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/stub/usereventservicestubsettings/writeuserevent/SyncWriteUserEvent.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/AsyncCollectUserEvent.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/AsyncCollectUserEvent.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/AsyncCollectUserEvent.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/AsyncCollectUserEvent.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEvent.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEvent.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEvent.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEvent.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventEventstorenameStringStringLong.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventEventstorenameStringStringLong.java similarity index 86% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventEventstorenameStringStringLong.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventEventstorenameStringStringLong.java index 06dbccce..bcb96af6 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventEventstorenameStringStringLong.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventEventstorenameStringStringLong.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_usereventserviceclient_collectuserevent_eventstorenamestringstringlong_sync] +// [START +// recommendationengine_v1beta1_generated_usereventserviceclient_collectuserevent_eventstorenamestringstringlong_sync] import com.google.api.HttpBody; import com.google.cloud.recommendationengine.v1beta1.EventStoreName; import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; @@ -40,4 +41,5 @@ public static void syncCollectUserEventEventstorenameStringStringLong() throws E } } } -// [END recommendationengine_v1beta1_generated_usereventserviceclient_collectuserevent_eventstorenamestringstringlong_sync] +// [END +// recommendationengine_v1beta1_generated_usereventserviceclient_collectuserevent_eventstorenamestringstringlong_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventStringStringStringLong.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventStringStringStringLong.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventStringStringStringLong.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventStringStringStringLong.java index 070525ec..f3ad23e4 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventStringStringStringLong.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/collectuserevent/SyncCollectUserEventStringStringStringLong.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_usereventserviceclient_collectuserevent_stringstringstringlong_sync] +// [START +// recommendationengine_v1beta1_generated_usereventserviceclient_collectuserevent_stringstringstringlong_sync] import com.google.api.HttpBody; import com.google.cloud.recommendationengine.v1beta1.EventStoreName; import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; @@ -40,4 +41,5 @@ public static void syncCollectUserEventStringStringStringLong() throws Exception } } } -// [END recommendationengine_v1beta1_generated_usereventserviceclient_collectuserevent_stringstringstringlong_sync] +// [END +// recommendationengine_v1beta1_generated_usereventserviceclient_collectuserevent_stringstringstringlong_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider.java index 51906a0d..f0f8a801 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_usereventserviceclient_create_setcredentialsprovider_sync] +// [START +// recommendationengine_v1beta1_generated_usereventserviceclient_create_setcredentialsprovider_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; import com.google.cloud.recommendationengine.v1beta1.UserEventServiceSettings; @@ -39,4 +40,5 @@ public static void syncCreateSetCredentialsProvider() throws Exception { UserEventServiceClient.create(userEventServiceSettings); } } -// [END recommendationengine_v1beta1_generated_usereventserviceclient_create_setcredentialsprovider_sync] +// [END +// recommendationengine_v1beta1_generated_usereventserviceclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider1.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider1.java index fcf2408d..a2f8a27d 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_usereventserviceclient_create_setcredentialsprovider1_sync] +// [START +// recommendationengine_v1beta1_generated_usereventserviceclient_create_setcredentialsprovider1_sync] import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; import com.google.cloud.recommendationengine.v1beta1.UserEventServiceSettings; @@ -38,4 +39,5 @@ public static void syncCreateSetCredentialsProvider1() throws Exception { UserEventServiceClient.create(userEventServiceSettings); } } -// [END recommendationengine_v1beta1_generated_usereventserviceclient_create_setcredentialsprovider1_sync] +// [END +// recommendationengine_v1beta1_generated_usereventserviceclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEvents.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEvents.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEvents.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEvents.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEventsLRO.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEventsLRO.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEventsLRO.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/AsyncImportUserEventsLRO.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEvents.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEvents.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEvents.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEvents.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsEventstorenameStringInputconfigImporterrorsconfig.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsEventstorenameStringInputconfigImporterrorsconfig.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsEventstorenameStringInputconfigImporterrorsconfig.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsEventstorenameStringInputconfigImporterrorsconfig.java index 951f0fa5..84076ac5 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsEventstorenameStringInputconfigImporterrorsconfig.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsEventstorenameStringInputconfigImporterrorsconfig.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_usereventserviceclient_importuserevents_eventstorenamestringinputconfigimporterrorsconfig_sync] +// [START +// recommendationengine_v1beta1_generated_usereventserviceclient_importuserevents_eventstorenamestringinputconfigimporterrorsconfig_sync] import com.google.cloud.recommendationengine.v1beta1.EventStoreName; import com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig; import com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse; @@ -46,4 +47,5 @@ public static void syncImportUserEventsEventstorenameStringInputconfigImporterro } } } -// [END recommendationengine_v1beta1_generated_usereventserviceclient_importuserevents_eventstorenamestringinputconfigimporterrorsconfig_sync] +// [END +// recommendationengine_v1beta1_generated_usereventserviceclient_importuserevents_eventstorenamestringinputconfigimporterrorsconfig_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsStringStringInputconfigImporterrorsconfig.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsStringStringInputconfigImporterrorsconfig.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsStringStringInputconfigImporterrorsconfig.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsStringStringInputconfigImporterrorsconfig.java index 72231efe..9a61c94b 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsStringStringInputconfigImporterrorsconfig.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/importuserevents/SyncImportUserEventsStringStringInputconfigImporterrorsconfig.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_usereventserviceclient_importuserevents_stringstringinputconfigimporterrorsconfig_sync] +// [START +// recommendationengine_v1beta1_generated_usereventserviceclient_importuserevents_stringstringinputconfigimporterrorsconfig_sync] import com.google.cloud.recommendationengine.v1beta1.EventStoreName; import com.google.cloud.recommendationengine.v1beta1.ImportErrorsConfig; import com.google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse; @@ -46,4 +47,5 @@ public static void syncImportUserEventsStringStringInputconfigImporterrorsconfig } } } -// [END recommendationengine_v1beta1_generated_usereventserviceclient_importuserevents_stringstringinputconfigimporterrorsconfig_sync] +// [END +// recommendationengine_v1beta1_generated_usereventserviceclient_importuserevents_stringstringinputconfigimporterrorsconfig_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEvents.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEvents.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEvents.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEvents.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEventsPaged.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEventsPaged.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEventsPaged.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/AsyncListUserEventsPaged.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEvents.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEvents.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEvents.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEvents.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsEventstorenameString.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsEventstorenameString.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsEventstorenameString.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsEventstorenameString.java index 3d30dad3..836094e8 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsEventstorenameString.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsEventstorenameString.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_usereventserviceclient_listuserevents_eventstorenamestring_sync] +// [START +// recommendationengine_v1beta1_generated_usereventserviceclient_listuserevents_eventstorenamestring_sync] import com.google.cloud.recommendationengine.v1beta1.EventStoreName; import com.google.cloud.recommendationengine.v1beta1.UserEvent; import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; @@ -40,4 +41,5 @@ public static void syncListUserEventsEventstorenameString() throws Exception { } } } -// [END recommendationengine_v1beta1_generated_usereventserviceclient_listuserevents_eventstorenamestring_sync] +// [END +// recommendationengine_v1beta1_generated_usereventserviceclient_listuserevents_eventstorenamestring_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsStringString.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsStringString.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsStringString.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsStringString.java index f2f164d9..77f8bab2 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsStringString.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/listuserevents/SyncListUserEventsStringString.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_usereventserviceclient_listuserevents_stringstring_sync] +// [START +// recommendationengine_v1beta1_generated_usereventserviceclient_listuserevents_stringstring_sync] import com.google.cloud.recommendationengine.v1beta1.EventStoreName; import com.google.cloud.recommendationengine.v1beta1.UserEvent; import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; @@ -40,4 +41,5 @@ public static void syncListUserEventsStringString() throws Exception { } } } -// [END recommendationengine_v1beta1_generated_usereventserviceclient_listuserevents_stringstring_sync] +// [END +// recommendationengine_v1beta1_generated_usereventserviceclient_listuserevents_stringstring_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEvents.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEvents.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEvents.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEvents.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEventsLRO.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEventsLRO.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEventsLRO.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/AsyncPurgeUserEventsLRO.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEvents.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEvents.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEvents.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEvents.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsEventstorenameStringBoolean.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsEventstorenameStringBoolean.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsEventstorenameStringBoolean.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsEventstorenameStringBoolean.java index b1927cb9..c31ace75 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsEventstorenameStringBoolean.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsEventstorenameStringBoolean.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_usereventserviceclient_purgeuserevents_eventstorenamestringboolean_sync] +// [START +// recommendationengine_v1beta1_generated_usereventserviceclient_purgeuserevents_eventstorenamestringboolean_sync] import com.google.cloud.recommendationengine.v1beta1.EventStoreName; import com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse; import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; @@ -40,4 +41,5 @@ public static void syncPurgeUserEventsEventstorenameStringBoolean() throws Excep } } } -// [END recommendationengine_v1beta1_generated_usereventserviceclient_purgeuserevents_eventstorenamestringboolean_sync] +// [END +// recommendationengine_v1beta1_generated_usereventserviceclient_purgeuserevents_eventstorenamestringboolean_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsStringStringBoolean.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsStringStringBoolean.java similarity index 88% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsStringStringBoolean.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsStringStringBoolean.java index 27c020fb..a784172f 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsStringStringBoolean.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/purgeuserevents/SyncPurgeUserEventsStringStringBoolean.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_usereventserviceclient_purgeuserevents_stringstringboolean_sync] +// [START +// recommendationengine_v1beta1_generated_usereventserviceclient_purgeuserevents_stringstringboolean_sync] import com.google.cloud.recommendationengine.v1beta1.EventStoreName; import com.google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse; import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; @@ -40,4 +41,5 @@ public static void syncPurgeUserEventsStringStringBoolean() throws Exception { } } } -// [END recommendationengine_v1beta1_generated_usereventserviceclient_purgeuserevents_stringstringboolean_sync] +// [END +// recommendationengine_v1beta1_generated_usereventserviceclient_purgeuserevents_stringstringboolean_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/AsyncWriteUserEvent.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/AsyncWriteUserEvent.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/AsyncWriteUserEvent.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/AsyncWriteUserEvent.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEvent.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEvent.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEvent.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEvent.java diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventEventstorenameUserevent.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventEventstorenameUserevent.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventEventstorenameUserevent.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventEventstorenameUserevent.java index 0a3babf7..52aa8255 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventEventstorenameUserevent.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventEventstorenameUserevent.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_usereventserviceclient_writeuserevent_eventstorenameuserevent_sync] +// [START +// recommendationengine_v1beta1_generated_usereventserviceclient_writeuserevent_eventstorenameuserevent_sync] import com.google.cloud.recommendationengine.v1beta1.EventStoreName; import com.google.cloud.recommendationengine.v1beta1.UserEvent; import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; @@ -38,4 +39,5 @@ public static void syncWriteUserEventEventstorenameUserevent() throws Exception } } } -// [END recommendationengine_v1beta1_generated_usereventserviceclient_writeuserevent_eventstorenameuserevent_sync] +// [END +// recommendationengine_v1beta1_generated_usereventserviceclient_writeuserevent_eventstorenameuserevent_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventStringUserevent.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventStringUserevent.java similarity index 87% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventStringUserevent.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventStringUserevent.java index d61048aa..9cdcc22e 100644 --- a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventStringUserevent.java +++ b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventserviceclient/writeuserevent/SyncWriteUserEventStringUserevent.java @@ -16,7 +16,8 @@ package com.google.cloud.recommendationengine.v1beta1.samples; -// [START recommendationengine_v1beta1_generated_usereventserviceclient_writeuserevent_stringuserevent_sync] +// [START +// recommendationengine_v1beta1_generated_usereventserviceclient_writeuserevent_stringuserevent_sync] import com.google.cloud.recommendationengine.v1beta1.EventStoreName; import com.google.cloud.recommendationengine.v1beta1.UserEvent; import com.google.cloud.recommendationengine.v1beta1.UserEventServiceClient; @@ -38,4 +39,5 @@ public static void syncWriteUserEventStringUserevent() throws Exception { } } } -// [END recommendationengine_v1beta1_generated_usereventserviceclient_writeuserevent_stringuserevent_sync] +// [END +// recommendationengine_v1beta1_generated_usereventserviceclient_writeuserevent_stringuserevent_sync] diff --git a/owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java b/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java similarity index 100% rename from owl-bot-staging/v1beta1/samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java rename to samples/snippets/generated/com/google/cloud/recommendationengine/v1beta1/usereventservicesettings/writeuserevent/SyncWriteUserEvent.java From 0fa08f365a3573da58c4478c6c752698dc01a24c Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Thu, 23 Jun 2022 21:13:03 +0000 Subject: [PATCH 3/3] deps: adding gax-httpjson --- google-cloud-recommendations-ai/pom.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/google-cloud-recommendations-ai/pom.xml b/google-cloud-recommendations-ai/pom.xml index 7779b16b..ec214ead 100644 --- a/google-cloud-recommendations-ai/pom.xml +++ b/google-cloud-recommendations-ai/pom.xml @@ -58,6 +58,10 @@ com.google.api gax-grpc + + com.google.api + gax-httpjson + org.threeten threetenbp @@ -76,12 +80,24 @@ test + + com.google.api + gax + testlib + test + com.google.api gax-grpc testlib test + + com.google.api + gax-httpjson + testlib + test +